Add theming for Timeshift on GNOME

Currently Timeshift, as it’s running as root, isn’t following the system theme:


A synchronization of the root user’s theme with the local user’s could probably be implemented, or just for this application

We don’t package timeshift ourselves. It’s a package we take over verbatim from Arch. You can however easily remedy the problem as follows… :backhand_index_pointing_down:

sudo cp -RP /home/your-user-name/.config/gtk-3.0 /root/.config/
1 Like

For Gnome go into Qt5 Settings. You can change all qt based apps there.

I have kvantum-dark

Wait.. GTK. Derp. I know I made a setting through the GUI to make GTK apps dark..

timeshift is not a qt-based application; it’s gtk3. kvantum has no effect on that. :wink:

In this case, it’s related to the UID. timeshift runs with root privileges, so it uses the root account’s gtk theme. :wink:

In my case it is themed, but i am on xfce.

1 Like

Ok I will just do this

Actually didn’t work
this is what it copied:

@define-color accent_blue #3584e4;
@define-color accent_teal #2190a4;
@define-color accent_green #3a944a;
@define-color accent_yellow #c88800;
@define-color accent_orange #ed5b00;
@define-color accent_red #e62d42;
@define-color accent_pink #d56199;
@define-color accent_purple #9141ac;
@define-color accent_slate #6f8396;
@define-color accent_maia #16a085;
@define-color accent_bg_color @accent_maia;

It’s still using Adwaita light theme with blue accent

XY Problem detected.

How are you launching it?

One should be starting it it via the menu entry or timeshift-launcher from the terminal. Never run timeshift-gtk or any other graphical application with sudo. See Running GUI applications as root - ArchWiki

1 Like

From the menu entry, it asks for password as soon as it starts

The menu entry executes timeshift-launcher which runs timeshift-gtk via pkexec from Polkit. Timeshift will use the theme set by the current user.

What is the output of the following?

whoami
gsettings get org.gnome.desktop.interface accent-color
gsettings get org.gnome.desktop.interface gtk-theme

My bad, I just realized why it’s happening, I’ve deleted manjaro-gnome-settings so I could delete Papirus and Bibata, which are dependencies, and this seems to have broken Timeshift, since it reverts the settings back to default when you uninstall it. I don’t know which setting exactly it is, but I will keep the package from now on to prevent quirks. It would be nice if those themes weren’t dependencies, though.

Timeshift is not related to anything you mentioned–other than manjaro-gnome-settings depends on adw-gtk-theme. That’s the package you apparently were missing.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.