Commit 8f29504
committed
GTK theme: persistent dconf override for prefer-dark + adw-gtk3-dark
Operator 2026-05-10: "window opens and works (not the mios.toml
defined prefer-dark mode yet)" -- GUI apps render correctly via
the cairo software path but were falling back to upstream light
Adwaita instead of MiOS's intended dark theme.
Root cause: live `gsettings set` writes only land in the user-db
(per-user ~/.config/dconf/user) and don't survive wsl --shutdown.
Without a system-db cascade, every fresh user-bus session reverts
to upstream defaults.
Fix: ship a dconf system-db override at
/etc/dconf/db/local.d/00-mios-theme + /etc/dconf/profile/user.
Compiled into the binary system-db by `dconf update` (wired into
build-mios.ps1's overlay phase right after the seed step). The
local system-db then cascades into every user dconf profile at
login, so operators see adw-gtk3-dark + prefer-dark + Adwaita
icons + Adwaita Sans 11 + GeistMono Nerd Font Mono 10 + standard
GNOME window button layout on first GTK app launch.
Operator-overridable per-user (gsettings set ... or GNOME Tweaks)
without touching the system file.
.gitignore allowlist entries added for /etc/dconf/db/local.d/* +
/etc/dconf/profile/* so the override files are tracked.1 parent f6f56d4 commit 8f29504
3 files changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
164 | 174 | | |
165 | 175 | | |
166 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments