feat(sdk): C++ theme engine #353
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Palette/token lookup available in C++ so widgets can query theme colors without Python round-trips.
New files
src/Gui/SDK/ThemeEngine.h/.cpp— C++ YAML palette loading,get_color(token),format_qss(template), singleton with cacheModified files
src/Gui/SDK/bindings/kcsdk_py.cpp— Bindtheme_tokens(),theme_color(),format_qss()mods/sdk/kindred_sdk/theme.py— Optionally delegate tokcsdk.theme_tokens(), keep YAML fallback for console modeVerification
kcsdk.theme_color("blue")returns"#89b4fa",kcsdk.format_qss("{blue}")substitutes correctly.Depends on #350. Part of the KCSDK epic (#346). Phase 4 of 8.