mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 17:43:23 -08:00
Runtime inversion is not a theming system: it rotates hue, breaks duotone art and mishandles alpha, and a QPixmap snapshot cannot follow a palette change. Redraw the top-level UI glyph set on a 24x24 grid with `currentColor` as the paint token, drop Inkscape/Sodipodi cruft, and delete the icons whose metaphor was duplicated (cogwheel/gear -> settings, scale_balanced -> scales, update.png -> reload). Load the glyphs through `loadThemedIcon` so the engine resolves the token from the palette on every request, and let `themePixmap` use the same resolution for one-shot pixmaps. `loadColorAdjustedPixmap` is gone; every caller now keeps a QIcon, which `SettingsButtonWidget::setButtonIcon` accepts instead of a QPixmap. Content art (mana, counters, countries) keeps its authored colors. Add a render test covering aspect ratio, palette flips, icon modes and high-DPI pixmaps. |
||
|---|---|---|
| .. | ||
| card_database_update | ||
| card_picture_loader | ||
| deck_loader | ||
| intents | ||
| layouts | ||
| palette_editor | ||
| widgets | ||
| at_risk_data_warning.cpp | ||
| at_risk_data_warning.h | ||
| card_localization.h | ||
| key_signals.cpp | ||
| key_signals.h | ||
| logger.cpp | ||
| logger.h | ||
| pixel_map_generator.cpp | ||
| pixel_map_generator.h | ||
| theme_config.cpp | ||
| theme_config.h | ||
| theme_icon.cpp | ||
| theme_icon.h | ||
| theme_manager.cpp | ||
| theme_manager.h | ||
| window_main.cpp | ||
| window_main.h | ||