[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:
parent
2f000e3df4
commit
fd69924e51
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
|
anchors.fill: parent
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Controls.TabBar {
|
||||||
|
id: tabBar
|
||||||
// Tab styles generally assume that they're touching the inner layout,
|
// 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
|
// 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
|
// sure it's drawn on top of the frame
|
||||||
Layout.bottomMargin: -1
|
|
||||||
z: 1
|
z: 1
|
||||||
anchors.fill: parent
|
Layout.bottomMargin: -1
|
||||||
spacing: 0
|
|
||||||
Controls.TabBar {
|
|
||||||
id: tabBar
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Controls.TabButton {
|
Controls.TabButton {
|
||||||
|
|
Loading…
Reference in a new issue