[plasma/breeze-gtk] src/gtk4/widgets: gtk4/window_decorations: fix buttons overflow

Rocket Aaron <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 21ed9d9ca8d0bf3e588de5a3fde510a7156c19e1 by Rocket Aaron.
Committed on 17/08/2026 at 14:30.
Pushed by ngraham into branch 'master'.

gtk4/window_decorations: fix buttons overflow

M  +8    -19   src/gtk4/widgets/_window_decorations.scss

https://invent.kde.org/plasma/breeze-gtk/-/commit/21ed9d9ca8d0bf3e588de5a3fde510a7156c19e1

diff --git a/src/gtk4/widgets/_window_decorations.scss b/src/gtk4/widgets/_window_decorations.scss
index a3ae47f..76ed149 100644
--- a/src/gtk4/widgets/_window_decorations.scss
+++ b/src/gtk4/widgets/_window_decorations.scss
@@ -79,25 +79,14 @@ headerbar,
 	windowcontrols button {
 		min-height: 18px;
 		min-width: 18px;
-		padding: 0;
-
-		$extra_margin: 14px;
-		$extra_padding: $extra_margin*2; // extend to screen border
-
-		margin-top: -$extra_margin;
-		padding-top: $extra_padding;
-		margin-bottom: -$extra_margin;
-		padding-bottom: $extra_padding;
-
-		&:dir(ltr) {
-			margin-right: -$extra_margin/2;
-			padding-right: $extra_margin;
-		}
-
-		&:dir(rtl) {
-			margin-left: -$extra_margin/2;
-			padding-left: $extra_margin;
-		}
+		// extend to window top, compensate for "border-top: 1px" of headerbar
+		margin-top: -1px;
+		padding-top: 9px;
+		padding-bottom:8px;
+		margin-bottom: 0px;
+		// compensate for 1px more padding-top than padding-bottom, to make
+		// background-image align vertical center
+		border-top-width: 2px;
 
 		image {
 			color: transparent;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.