Auto-reload Shell theme after matugen, style calendar panel and Zen URL bar

Add GNOME Shell theme reload (dconf toggle) to recolor-folders.sh
post-hook so colors apply immediately after update or wallpaper
change. Style calendar panel, date menu, pager buttons, and today
highlight. Fix Zen URL bar background mismatch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-14 09:42:29 +01:00
parent dee11c713e
commit 24994ab912
4 changed files with 58 additions and 4 deletions

View file

@ -142,7 +142,7 @@
gsettings set org.gnome.desktop.background picture-uri "file://$img" gsettings set org.gnome.desktop.background picture-uri "file://$img"
gsettings set org.gnome.desktop.background picture-uri-dark "file://$img" gsettings set org.gnome.desktop.background picture-uri-dark "file://$img"
matugen image "$img" --source-color-index 0 -m dark matugen image "$img" --source-color-index 0 -m dark
echo "Wallpaper and colors updated!" echo "Wallpaper and colors updated! Shell theme reloaded."
end end
''; '';
} }

View file

@ -136,6 +136,50 @@ stage {
color: {{colors.on_surface.default.hex}} !important; color: {{colors.on_surface.default.hex}} !important;
} }
/* Calendar / date menu panel */
.calendar, .datemenu-today-button, .events-button,
.world-clocks-button, .weather-button, .message {
background-color: {{colors.surface_container_high.default.hex}} !important;
color: {{colors.on_surface.default.hex}} !important;
}
.calendar .calendar-month-header .pager-button {
background-color: transparent !important;
color: {{colors.on_surface.default.hex}} !important;
}
.calendar .calendar-month-header .pager-button:hover {
background-color: {{colors.surface_container_highest.default.hex}} !important;
}
.calendar .calendar-month-header .calendar-month-label {
background-color: transparent !important;
color: {{colors.on_surface.default.hex}} !important;
}
.calendar .calendar-day-heading, .calendar .calendar-day {
background-color: transparent !important;
color: {{colors.on_surface.default.hex}} !important;
}
.calendar .calendar-day:hover {
background-color: {{colors.surface_container_highest.default.hex}} !important;
}
.calendar .calendar-day.calendar-today {
background-color: {{colors.primary_container.default.hex}} !important;
color: {{colors.on_primary_container.default.hex}} !important;
}
/* Notification / message list */
.message-list-placeholder {
color: {{colors.on_surface_variant.default.hex}} !important;
}
.message-list-controls {
color: {{colors.on_surface.default.hex}} !important;
}
/* Round icon buttons in quick settings header (settings gear, lock, power etc) */ /* Round icon buttons in quick settings header (settings gear, lock, power etc) */
.quick-settings .icon-button { .quick-settings .icon-button {
background-color: {{colors.surface_container_high.default.hex}} !important; background-color: {{colors.surface_container_high.default.hex}} !important;

View file

@ -136,3 +136,8 @@ if [ -f "$VSCODE_SETTINGS" ] && [ -f "$VSCODE_COLORS" ]; then
jq --argjson colors "$COLORS" '. * $colors' "$VSCODE_SETTINGS" > "$TMP" && mv "$TMP" "$VSCODE_SETTINGS" jq --argjson colors "$COLORS" '. * $colors' "$VSCODE_SETTINGS" > "$TMP" && mv "$TMP" "$VSCODE_SETTINGS"
fi fi
fi fi
# Reload GNOME Shell theme to apply new colors
dconf write /org/gnome/shell/extensions/user-theme/name "''"
sleep 1
dconf write /org/gnome/shell/extensions/user-theme/name "'WallpaperShell'"

View file

@ -26,8 +26,13 @@
background-color: {{colors.surface_container_high.default.hex}} !important; background-color: {{colors.surface_container_high.default.hex}} !important;
} }
/* URL bar */ /* URL bar — override Zen's color-mix background */
#urlbar .urlbar-background,
#urlbar-background { #urlbar-background {
background-color: {{colors.surface_container.default.hex}} !important;
}
#urlbar[focused="true"] .urlbar-background {
background-color: {{colors.surface_container_high.default.hex}} !important; background-color: {{colors.surface_container_high.default.hex}} !important;
} }
@ -35,9 +40,9 @@
color: {{colors.on_surface.default.hex}} !important; color: {{colors.on_surface.default.hex}} !important;
} }
/* Nav bar and toolbar */ /* Nav bar and toolbar — match the toolbar background */
#nav-bar { #nav-bar {
background-color: {{colors.surface_container.default.hex}} !important; background-color: transparent !important;
} }
/* Sidebar text and icons */ /* Sidebar text and icons */