From fd69924e515345d6cab67a80423565506c9b290d Mon Sep 17 00:00:00 2001 From: Filip Fila Date: Thu, 28 Nov 2019 00:48:30 +0100 Subject: [PATCH] [kcmkwin/kwindecoration] Better presentation of tabs Summary: Tabs in the Window Decoration KCM look awkward now because the frame is drawing an extra line while the tab bar is also drawing its line. This patch just slightly alters an existing hack so that the frame's top line can't be seen. Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D25582 --- kcmkwin/kwindecoration/package/contents/ui/main.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kcmkwin/kwindecoration/package/contents/ui/main.qml b/kcmkwin/kwindecoration/package/contents/ui/main.qml index fa68e764f2..403db2ab8f 100644 --- a/kcmkwin/kwindecoration/package/contents/ui/main.qml +++ b/kcmkwin/kwindecoration/package/contents/ui/main.qml @@ -46,16 +46,16 @@ Kirigami.Page { // out of https://bugs.kde.org/show_bug.cgi?id=394296 ColumnLayout { id: tabLayout - - // Tab styles generally assume that they're touching the inner layout, - // not the frame, so we need to move the tab bar down a pixel and make - // sure it's drawn on top of the frame - Layout.bottomMargin: -1 - z: 1 anchors.fill: parent spacing: 0 + Controls.TabBar { id: tabBar + // Tab styles generally assume that they're touching the inner layout, + // not the frame, so we need to move the tab bar down a pixel and make + // sure it's drawn on top of the frame + z: 1 + Layout.bottomMargin: -1 Layout.fillWidth: true Controls.TabButton {