Yaru Accent Colors are coming to Jammy!

While it’s something I’d like to have, it’s sadly technically impossible to have because we’d need to ship an infinite number of themes for each colour… Or well, maybe we could ship an higher number of themes and get the closer color depending on the wallpaper.

However…

Create a theme with accent color is really easy:

# Dependencies
sudo apt install meson sassc inkscape

git clone https://github.com/ubuntu/yaru.git
cd yaru
# Now edit meson_options.txt to add a colour or to change one that is already set
# to match your taste
meson _build -Dgnome-shell-gresource=true
ninja -C _build render-accented-icons # it takes a while and you need inkscape installed
sudo ninja -C _build install

Now you’ll find the new/modified accent installed for all the components.

1 Like

An update on this: if you prefer to have your GNOME Shell to always use a dark/light variant with the same accent color of the main theme, you can now tune this more:

gsettings set org.gnome.shell.ubuntu color-scheme prefer-dark # To always use a dark shell
gsettings set org.gnome.shell.ubuntu color-scheme prefer-light # To always use a light shell
gsettings reset org.gnome.shell.ubuntu color-scheme # To just use the default, in sync with default theme

For example, this is a light theme with a prefer-dark shell:

8 Likes

Hi! Do you know by any chance if Flatpak will also add support to this (as Snap do with common themes)? I’ve some Flatpak apps installed and they’re not respecting my chosen accent color.

An example (Extension Manager):

Never mind, I’ve just found a bug filled here: https://bugs.launchpad.net/ubuntu/+source/yaru-theme/+bug/1970282.