Changeset View
Changeset View
Standalone View
Standalone View
kcms/colors/package/contents/ui/main.qml
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 44 | Binding { | |||
---|---|---|---|---|---|
47 | value: filterCombo.model[filterCombo.currentIndex].filter | 47 | value: filterCombo.model[filterCombo.currentIndex].filter | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | enabled: !kcm.downloadingFile | 50 | enabled: !kcm.downloadingFile | ||
51 | 51 | | |||
52 | Component.onCompleted: { | 52 | Component.onCompleted: { | ||
53 | // The thumbnails are a bit more elaborate and need more room, especially when translated | 53 | // The thumbnails are a bit more elaborate and need more room, especially when translated | ||
54 | view.implicitCellWidth = Kirigami.Units.gridUnit * 13; | 54 | view.implicitCellWidth = Kirigami.Units.gridUnit * 13; | ||
55 | view.implicitCellHeight = Kirigami.Units.gridUnit * 11; | ||||
55 | } | 56 | } | ||
56 | 57 | | |||
57 | DropArea { | 58 | DropArea { | ||
58 | anchors.fill: parent | 59 | anchors.fill: parent | ||
59 | onEntered: { | 60 | onEntered: { | ||
60 | if (!drag.hasUrls) { | 61 | if (!drag.hasUrls) { | ||
61 | drag.accepted = false; | 62 | drag.accepted = false; | ||
62 | } | 63 | } | ||
▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | 166 | thumbnail: Rectangle { | |||
172 | 173 | | |||
173 | color: model.palette.window | 174 | color: model.palette.window | ||
174 | 175 | | |||
175 | Kirigami.Theme.highlightColor: model.palette.highlight | 176 | Kirigami.Theme.highlightColor: model.palette.highlight | ||
176 | Kirigami.Theme.highlightedTextColor: model.palette.highlightedText | 177 | Kirigami.Theme.highlightedTextColor: model.palette.highlightedText | ||
177 | Kirigami.Theme.linkColor: model.palette.link | 178 | Kirigami.Theme.linkColor: model.palette.link | ||
178 | Kirigami.Theme.textColor: model.palette.text | 179 | Kirigami.Theme.textColor: model.palette.text | ||
179 | 180 | | |||
180 | ColumnLayout { | 181 | Rectangle { | ||
182 | id: windowTitleBar | ||||
183 | width: parent.width | ||||
184 | height: Math.round(Kirigami.Units.gridUnit * 1.5) | ||||
185 | gradient: Gradient { | ||||
186 | // from Breeze Decoration::paintTitleBar | ||||
187 | GradientStop { position: 0.0; color: Qt.lighter(model.activeTitleBarBackground, 1.2) } | ||||
188 | GradientStop { position: 0.8; color: model.activeTitleBarBackground } | ||||
189 | } | ||||
190 | | ||||
191 | color: model.activeTitleBarBackground | ||||
192 | | ||||
193 | QtControls.Label { | ||||
181 | anchors { | 194 | anchors { | ||
182 | fill: parent | 195 | fill: parent | ||
196 | leftMargin: Kirigami.Units.smallSpacing | ||||
197 | rightMargin: Kirigami.Units.smallSpacing | ||||
198 | } | ||||
199 | horizontalAlignment: Text.AlignHCenter | ||||
200 | verticalAlignment: Text.AlignVCenter | ||||
201 | color: model.activeTitleBarForeground | ||||
202 | text: i18n("Window Title") | ||||
203 | textFormat: Text.PlainText | ||||
204 | elide: Text.ElideRight | ||||
205 | } | ||||
206 | } | ||||
207 | | ||||
208 | ColumnLayout { | ||||
209 | anchors { | ||||
210 | left: parent.left | ||||
211 | right: parent.right | ||||
212 | top: windowTitleBar.bottom | ||||
213 | bottom: parent.bottom | ||||
183 | margins: Kirigami.Units.smallSpacing | 214 | margins: Kirigami.Units.smallSpacing | ||
184 | } | 215 | } | ||
185 | 216 | | |||
186 | RowLayout { | 217 | RowLayout { | ||
187 | Layout.fillWidth: true | 218 | Layout.fillWidth: true | ||
188 | 219 | | |||
189 | QtControls.Label { | 220 | QtControls.Label { | ||
190 | Layout.fillWidth: true | 221 | Layout.fillWidth: true | ||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |