Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/color/contents/ui/config.qml
Show All 25 Lines | |||||
26 | Column { | 26 | Column { | ||
27 | id: root | 27 | id: root | ||
28 | property alias cfg_Color: colorDialog.color | 28 | property alias cfg_Color: colorDialog.color | ||
29 | 29 | | |||
30 | QtDialogs.ColorDialog { | 30 | QtDialogs.ColorDialog { | ||
31 | id: colorDialog | 31 | id: colorDialog | ||
32 | modality: Qt.WindowModal | 32 | modality: Qt.WindowModal | ||
33 | showAlphaChannel: false | 33 | showAlphaChannel: false | ||
34 | title: i18nd("plasma_applet_org.kde.color", "Select Background Color") | 34 | title: i18nd("plasma_wallpaper_org.kde.color", "Select Background Color") | ||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | Row { | 37 | Row { | ||
38 | spacing: units.largeSpacing / 2 | 38 | spacing: units.largeSpacing / 2 | ||
39 | 39 | | |||
40 | QtControls.Label { | 40 | QtControls.Label { | ||
41 | width: formAlignment - units.largeSpacing | 41 | width: formAlignment - units.largeSpacing | ||
42 | anchors.verticalCenter: colorButton.verticalCenter | 42 | anchors.verticalCenter: colorButton.verticalCenter | ||
43 | horizontalAlignment: Text.AlignRight | 43 | horizontalAlignment: Text.AlignRight | ||
44 | text: i18nd("plasma_applet_org.kde.color", "Color:") | 44 | text: i18nd("plasma_wallpaper_org.kde.color", "Color:") | ||
45 | } | 45 | } | ||
46 | QtControls.Button { | 46 | QtControls.Button { | ||
47 | id: colorButton | 47 | id: colorButton | ||
48 | width: units.gridUnit * 3 | 48 | width: units.gridUnit * 3 | ||
49 | onClicked: colorDialog.open() | 49 | onClicked: colorDialog.open() | ||
50 | 50 | | |||
51 | Rectangle { | 51 | Rectangle { | ||
52 | id: colorRect | 52 | id: colorRect | ||
53 | anchors.centerIn: parent | 53 | anchors.centerIn: parent | ||
54 | width: parent.width - 2 * units.smallSpacing | 54 | width: parent.width - 2 * units.smallSpacing | ||
55 | height: theme.mSize(theme.defaultFont).height | 55 | height: theme.mSize(theme.defaultFont).height | ||
56 | color: colorDialog.color | 56 | color: colorDialog.color | ||
57 | } | 57 | } | ||
58 | } | 58 | } | ||
59 | } | 59 | } | ||
60 | } | 60 | } |