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

Replace custom ImageIcons with UIManager constants #352

Open
vbmacher opened this issue Jun 20, 2023 · 0 comments
Open

Replace custom ImageIcons with UIManager constants #352

vbmacher opened this issue Jun 20, 2023 · 0 comments
Labels
Milestone

Comments

@vbmacher
Copy link
Collaborator

All toolbar icons (or other standard icons) should be using constants from UIManager instead of keeping icons in resources, e.g.:

btnBrowse.setIcon(UIManager.getIcon("Tree.openIcon"));

Then, emuStudio will set these icons globally:

Icon openIcon = new ImageIcon("open.gif");
UIManager.put("Tree.openIcon", openIcon);
...
@vbmacher vbmacher added this to the 0.42 milestone Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant