Cockatrice/cockatrice/src/interface/widgets/utility
BruebachL 396196b762
[Fonts] Migrate CardText surfaces to theme font role (#7538)
* [Fonts] Migrate CardText surfaces to theme font role

* [Fonts] Keep CardText call sites on the app font and fix px sizes

- CardText's unset fallback is qApp->font() again: only the three counter
  painters (paintNumberEllipse, GeneralCounter, PlayerCounter) were Serif
  before the role existed, and they now ask for it through
  ThemeManager::cardTextFont(). Card names, player names, counters, the
  overlay, the Archidekt and EDHREC labels and the completer delegate keep the
  app font they used before.
- Use setPixelSize for the EDHREC card name (20px) and commander name (28px)
  and details (16px) sizes: the stylesheets said px, and setPointSize made
  them about a third larger.

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-11-04 07:57:54 +01:00
..
card_completer_delegate.cpp [Fonts] Migrate CardText surfaces to theme font role (#7538) 2026-11-04 07:57:54 +01:00
card_completer_delegate.h [Completer] Minimum size popup, fall back to compact design if not possible. (#7111) 2026-10-15 18:10:07 +02:00
card_completer_styler.cpp [QtUtils] Adopt window fade, path, bold font and confirmation helpers (#7622) 2026-10-24 21:43:50 +02:00
card_completer_styler.h [Completer] Highlight popup rows without rewriting the line edit (#7502) 2026-10-16 19:01:38 +02:00
compact_push_button.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
compact_push_button.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
completer_utils.cpp [UI] Fix auto-completion acceptance on Space/Tab/Enter (#7466) 2026-10-10 09:45:42 +02:00
completer_utils.h [CardSearch] Add card completion popups to chats and search fields (#7089) 2026-08-11 18:50:30 +02:00
custom_line_edit.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
custom_line_edit.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
get_text_with_max.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
get_text_with_max.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
line_edit_completer.cpp [Chat] Fix card completion after an @ mention (#7469) 2026-10-11 15:35:10 +02:00
line_edit_completer.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
report_utils.cpp [Fonts] Migrate ChatLog surfaces to theme font role (#7537) 2026-11-04 07:57:53 +01:00
report_utils.h [Fonts] Migrate ChatLog surfaces to theme font role (#7537) 2026-11-04 07:57:53 +01:00
reversed_completer_model.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
reversed_completer_model.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
sequence_edit.cpp [QtUtils] Use makeLayout() for zero-margin layouts (#7620) 2026-10-24 19:06:18 +02:00
sequence_edit.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
visibility_change_listener.cpp [TabDeckEditor] Generalize visibility filter and extract it to a separate file (#6526) 2026-01-16 10:12:46 -05:00
visibility_change_listener.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00