Skip to content

Conversation

@wellingtoncosta
Copy link
Collaborator

@wellingtoncosta wellingtoncosta commented Dec 22, 2025

Summary

This PR introduces a new component called PopupAd, which is designed to be used inside a popup container to give a more informative description to that menu. To use that, you can pass a composable to the adContent parameter introduced to the Menu and PopupContainer public API. This API is designed to be simpler as we have in AbstractPopup#setAdText method in the legacy Swing implementation, but in a "composey" way.

Additionally, a new Menus section was introduced to the sample app to showcase menus, including a dedicated sample for menu with ad content.

Screenshots
image
image

Release notes

⚠️ Important Changes

  • Introduced a new PopupAd component
  • Added the new PopupAdStyle to the JewelTheme and to the IntUiTheme
  • Added adContent parameter to PopupContainer and Menu components.

New features

  • Popups now have an ad content slot in which can be used to add a helper text to the menu.

Note

Adds a bottom "ad" area to popups with a new component and theme styling.

  • New PopupAd component and styling types: PopupAdStyle, PopupAdColors, PopupAdMetrics; exposed via JewelTheme.popupAdStyle
  • PopupMenu and PopupContainer gain optional adContent slot (new overloads); internal menu layout updated to render it
  • DefaultComponentStyling extended with popupAdStyle; IntUiTheme/JewelTheme updated to provide/consume it
  • IDE LaF bridge reads advertiser settings via readPopupAdStyle() and supplies popupAdStyle
  • Int UI standalone provides light/dark PopupAd defaults
  • Samples: new Menus section (icons + Menus.kt) demonstrating basic, icons, submenus, and ad content

Written by Cursor Bugbot for commit a0ba6e9. This will update automatically on new commits. Configure here.

Copy link
Collaborator

@faogustavo faogustavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that you are missing the LaF styles loading. Also, make sure to get values to match the theme.

For more details in the AdText styles, check the JBUI.CurrentTheme.Advertiser type. You can find its usage to use as baseline on this function public void setAdText(@NotNull @NlsContexts.PopupAdvertisement String s, int alignment)

@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch 2 times, most recently from 4356525 to c4d0b61 Compare December 23, 2025 16:57
@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch from c4d0b61 to 91fba7f Compare December 23, 2025 17:38
@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch 2 times, most recently from ecf2915 to 20db336 Compare December 30, 2025 20:47
Copy link
Collaborator

@faogustavo faogustavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to update API Dumps after updating public apis. Run the 'apiChecks' task in the IDE for it :)

@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch from 20db336 to 259bd6b Compare January 6, 2026 23:16
@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch 2 times, most recently from 779db91 to 60a6e3f Compare January 7, 2026 14:48
Copy link
Collaborator

@faogustavo faogustavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch from 60a6e3f to 932f1b6 Compare January 12, 2026 21:53
@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch from 932f1b6 to 2d55cab Compare January 12, 2026 22:54
@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch from 2d55cab to 5df0e71 Compare January 13, 2026 17:44
@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch 2 times, most recently from 1d5e506 to 68e45ea Compare January 13, 2026 22:14
Copy link
Collaborator

@faogustavo faogustavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one minor comment. No blockers

@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch from 68e45ea to 0f276f5 Compare January 15, 2026 14:47
@wellingtoncosta wellingtoncosta force-pushed the wp/implement-popup-ad-text branch from 0f276f5 to a0ba6e9 Compare January 15, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants