Experimenting with Gtk+ theme variants: Adwaita red

Most Gtk+ themes offer a “light” and a “dark” variant, however I found out that these names are just conventional: a Gtk+ theme can define variants with arbitrary names, so maybe this can be used for some fun stuff.

I set up a proof of concept: I defined a “red” variant and used it to restyle windows when the user is operating as root, Timm Bäder told me that someone from Elementary OS has come up with this idea already but I didn't find a practical demonstration, so here it is:

The code to set the variant when the root shell is executed can be found in the patch from GNOME Bug 769194.


CommentsSyndicate content

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
7
E
t
r
h
8
Enter the code without spaces.