[wesnoth-commits] [wesnoth/wesnoth] 09c8c5: Make the preferences window big enough for HDPI fonts

Steve Cotton noreply at github.com
Fri Feb 19 14:53:03 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 09c8c506e164d27242bcc5f9d3ba2f3189ea3f2b
      https://github.com/wesnoth/wesnoth/commit/09c8c506e164d27242bcc5f9d3ba2f3189ea3f2b
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2021-02-19 (Fri, 19 Feb 2021)

  Changed paths:
    M changelog.md
    M data/gui/window/preferences.cfg
    M data/gui/window/preferences/01_general.cfg
    M data/gui/window/preferences/03_display.cfg
    M data/gui/window/preferences/05_multiplayer.cfg

  Log Message:
  -----------
  Make the preferences window big enough for HDPI fonts

The hardcoded size of the window was too small for the large fonts on HDPI
displays, this changes to using the automatic width and calculated-based-on-dpi
height. On HDPI displays that does leave blank space on the General tab, but it's
better than not scaling.

Buttons that were placed at the bottom of pages move up so that they aren't
too far from the other controls. The sub-tab-selector buttons on the
multiplayer tab move above the sub-tabs themselves.

With HDPI text, the checkboxes are placed a little too high to align with
the font, but that's a cosmetic detail; this commit fixes the usability issue.





More information about the Commits mailing list