Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/package/contents/ui/main.qml
Show All 36 Lines | 26 | Kirigami.Page { | |||
---|---|---|---|---|---|
37 | leftPadding: Kirigami.Settings.isMobile ? 0 : 8 | 37 | leftPadding: Kirigami.Settings.isMobile ? 0 : 8 | ||
38 | topPadding: leftPadding | 38 | topPadding: leftPadding | ||
39 | rightPadding: leftPadding | 39 | rightPadding: leftPadding | ||
40 | bottomPadding: leftPadding | 40 | bottomPadding: leftPadding | ||
41 | 41 | | |||
42 | implicitWidth: tabLayout.implicitWidth | 42 | implicitWidth: tabLayout.implicitWidth | ||
43 | implicitHeight: tabLayout.implicitHeight | 43 | implicitHeight: tabLayout.implicitHeight | ||
44 | 44 | | |||
45 | // TODO: replace this TabBar-plus-Frame-in-a-ColumnLayout with whatever shakes | ||||
46 | // out of https://bugs.kde.org/show_bug.cgi?id=394296 | ||||
45 | ColumnLayout { | 47 | ColumnLayout { | ||
46 | id: tabLayout | 48 | id: tabLayout | ||
49 | | ||||
50 | // Tab styles generally assume that they're touching the inner layout, | ||||
51 | // not the frame, so we need to move the tab bar down a pixel and make | ||||
52 | // sure it's drawn on top of the frame | ||||
53 | Layout.bottomMargin: -1 | ||||
54 | z: 1 | ||||
47 | anchors.fill: parent | 55 | anchors.fill: parent | ||
48 | spacing: 0 | 56 | spacing: 0 | ||
49 | Controls.TabBar { | 57 | Controls.TabBar { | ||
50 | id: tabBar | 58 | id: tabBar | ||
51 | Layout.fillWidth: true | 59 | Layout.fillWidth: true | ||
52 | 60 | | |||
53 | Controls.TabButton { | 61 | Controls.TabButton { | ||
54 | text: i18nc("tab label", "Theme") | 62 | text: i18nc("tab label", "Theme") | ||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |