Patch for border cleanup

Request new features and improvements you want to see in WebLaF.
I will answer any request so don't hesitate and post it!

Patch for border cleanup

Postby robert » Thu Apr 04, 2013 6:30 am

Another patch :) This one simply adds a utility method SwingUtils.createEmptyBorder(int, int, int, int), and changes all calls to BorderFactory.createEmptyBorder() to call the SwingUtils method instead. This allows us to return an EmptyBorderUIResource instead of a regular EmptyBorder.

Again, this has no visual effect on WebLookAndFeel itself, but allows its custom borders to be cleaned up when the user switches the LookAndFeel at runtime. There's still a long way to go, but this is a good first step.

Patch file is attached this time.
Attachments
patch_emptyBorderUIResource.txt
Patch file
(26.63 KiB) Downloaded 237 times
robert
 
Posts: 4
Joined: Fri Mar 15, 2013 3:07 am

Re: Patch for border cleanup

Postby mgarin » Fri Apr 05, 2013 6:56 pm

I will this patch into the next update (not commit), maybe a bit modified but it will be there.

Thanks again for the assistance! :)
User avatar
mgarin
Site Admin
 
Posts: 223
Joined: Mon Apr 16, 2012 1:01 pm
Location: Russia, Saint-Petersburg


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron