Allow themes to use a custom icon theme via the icons.theme file

They get to pick from the Yaru color set
This commit is contained in:
David Heinemeier Hansson
2025-08-01 14:23:29 +02:00
parent 95de571809
commit 3d22840543
13 changed files with 31 additions and 0 deletions

View File

@ -32,6 +32,13 @@ else
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
fi fi
# Change gnome icon theme color
if [[ -f ~/.config/omarchy/current/theme/icons.theme ]]; then
gsettings set org.gnome.desktop.interface icon-theme "$(<~/.config/omarchy/current/theme/icons.theme)"
else
gsettings set org.gnome.desktop.interface icon-theme "Adwaita"
fi
# Trigger alacritty config reload # Trigger alacritty config reload
touch "$HOME/.config/alacritty/alacritty.toml" touch "$HOME/.config/alacritty/alacritty.toml"

View File

@ -10,6 +10,11 @@ if ! yay -Q gnome-themes-extra &>/dev/null; then
yay -S --noconfirm gnome-themes-extra # Adds Adwaita-dark theme yay -S --noconfirm gnome-themes-extra # Adds Adwaita-dark theme
fi fi
# Allow icons to match the theme
if ! yay -! yaru-icon-theme &>/dev/null; then
yay -S --noconfirm yaru-icon-theme
fi
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"

9
migrations/1754047941.sh Normal file
View File

@ -0,0 +1,9 @@
echo "Add icon theme coloring"
if ! yay -! yaru-icon-theme &>/dev/null; then
yay -S --noconfirm yaru-icon-theme
if [[ -f ~/.config/omarchy/current/theme/icons.theme ]]; then
gsettings set org.gnome.desktop.interface icon-theme "$(<~/.config/omarchy/current/theme/icons.theme)"
fi
fi

View File

@ -0,0 +1 @@
Yaru-blue

View File

@ -0,0 +1 @@
Yaru-purple

View File

@ -0,0 +1 @@
Yaru-sage

View File

@ -0,0 +1 @@
Yaru-olive

View File

@ -0,0 +1 @@
Yaru-blue

View File

@ -0,0 +1 @@
Yaru-red

1
themes/nord/icons.theme Normal file
View File

@ -0,0 +1 @@
Yaru-blue

View File

@ -0,0 +1 @@
Yaru-yellow

View File

@ -0,0 +1 @@
Yaru-blue

View File

@ -0,0 +1 @@
Yaru-magenta