The International Simutrans Forum

PakSets and Customization => General Resources and Tools => Menu, Skins and Others => Topic started by: uci on July 10, 2019, 01:53:20 PM

Title: Theme - titlebar spacing
Post by: uci on July 10, 2019, 01:53:20 PM
Hi, I'm looking for a theme parameter that changes spacing of titlebar buttons. For example, first image shows the Simutrans standard theme and the second one shows the "blue-white" theme. The second theme has nicely spaced buttons. Where did they come from? Thanks.
Title: Re: Theme - titlebar spacing
Post by: An_dz on July 11, 2019, 08:44:43 PM
I'm quite sure it gets from the image size.
Title: Re: Theme - titlebar spacing
Post by: Leartin on July 12, 2019, 05:54:54 AM
The images look the same though. Did you add 99% transparent pixels that are practically invisible to trick the UI into thinking the graphic is larger?
Title: Re: Theme - titlebar spacing
Post by: An_dz on July 12, 2019, 03:21:29 PM
I don't remember doing so.
Title: Re: Theme - titlebar spacing
Post by: uci on July 13, 2019, 11:18:19 AM
And to add more confusion...
I compiled "blue-white" theme from sources here
https://github.com/aburch/simutrans/tree/master/themes.src/white%20blue
and didn't get the nicely spaced buttons as expected. ::(
Title: Re: Theme - titlebar spacing
Post by: _Hajo_ on January 15, 2022, 02:07:54 PM
I don't know when the setting was introduced, but in Simutrans 123 you can use this in the theme's *.tab file to set a spacing for the icons:

# width of the window elements
gui_gadget_width = 20
Title: Re: Theme - titlebar spacing
Post by: Yona-TYT on January 15, 2022, 04:39:52 PM
Quote from: _Hajo_ on January 15, 2022, 02:07:54 PM
I don't know when the setting was introduced, but in Simutrans 123 you can use this in the theme's *.tab file to set a spacing for the icons:

# width of the window elements
gui_gadget_width = 20

If this parameter was added by @prissi about a year ago I think, I was testing the modern theme on touch screens at the time.