Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/package/contents/ui/main.qml
Show All 40 Lines | 26 | Kirigami.Page { | |||
---|---|---|---|---|---|
41 | 41 | | |||
42 | implicitWidth: Kirigami.Units.gridUnit * 48 | 42 | implicitWidth: Kirigami.Units.gridUnit * 48 | ||
43 | implicitHeight: Kirigami.Units.gridUnit * 33 | 43 | implicitHeight: Kirigami.Units.gridUnit * 33 | ||
44 | 44 | | |||
45 | // TODO: replace this TabBar-plus-Frame-in-a-ColumnLayout with whatever shakes | 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 | 46 | // out of https://bugs.kde.org/show_bug.cgi?id=394296 | ||
47 | ColumnLayout { | 47 | ColumnLayout { | ||
48 | id: tabLayout | 48 | id: tabLayout | ||
49 | anchors.fill: parent | ||||
50 | spacing: 0 | ||||
49 | 51 | | |||
52 | Controls.TabBar { | ||||
53 | id: tabBar | ||||
50 | // Tab styles generally assume that they're touching the inner layout, | 54 | // 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 | 55 | // 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 | 56 | // sure it's drawn on top of the frame | ||
53 | Layout.bottomMargin: -1 | | |||
54 | z: 1 | 57 | z: 1 | ||
55 | anchors.fill: parent | 58 | Layout.bottomMargin: -1 | ||
56 | spacing: 0 | | |||
57 | Controls.TabBar { | | |||
58 | id: tabBar | | |||
59 | Layout.fillWidth: true | 59 | Layout.fillWidth: true | ||
60 | 60 | | |||
61 | Controls.TabButton { | 61 | Controls.TabButton { | ||
62 | text: i18nc("tab label", "Theme") | 62 | text: i18nc("tab label", "Theme") | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | Controls.TabButton { | 65 | Controls.TabButton { | ||
66 | text: i18nc("tab label", "Titlebar Buttons") | 66 | text: i18nc("tab label", "Titlebar Buttons") | ||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |