Cockatrice/cockatrice/src/game_graphics
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
..
board [Fonts] Migrate CardText surfaces to theme font role (#7538) 2026-11-04 07:57:54 +01:00
deckview [Fonts] Migrate DeckList and InterfaceDefault surfaces to theme roles (#7539) 2026-11-04 07:57:54 +01:00
dialogs [Refactor] Move game logic into libcockatrice_game (#7437) 2026-10-31 18:44:15 +01:00
log [Refactor] Move game logic into libcockatrice_game (#7437) 2026-10-31 18:44:15 +01:00
player [Fonts] Migrate CardText surfaces to theme font role (#7538) 2026-11-04 07:57:54 +01:00
tally [Refactor] Move card selection actions to GameScene and p/t parsing to CardState (#7426) 2026-10-31 18:44:12 +01:00
zones [Game] Connect zone dump response before sending the request (#7711) 2026-11-01 12:49:35 +01:00
animated_item.h [Game] Generic Animation Interface (#7098) 2026-08-12 20:36:33 +02:00
card_dimensions.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
game_scene.cpp [Refactor] Move game logic into libcockatrice_game (#7437) 2026-10-31 18:44:15 +01:00
game_scene.h [Refactor] Move game logic into libcockatrice_game (#7437) 2026-10-31 18:44:15 +01:00
game_view.cpp [Fonts] Migrate DeckList and InterfaceDefault surfaces to theme roles (#7539) 2026-11-04 07:57:54 +01:00
game_view.h [Fonts] Migrate DeckList and InterfaceDefault surfaces to theme roles (#7539) 2026-11-04 07:57:54 +01:00
hand_counter.cpp [Refactor] Move game logic into libcockatrice_game (#7437) 2026-10-31 18:44:15 +01:00
hand_counter.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
phases_toolbar.cpp [Refactor] Emit phase toolbar intent instead of protobuf commands (#7419) 2026-10-31 18:44:10 +01:00
phases_toolbar.h [Refactor] Emit phase toolbar intent instead of protobuf commands (#7419) 2026-10-31 18:44:10 +01:00
pq_cockatrice_event_player.cpp [Tests] Play card interactions through a Cockatrice event player (#7697) 2026-11-04 06:23:45 +01:00
pq_cockatrice_event_player.h [Tests] Play card interactions through a Cockatrice event player (#7697) 2026-11-04 06:23:45 +01:00
z_value_layer_manager.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
z_values.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00