The International Simutrans Forum

 

Author Topic: Default theme's color button height on player list  (Read 1998 times)

0 Members and 1 Guest are viewing this topic.

Offline z9999+

  • Coder/patcher
  • *
  • Posts: 377
Default theme's color button height on player list
« on: April 29, 2014, 10:40:19 PM »
I found color button height of default theme on player list is too small.
It is only 13 pixel, and it spoil readability of japanese text, especially due to white line of upper side.
Is is 1 pixel narrow compared to normal button.

Additionally, this color buttons on player list don't expand when I use standard-large theme. But 96comic touch theme can expand.

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 9569
  • Languages: De,EN,JP
Re: Default theme's color button height on player list
« Reply #1 on: April 30, 2014, 11:12:51 AM »
The height of these entries is determined also by the arrows. Since I cannot draw well, the large arrows are the same as the small ones. The can be solved by setting the dimensions of the arrow and the combobox in the tab file, although the arrow would be still very small.

We really need more themes, and I am very thankful for the other themes provided.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2908
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Default theme's color button height on player list
« Reply #2 on: May 01, 2014, 04:56:05 AM »
The arrow graphic should be drawn as a standard button, this way the arrow can vary with size defined in the theme file. The same applies to the scrollbars.

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 9569
  • Languages: De,EN,JP
Re: Default theme's color button height on player list
« Reply #3 on: May 01, 2014, 08:35:43 AM »
The size can vary already. You mean the border ... Yes, this is certainly doable, although the posbuttoon should be probably kept a normal button, because of its use within many lists.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2908
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Default theme's color button height on player list
« Reply #4 on: May 02, 2014, 01:21:21 AM »
I meant to vary the size like we vary with the normal buttons, simply setting the size in the theme file.

This applies to posbutton, scrollbar and checkbutton.

Or you need a whole .pak with these resized, as the 96comic touch theme is.

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 9569
  • Languages: De,EN,JP
Re: Default theme's color button height on player list
« Reply #5 on: May 02, 2014, 07:43:22 PM »
Ok, I added several constants to make these buttons scalable too. Since left and right arrows must be same height their dimensions are enforced together.