Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/color/contents/ui/config.qml
Show All 12 Lines | |||||
13 | * GNU General Public License for more details. | 13 | * GNU General Public License for more details. | ||
14 | * | 14 | * | ||
15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | 16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.0 | 20 | import QtQuick 2.0 | ||
21 | import QtQuick.Controls 1.0 as QtControls | | |||
22 | import org.kde.kquickcontrols 2.0 as KQuickControls | 21 | import org.kde.kquickcontrols 2.0 as KQuickControls | ||
23 | //We need units from it | 22 | import org.kde.kirigami 2.5 as Kirigami | ||
24 | import org.kde.plasma.core 2.0 as Plasmacore | | |||
25 | 23 | | |||
26 | Column { | 24 | Kirigami.FormLayout { | ||
27 | id: root | 25 | id: root | ||
28 | property alias cfg_Color: colorButton.color | 26 | twinFormLayouts: parentLayout | ||
29 | 27 | | |||
30 | Row { | 28 | property alias cfg_Color: colorButton.color | ||
31 | spacing: units.largeSpacing / 2 | | |||
32 | 29 | | |||
33 | QtControls.Label { | | |||
34 | width: formAlignment - units.largeSpacing | | |||
35 | anchors.verticalCenter: colorButton.verticalCenter | | |||
36 | horizontalAlignment: Text.AlignRight | | |||
37 | text: i18nd("plasma_wallpaper_org.kde.color", "Color:") | | |||
38 | } | | |||
39 | KQuickControls.ColorButton { | 30 | KQuickControls.ColorButton { | ||
40 | id: colorButton | 31 | id: colorButton | ||
32 | Kirigami.FormData.label: i18nd("plasma_wallpaper_org.kde.color", "Color:") | ||||
41 | dialogTitle: i18nd("plasma_wallpaper_org.kde.color", "Select Background Color") | 33 | dialogTitle: i18nd("plasma_wallpaper_org.kde.color", "Select Background Color") | ||
42 | } | 34 | } | ||
43 | } | 35 | } | ||
44 | } | |