The International Simutrans Forum

 

Author Topic: Theme - titlebar spacing  (Read 319 times)

0 Members and 1 Guest are viewing this topic.

Offline uci

  • *
  • Posts: 122
  • Without owner
  • Languages: EN, RO
Theme - titlebar spacing
« 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.

Online An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2870
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Theme - titlebar spacing
« Reply #1 on: July 11, 2019, 08:44:43 PM »
I'm quite sure it gets from the image size.

Offline Leartin at

  • Devotee
  • *
  • Posts: 1224
  • PAK-DEV P192C
  • Languages: DE, EN
Re: Theme - titlebar spacing
« Reply #2 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?

Online An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2870
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Theme - titlebar spacing
« Reply #3 on: July 12, 2019, 03:21:29 PM »
I don't remember doing so.

Offline uci

  • *
  • Posts: 122
  • Without owner
  • Languages: EN, RO
Re: Theme - titlebar spacing
« Reply #4 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. ::(