News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Theme - titlebar spacing

Started by uci, July 10, 2019, 01:53:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

uci

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.

An_dz

I'm quite sure it gets from the image size.

Leartin

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?

An_dz


uci

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. ::(

_Hajo_

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

Yona-TYT

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.