[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
This commit is contained in:
Filip Fila 2019-11-28 00:48:30 +01:00
parent 2f000e3df4
commit fd69924e51

View file

@ -46,16 +46,16 @@ Kirigami.Page {
// out of https://bugs.kde.org/show_bug.cgi?id=394296 // out of https://bugs.kde.org/show_bug.cgi?id=394296
ColumnLayout { ColumnLayout {
id: tabLayout 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 anchors.fill: parent
spacing: 0 spacing: 0
Controls.TabBar { Controls.TabBar {
id: 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 Layout.fillWidth: true
Controls.TabButton { Controls.TabButton {