From 0b6b3d8290d6998f0190a6e78386dcf58ab8b4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Thu, 16 Dec 2021 04:38:47 +0100 Subject: [PATCH] Improve light theme compatibility @content_view_bg has been there since ever. Many colours remain hardcoded, but it's a major improvement. --- fastiv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fastiv.c b/fastiv.c index 03e4af9..33536a2 100644 --- a/fastiv.c +++ b/fastiv.c @@ -579,7 +579,7 @@ main(int argc, char *argv[]) // This is incredibly broken https://stackoverflow.com/a/51054396/76313 // thus resolving the problem using overlaps. const char *style = "@define-color fastiv-tile #3c3c3c; \ - fastiv-view, fastiv-browser { background: #222; } \ + fastiv-view, fastiv-browser { background: @content_view_bg; } \ placessidebar.fastiv .toolbar { padding: 2px 6px; } \ placessidebar.fastiv box > separator { margin: 4px 0; } \ fastiv-browser { padding: 5px; } \ @@ -596,8 +596,8 @@ main(int argc, char *argv[]) background-position: 0 0, 0 20px, 20px -20px, -20px 0px; \ } \ fastiv-browser.item.symbolic { \ - border-color: transparent; color: #222; \ - background: #2c2c2c; background-image: none; \ + border-color: transparent; color: @content_view_bg; \ + background: @theme_bg_color; background-image: none; \ }"; GtkCssProvider *provider = gtk_css_provider_new();