Cockatrice/cockatrice/src/interface/widgets/settings_page
BruebachL 3bcdfc3793
[Fonts] Migrate DeckList and InterfaceDefault surfaces to theme roles (#7539)
* [Fonts] Migrate DeckList and InterfaceDefault surfaces to theme roles

* [Fonts] Drop unused lambda captures in font-refresh handlers

* [Fonts] Fix pixel sizes and game overlay fonts from review

- Set the sizes the stylesheets carried with setPixelSize() rather than
  setPointSize(): home buttons (34), banner (24), home group box (20),
  the placeholder labels (14), the analytics drag handle (10), the EDHREC
  navigation buttons (24), the user info popup (11/14/11/10/11) and the
  game overlays (14/16/12). Points at 96 DPI were ~33% larger.
- The drag/total counters and tally columns keep the monospace family the
  stylesheets set, so digit widths stop changing as counts tick and
  white-space: pre stays aligned.
- applyDeckListFont() drops the cached tally rows before re-measuring, so
  previewing a larger DeckList font no longer leaves the tally clipped.
- Tally labels and the constructor/fontsChanged pairs in the shared-deck
  preview, quick setup, analytics panel, home box and public decks build
  their font once in a local lambda instead of twice.

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-11-04 07:57:54 +01:00
..
abstract_settings_page.cpp [Client] Settings: sub-page rows deep-linking into page sections (#7487) 2026-10-18 22:48:51 +02:00
abstract_settings_page.h [Client] Settings: sub-page rows deep-linking into page sections (#7487) 2026-10-18 22:48:51 +02:00
appearance_settings_page.cpp [QtUtils] Adopt window fade, path, bold font and confirmation helpers (#7622) 2026-10-24 21:43:50 +02:00
appearance_settings_page.h [Style] Confirm broken Windows styles with a dialog offering Fusion (#7507) 2026-10-15 12:41:01 +02:00
deck_editor_settings_page.cpp [Client] Warn when data paths point inside the program directory (#7473) 2026-10-11 15:34:49 +02:00
deck_editor_settings_page.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
general_settings_page.cpp [Settings] Rename UI language selector & move translator hint (#7656) 2026-10-31 09:28:52 +01:00
general_settings_page.h [Translation] Name languages without reading the translation files (#7662) 2026-10-26 02:39:26 +01:00
messages_settings_page.cpp [Client] Tabbed room channels with unread states and collapsible chat (#7478) 2026-10-16 22:46:39 +02:00
messages_settings_page.h [Client] Tabbed room channels with unread states and collapsible chat (#7478) 2026-10-16 22:46:39 +02:00
settings_search_delegate.cpp [Fonts] Migrate DeckList and InterfaceDefault surfaces to theme roles (#7539) 2026-11-04 07:57:54 +01:00
settings_search_delegate.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
settings_search_model.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
settings_search_model.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
shortcut_settings_page.cpp [QtUtils] Adopt window fade, path, bold font and confirmation helpers (#7622) 2026-10-24 21:43:50 +02:00
shortcut_settings_page.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
sound_settings_page.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
sound_settings_page.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
storage_settings_page.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
storage_settings_page.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
user_interface_settings_page.cpp [QtUtils] Use makeLayout() for zero-margin layouts (#7620) 2026-10-24 19:06:18 +02:00
user_interface_settings_page.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00