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
Improved Support for Runtime LAF Switching #77
Conversation
…ookAndFeel at runtime.
…arin's repository
Thanks for these changes, great job :) Though i have a few notes... Border update In L&F defaults A few changes in L&F defaults might also cause some issues. It is incorrect to put Viewport background from just table constant: table.put ( "Viewport.background", WebTableStyle.background ); As all other components placed within scroll pane will get the same background. And also, I didn't add any specific to Viewport because I didn't actually want to change the default one used by Viewport. And about this one: table.put ( "Table.scrollPaneBorder", null ); // Force JScrollPane to keep its border I didn't really understand how will that force JScrollPane to keep its border :) Other changes All other changes, as i said in the beginning, seems to be fine :) Also some of these changes are already deprecated as i have added similar fixes into the local WebLaF version that i didn't yet commit/release. I think i will add your changes manually (not through the pull) so you can leave it as it is now and simply update your local version later after i release the update. |
Actually it is dirty as hell :) |
Responses to your response:
Of the three points above, I think the third is the most important one. :) |
Yes, indeed, the third one is most important and a bit tricky :) |
#70 - WebRootPaneUI fix for empty title and window drag #36 - More fixes for Swing borders honor option WebRootPaneUI fix for resizable window property changes Empty title and max title width added into WebRootPaneUI style settings WebImageDrop JavaDoc and small improvements added Disabled icons caching added to improve performance ReflectUtils type check for null arguments fix WebComboBoxUI wheel scrolling through choices fix Additional "show" methods for WebPopOver Background color can now be easily set for WebPopOver WebSplitButtonUI creation fix WebToolBarUI incorrect buttons border updates fix FormLayout improvements Small readme updates
#77 - Even more changes for Swing UI properties Improvements made to Painter interface Full painter support implemented for WebScrollBarUI A lot of improvements done to WebScrollBarUI WebListUI rollover cell display fixed WebFileChooserPanel history list file name length limit added WebSplitButton UI class name fixed Various small JavaDoc fixes
I have merged almost all of these changes in v1.26 release and also added more similar changes to UIs you have missed. Thanks again for those improvements :) |
This patch fixes the majority of issues when switching from WebLAF to another LAF at runtime. There are still a couple of minor issues I haven't figured out yet, but this patch fixes the majority of things.
What's included:
not BorderUIResource
to avoid overriding possible values set by the developer.
LAFs don't do this either. Can cause issues.
so it can revert them back to the previous values.
convenience.
a bevel border due to the changes above.
BTW - this LAF is super easy to configure and use, good job! Much cleaner than Substance.