-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Theming] Support customizing title pane buttons #444
Comments
* `TitlePaneButtonProvider` interface for configuring the button icon and text (for tooltips and system menu) * `TitlePaneButtonsProvider` for configuring maximize, restore, iconify and close buttons * `DefaultTitlePaneButtonsProvider` with default implementations for the four buttons * `RadianceThemingCortex.RootPaneScope.setTitlePaneButtonsProvider` to set a buttons provider on a specific root pane * Wire the provider to the buttons in `RadianceTitlePane`, along with example code in the demo This is for top-level root panes (in frames and dialogs). Second pass will provide support for `JInternalFrame`s. For #444
Thanks this could be useful to me. I would want my icons to look similar to your defaults, so I've examined code in the "Blade" classes. Those are "internal", but it looks like they only use public apis, so I could probably replicate them. By the way, I just found that BladeDrawingUtils.paintBladeSimpleBorder() does not dispose of the graphics object. (No point opening a bug for that.) |
Yes, the idea is definitely to not block app code. The internal flow there is mostly around getting the stroke width. I'll look at the disposal. |
Splitting off of 0a0c2e4#commitcomment-93364364
Add APIs to allow customizing the icons and the tooltips / texts used for title pane buttons:
The text was updated successfully, but these errors were encountered: