summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBj√∂rn Feber <[email protected]>2019-01-06 14:12:33 -0700
committerNate Graham <[email protected]>2019-01-06 14:26:13 -0700
commit3a43aa10b4ddeaa5b6cdc62353d617fc80a00912 (patch)
tree916e3e5b40732c1d5997ded27b8caf310deb9072
parent1301e6c7d1448a4c22c7e338908656b1a74c8294 (diff)
Don't use hardcoded background color
Summary: Fixes the hardcoded SDDM theme preview background color {F6530004} {F6530005} Test Plan: Open the SDDM KCM Reviewers: #vdg, #breeze, davidedmundson, ngraham Reviewed By: #vdg, #breeze, davidedmundson, ngraham Subscribers: ngraham, davidedmundson, #breeze, plasma-devel, #vdg Tags: #plasma Differential Revision: https://phabricator.kde.org/D18016
-rw-r--r--src/qml/main.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qml/main.qml b/src/qml/main.qml
index 40b9973..fdd77bf 100644
--- a/src/qml/main.qml
+++ b/src/qml/main.qml
@@ -19,7 +19,8 @@ import QtQuick.Layouts 1.1
Rectangle {
id: root
- color: "#b7bdc0"
+ SystemPalette { id: palette; colorGroup: SystemPalette.Active }
+ color: palette.base
width: 360
height:300
@@ -69,30 +70,36 @@ Rectangle {
columns: 2
Text {
+ color: palette.text
text: description
font.bold: true
font.pointSize: 13
}
Text {
+ color: palette.text
text: version
font.bold: true
font.pointSize: 10
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
}
Text {
+ color: palette.text
text: authorName
font.pointSize: 10
}
Text {
+ color: palette.text
text: license
font.pointSize: 7
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
}
Text {
+ color: palette.text
text: website
font.pointSize: 7
}
Text {
+ color: palette.text
text: email
font.pointSize: 7
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight