-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Underlined toggle buttons with per-instance properties #45
Labels
enhancement
New feature or request
Comments
DevCharly
added a commit
that referenced
this issue
Jan 15, 2020
…ons with client properties `JToggleButton.tab.underlineHeight` (integer), `JToggleButton.tab.underlineColor` (Color) and `JToggleButton.tab.selectedBackground` (Color) (issue #45)
This is now implemented in master branch. Use: toggleButton.putClientProperty( FlatClientProperties.TAB_BUTTON_SELECTED_BACKGROUND, Color.green );
toggleButton.putClientProperty( FlatClientProperties.TAB_BUTTON_UNDERLINE_COLOR, Color.red );
toggleButton.putClientProperty( FlatClientProperties.TAB_BUTTON_UNDERLINE_HEIGHT, 5 ); |
Forgot to mention that I've renamed toggle button type "underline" to "tab". Value of client property |
Good! I wanted to suggest this change from "underline" to "tab" 🙂 |
implemented in 0.26 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using toggle buttons that look like tabs is great for the L&F harmony of the application. This allows to create task bar buttons for example.
Now, depending on the context, the buttons will be adjusted in different ways (important bar may have bigger buttons, bold font, etc.). The problem is that the size of the underline and its related attributes are global. If I am not mistaken, there are no client properties to have a per-instance definition.
The text was updated successfully, but these errors were encountered: