2 * Copyright 2020 Robin Krens <robin@robinkrens.nl>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA.
20 import QtQuick.Layouts 1.1 as QtLayouts
21 import QtQuick.Controls 1.0 as QtControls
23 import org.kde.plasma.core 2.0 as PlasmaCore
24 import org.kde.plasma.extras 2.0 as PlasmaExtras
28 width: childrenRect.width
29 height: childrenRect.height
30 implicitWidth: pageColumn.implicitWidth
31 implicitHeight: pageColumn.implicitHeight
32 property string cfg_item_color;
38 QtLayouts.ColumnLayout {
42 anchors.left: parent.left
43 PlasmaExtras.Heading {
44 text: i18nc("Heading for colors", "Item shade color")
49 /* User can't specify an exact color, since i'm using
50 * gradients and alpha for colors */
53 model: ["red", "green", "blue"];
54 currentIndex: dot.model.indexOf(cfg_item_color)
55 onActivated: cfg_item_color = model[index]