Skip to content
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

Add title pane embedded underline selection color #216

Closed
basix86 opened this issue Nov 27, 2020 · 1 comment
Closed

Add title pane embedded underline selection color #216

basix86 opened this issue Nov 27, 2020 · 1 comment
Milestone

Comments

@basix86
Copy link
Contributor

basix86 commented Nov 27, 2020

Suppose this use case with embedded title pane and underline enabled.

UIManager.put("MenuBar.background", new ColorUIResource( Color.BLUE));
UIManager.put("MenuBar.foreground", new ColorUIResource( Color.WHITE));
UIManager.put("TitlePane.embeddedForeground", new ColorUIResource( Color.WHITE));
UIManager.put("TitlePane.background", new ColorUIResource(Color.BLUE));
UIManager.put("TitlePane.foreground", new ColorUIResource(Color.WHITE));
UIManager.put("MenuItem.underlineSelectionColor", new ColorUIResource(Color.BLUE));
UIManager.put("MenuItem.selectionType", "underline");

image

We need a new key (for example TitlePane.underlineSelectionColor) to have underline WHITE in the TitlePane and BLUE in MenuItem

DevCharly added a commit that referenced this issue Dec 5, 2020
@DevCharly
Copy link
Collaborator

@basix86 thanks for the PR.

I've extended it to also support different underlineSelectionBackground and underlineSelectionHeight for menu bars.

UIManager.put("MenuBar.underlineSelectionColor", Color.white);
UIManager.put("MenuBar.underlineSelectionBackground", Color.red);
UIManager.put("MenuBar.underlineSelectionHeight", 5);

@DevCharly DevCharly added this to the 0.45 milestone Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants