Page 1 of 1

Add spacing/padding to classic control bar buttons?

PostPosted: Thu Nov 23, 2017 1:53 am
by Treto
Hello:

Anyone know how to add spacing/padding between the Classic Control Bar buttons?

I duplicated the plugin and renamed it, but can not figure out how to add some space/padding between the buttons.

Thank you.

Re: Add spacing/padding to classic control bar buttons?  [SOLVED]

PostPosted: Fri Nov 24, 2017 1:51 pm
by Annis
Well I had to do some testing (which you could have done ;) )... Try this:

In the .tmpl file look for {% with button_width as button_offset %} and replace button_width with the pixel amount.

For example, {% with 50 as button_offset %}

Re: Add spacing/padding to classic control bar buttons?

PostPosted: Fri Nov 24, 2017 6:39 pm
by Treto
Hi Annis:

Thanks for responding. Unlike a lot of users, I actually do testing before I post. :)

I had tried adjusting the pixel amounts in the tmpl file for button width, offset and background width on lines 8, 9 & 10, but no luck.

I missed the "button_width" on line 52.

I also tried adjusting the size of the icon files themselves.

You solution works. Thanks again.