From 59de202cf1ff2811f07512db8941db4c98206773 Mon Sep 17 00:00:00 2001 From: He4eT Date: Sat, 10 Aug 2024 13:22:31 +0200 Subject: [PATCH] gtk-4: menu --- general/gtk-4.css | 19 +++++++++++++++---- general/widgets.css | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/general/gtk-4.css b/general/gtk-4.css index 0cd6039..c8f614e 100644 --- a/general/gtk-4.css +++ b/general/gtk-4.css @@ -57,18 +57,29 @@ infobar > revealer > box { padding: 8px; border-spacing: 10px; } /* Menus */ -popover.background{ background-color: transparent; border: none;} +popover.background { + background-color: transparent; + border: none; +} popover.background > arrow, popover.background > contents { border: 0px solid @gtk_transparent_borders; - /* box-shadow: 0 1px 2px @gtk_menu_shadow; */ box-shadow: none; } popover.background > arrow, -popover.background > contents -{background-color: @gtk_bg_color;} +popover.background > contents { + background-color: @gtk_bg_color; +} +popover.menu contents { + padding-top: 0px; +} + +popover.menu modelbutton:selected { + outline: none; + background-color: shade(@gtk_selected_bg_color,1.4); +} popover.menu.background > contents .linked button:first-child{ margin-left: 4px; } popover.menu.background > contents .linked button:last-child{ margin-right: 4px; } diff --git a/general/widgets.css b/general/widgets.css index e56ff98..4ce8d65 100644 --- a/general/widgets.css +++ b/general/widgets.css @@ -1433,7 +1433,7 @@ window.background:not(.csd):not(.solid-csd) > grid.horizontal > grid.horizontal: .csd .menu{ padding: 4px 1px; } popover.menu.background > contents, -popover.background.menu > contents { padding: 4px 0; } +popover.background.menu > contents { padding: 0px 0; } popover.background > contents{padding: 4px;} popover.menu box.inline-buttons { padding: 0 8px; }