From aa773e618bfa040443eeb8b62f1ca3a0f45d77ed Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Sun, 23 Mar 2025 01:35:32 +0000 Subject: [PATCH] themes: Plug system theme leak for menu hover Some system themes add additional padding or borders to menu items when hovered over, which causes the menu to jitter or shake. This patch attempts to mitigate the issue by defining those values in the Default CSS theme. --- themes/Default/common.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/themes/Default/common.css b/themes/Default/common.css index 0c53c1317f..d532e67caf 100644 --- a/themes/Default/common.css +++ b/themes/Default/common.css @@ -650,15 +650,21 @@ menubar > menuitem:hover { /* Top menubar subitem style */ menu menuitem { - color: @fg-color; background-color: @bg-color; } menu menuitem:hover { - color: @fg-color; background-color: @extreme-bg-color; } +menu menuitem, menu menuitem:hover { + border-width: 0px; + color: @fg-color; + min-height: 16px; + min-width: 40px; + padding: 4px 6px; +} + menuitem *:hover { color: @fg-color; background: @extreme-selected-color;