From aefdb84bb4245bdb5226ace66816a4489adee5d4 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Wed, 17 Apr 2024 04:15:17 +0000 Subject: [PATCH] themes: Prevent too thick image button border Resolves #11337 "gtk-icon-shadow" is applied to all buttons with images, which creates a bold effect on symbolic icons. This patch zeroes this effect out and makes them highlight the background in the same way as the toolbox buttons. --- themes/Default/common.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/themes/Default/common.css b/themes/Default/common.css index 884dac1124..3dd670ecc0 100644 --- a/themes/Default/common.css +++ b/themes/Default/common.css @@ -237,7 +237,8 @@ toolbutton button.flat:hover { } toolbutton button.flat:checked, -toolbutton button.flat:checked:hover { +toolbutton button.flat:checked:hover, +.image-button:hover { background: @selected-color; } @@ -249,6 +250,11 @@ toolbutton button.flat:checked:active:hover { border-color: @hover-color; } +/* Prevent overly thick border around image buttons */ +.image-button image { + -gtk-icon-shadow: 0 0 transparent; +} + /* Color the toolbox Wilber icon */ GimpDock frame:first-child:not(label) { color: @dimmed-fg-color;