[Xfce4-commits] [xfce/xfdesktop] 01/01: Improve fallback CSS
noreply at xfce.org
noreply at xfce.org
Mon Jun 17 15:50:15 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfdesktop.
commit a028fb1c5400f4c7ff4e05d0ae4a0c98f2184691
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date: Mon Jun 17 15:13:25 2019 +0200
Improve fallback CSS
Copied over from Greybird and modified to apply theme colors
---
src/xfdesktop-application.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/xfdesktop-application.c b/src/xfdesktop-application.c
index 21fc491..539266a 100644
--- a/src/xfdesktop-application.c
+++ b/src/xfdesktop-application.c
@@ -137,23 +137,23 @@ struct _XfdesktopApplicationClass
GApplicationClass parent;
};
-const gchar *ToZ_CSS =
+const gchar *fallback_CSS =
"XfdesktopIconView.view {"
-" background-color: rgba(0,0,0,0.0);"
-" color: white;"
+" background: transparent;"
+" color: @theme_selected_fg_color;"
+" border-radius: 3px;"
"}"
"XfdesktopIconView.view:active {"
-" background-color: rgba(57,142,231,0.75);"
-" color: rgba(57,142,231,0.75);"
-" border-radius: 5px;"
+" background: alpha(@theme_selected_bg_color, 0.5);"
+" text-shadow: 0 1px 1px black;"
"}"
-"XfdesktopIconView.rubberband {"
-" background-color: rgba(0,0,0,0.25);"
+"XfdesktopIconView.view .label {"
+" text-shadow: 1px 1px 2px black;"
"}"
-"XfdesktopIconView.view.label,"
-"XfdesktopIconView.view.label:active {"
-" color: white;"
-" text-shadow: 1px 1px black;"
+"XfdesktopIconView .rubberband {"
+" background: alpha(@theme_selected_bg_color, 0.2);"
+" border: 1px solid @theme_selected_bg_color;"
+" border-radius: 0;"
"}";
G_DEFINE_TYPE(XfdesktopApplication, xfdesktop_application, G_TYPE_APPLICATION)
@@ -668,7 +668,7 @@ xfdesktop_application_theme_changed (GtkSettings *settings,
}
custom_provider = gtk_css_provider_new();
gtk_css_provider_load_from_data(custom_provider,
- ToZ_CSS,
+ fallback_CSS,
-1,
NULL);
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list