From fd3ba0ca0627f1da9b0deb18ea772427d84d598a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 3 Apr 2023 17:49:07 +0200 Subject: [PATCH] tweaks: Use consistent size for default decoration window buttons LP: #2012733, #2013271 --- gtk/src/default/gtk-4.0/_tweaks.scss | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/gtk/src/default/gtk-4.0/_tweaks.scss b/gtk/src/default/gtk-4.0/_tweaks.scss index 8ff957f26a..307a8ae8aa 100644 --- a/gtk/src/default/gtk-4.0/_tweaks.scss +++ b/gtk/src/default/gtk-4.0/_tweaks.scss @@ -79,7 +79,7 @@ windowcontrols { $_base_button_color: transparentize($fg_color, 0.9); $_base_hover_color: transparentize($fg_color, 0.85); $_base_active_color: transparentize($fg_color, 0.75); - + padding: 3px; margin: 0 4px; @@ -90,12 +90,30 @@ windowcontrols { } &:active, - &:checked { + &:checked { background: $_base_active_color; } } } +%titlebar, +headerbar { + &.default-decoration { + windowcontrols { + button, + menubutton { + min-height: 20px; + min-width: 20px; + } + + menubutton button { + min-height: 18px; + min-width: 18px; + } + } + } +} + // Mimic Libadwaita slider