Let symbolic icons follow the color scheme

Declare FollowsColorScheme=true for the Shift icon theme so KDE apps recolor symbolic Places glyphs against dark and light surfaces. Document the requirement and guard it in the icon theme coverage test.
This commit is contained in:
Marco Allegretti 2026-05-23 09:30:21 +02:00
parent 6cc92b7fa2
commit d9943d2e7a
3 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@
`org.shift.icons` is the icon theme selected by `lookandfeel/contents/defaults`.
It inherits only `hicolor`, so shell-owned glyphs used by the Shift UI need to exist in this theme or in the local hicolor source icon set.
The SVG glyphs are adapted from Phosphor Icons and licensed through the scoped REUSE metadata in `.reuse/dep5`.
The theme sets `FollowsColorScheme=true`; symbolic SVGs use `.ColorScheme-Text` and `currentColor` so KDE applications recolor them for both dark and light color schemes.
Theme paths used here:

View file

@ -2,6 +2,7 @@
Name=SHIFT
Comment=SHIFT icon theme
Inherits=hicolor
FollowsColorScheme=true
Example=folder
DisplayDepth=32
DesktopDefault=48

View file

@ -168,6 +168,8 @@ require_line lookandfeel/contents/defaults '^Theme=org\.shift\.icons$' \
"look-and-feel defaults must select org.shift.icons"
require_line "$theme_dir/index.theme" '^Inherits=hicolor$' \
"org.shift.icons must inherit only hicolor"
require_line "$theme_dir/index.theme" '^FollowsColorScheme=true$' \
"org.shift.icons must follow the active color scheme so symbolic Places icons stay legible in dark and light themes"
require_line "$theme_dir/index.theme" '^Directories=.*actions/symbolic.*places/symbolic.*apps/scalable' \
"org.shift.icons index.theme must list actions, places, and apps directories"
require_directory_order