From 484b9cfe6209cff1e4803c52f703161d0f324a51 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Fri, 21 Mar 2025 12:02:11 +0000 Subject: [PATCH] themes: Keep headerbar color consistent when out of focus On some system themes, the background color of menu items on a merged headerbar would be a different color from the rest of the menu when GIMP's main window was out of focus. This patch defines those items as clear so they become whatever color the rest of the headerbar is instead. --- themes/Default/common.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/Default/common.css b/themes/Default/common.css index 1199c91b15..f945603b5a 100644 --- a/themes/Default/common.css +++ b/themes/Default/common.css @@ -756,6 +756,10 @@ headerbar:backdrop * { color: @disabled-fg-color; } +headerbar:backdrop menuitem { + background-color: transparent; +} + /* Prevent overlapping menu/header borderlines for CSD */ headerbar button.titlebutton, headerbar > menubar { box-shadow: none;