I'd like to create a theme based on Adwaita.
I discovered that Adwaita no longer uses *.css
files:
cat /usr/share/themes/Adwaita/gtk-3.0/gtk.css
/* Adwaita is now part of GTK+ 3, this file is no longer used */
I found the Adwaita source code on GitLab:
MASTER: https://gitlab.gnome.org/GNOME/gtk/tree/master/gtk/theme/Adwaita
VERSION 3.24.10: https://gitlab.gnome.org/GNOME/gtk/tree/3.24.10/gtk/theme/Adwaita
(UPDATE: The "master" branch on GitLab may be "buggy" since it is in development. Instead, a more stable branch such as 3.24.10 should be used).
Therefore, I can download the source files from Gitlab and modify the included *.scss
files with the color changes I want.
Once I've made my changes, how do compile the source into a new theme, and deploy it on my machine?
Ubuntu 18.04
I Just tried it by understanding the
README
file from~/Downloads/gtk-master/gtk/theme/Adwaita/
from the link you provided.. https://gitlab.gnome.org/GNOME/gtk/tree/master/gtk/theme/Adwaita~/Downloads/gtk-master/gtk/theme/Adwaita/_colors.scss
Content:
Saved & Closed
sudo apt install sassc
cd ~/Downloads/gtk-master/gtk/theme/Adwaita
sassc -M -t compact gtk-contained.scss MyCustomized.css
copied this MyCustomized.css file into a newly created theme folder in
/usr/share/themes/MyCustomized/gtk-3.0/
and renamed it asgtk.css
copied the
assets
folder from~/Downloads/gtk-master/gtk/theme/Adwaita/
to/usr/share/themes/MyCustomized/gtk-3.0/
this MyCustomized theme can be selected from
gnome-tweaks
and the result is