Switch file manager to Thunar, fix GTK3 theming from the ground up

Dolphin's selection color is stuck on stock Breeze blue outside a full
Plasma session (unfixed upstream regression, see README) - dropped it
for Thunar. Getting Thunar themed exposed a chain of GTK3-specific
issues fixed along the way: !important is silently rejected by GTK3's
CSS parser (not just deprioritized), the widget and icon themes resolve
via completely different mechanisms under Hyprland (no XSETTINGS
daemon), and Thunar's ExoIconView grid reads its selection color from a
named @define-color instead of normal :selected matching. Folder icon
colors are now generated to match the accent exactly (theme/icon_theme.py,
no sudo) instead of snapping to a papirus-folders preset.

Also adds the kde-colorscheme template (the missing piece
KColorSchemeManager actually resolves ColorScheme= against) and new
gtk_selection_color/gtk_selection_opacity palette keys with widget
controls, following the existing bar/pill/popup color+opacity pattern.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
This commit is contained in:
nico
2026-09-29 01:19:42 +02:00
parent 1ca9812608
commit 823277f535
22 changed files with 573 additions and 99 deletions

View File

@@ -19,6 +19,8 @@ import subprocess
import sys
import tomllib
import icon_theme
HERE = os.path.dirname(os.path.abspath(__file__))
COLORS = os.path.join(HERE, "colors.toml")
TEMPLATES = os.path.join(HERE, "templates")
@@ -70,6 +72,8 @@ def render_all(colors):
os.makedirs(os.path.dirname(dest), exist_ok=True)
open(dest, "w").write(substitute(template, colors))
print(f"rendered {app} -> {dest}")
icon_theme.render(colors)
print(f"rendered gtk3-icons -> {icon_theme.DEST_THEME}")
def reload_apps():