mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-06 01:53:25 -08:00
[Icons] Add palette-aware themed icon engine
A QPixmap snapshot cannot follow palette changes, so an authored `currentColor` glyph would freeze at whatever color it was first rendered with. Add a QIcon engine that resolves the sentinel from the current palette on every pixmap request, caches by resolved path/color/size/DPR, and falls back to Qt's normal loader for authored multi-color art and raster overrides. Purely additive. No behavior change yet.
This commit is contained in:
parent
9978be9ab7
commit
eb7e866211
4 changed files with 307 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ set(oracle_SOURCES
|
|||
../cockatrice/src/client/network/update/client/release_channel.cpp
|
||||
../cockatrice/src/interface/pixel_map_generator.cpp
|
||||
../cockatrice/src/interface/theme_config.cpp
|
||||
../cockatrice/src/interface/theme_icon.cpp
|
||||
../cockatrice/src/interface/theme_manager.cpp
|
||||
${VERSION_STRING_CPP}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue