[Xfce4-commits] [xfce/xfce4-settings] 01/01: settings-manager: Cut the underline hover-effect by 1px
noreply at xfce.org
noreply at xfce.org
Wed Jul 18 23:43:54 CEST 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i 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/xfce4-settings.
commit fd39e06405dc02b4ab29bb2a12866df4cc48a660
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Wed Jul 18 23:42:33 2018 +0200
settings-manager: Cut the underline hover-effect by 1px
Adding a transparent left and right border visually cuts the box-shadow
by overlaying it, thus reducing the width of the underline which feels a
little excessive.
---
xfce4-settings-manager/xfce-settings-manager-dialog.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xfce4-settings-manager/xfce-settings-manager-dialog.c b/xfce4-settings-manager/xfce-settings-manager-dialog.c
index bf7bfbb..fc0c137 100644
--- a/xfce4-settings-manager/xfce-settings-manager-dialog.c
+++ b/xfce4-settings-manager/xfce-settings-manager-dialog.c
@@ -344,7 +344,8 @@ xfce_settings_manager_dialog_set_hover_style (XfceSettingsManagerDialog *dialog)
gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color);
color_text = gdk_rgba_to_string (&color);
/* Set a fake underline with box-shadow and use gtk to highlight the icon of the cell renderer */
- css_string = g_strdup_printf (".exoiconview.view *:hover { -gtk-icon-effect: highlight; box-shadow: inset 0 -1px 1px %s; }",
+ css_string = g_strdup_printf (".exoiconview.view *:hover { -gtk-icon-effect: highlight; box-shadow: inset 0 -1px 1px %s;"
+ " border-left: 1px solid transparent; border-right: 1px solid transparent; }",
color_text);
gtk_css_provider_load_from_data (dialog->css_provider, css_string, -1, NULL);
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