cassidyjames / ephemeral

A private-by-default, always-incognito browser for elementary OS
https://cassidyjames.com
GNU General Public License v3.0
154 stars 22 forks source link

Recolor UI with HTML theme-color meta tag #284

Open cassidyjames opened 3 years ago

cassidyjames commented 3 years ago

Probably not the best way as it's not built into the version of WebKit being used here. Instead, I use a one-liner of injected JS to grab the contents of the theme-color meta tag on page load, and use that in GtkCSS to recolor the headerbar.

https://user-images.githubusercontent.com/611168/122969587-0d5a6280-d34a-11eb-9d64-db8f91768c1f.mp4

Potential issues:

cassidyjames commented 3 years ago

Ha, apparently this applies to all windows, not just the current window :see_no_evil: