spawning of windows
[qt-letitsnow] / contents / ui / ConfigGeneral.qml
1 /*
2  *  Copyright 2020 Robin Krens <robin@robinkrens.nl>
3  *
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.
8  *
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.
13  *
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.
17  */
18
19 import QtQuick 2.0
20 import QtQuick.Layouts 1.1 as QtLayouts
21 import QtQuick.Controls 1.0 as QtControls
22
23 import org.kde.plasma.core 2.0 as PlasmaCore
24 import org.kde.plasma.extras 2.0 as PlasmaExtras
25
26 Item {
27         id: iconsPage
28         width: childrenRect.width
29         height: childrenRect.height
30         implicitWidth: pageColumn.implicitWidth
31         implicitHeight: pageColumn.implicitHeight
32         property string cfg_item_color;
33
34         SystemPalette {
35                 id: sypal
36         }
37
38         QtLayouts.ColumnLayout {
39
40                 id: pageColumn
41
42                 anchors.left: parent.left
43                 PlasmaExtras.Heading {
44                 text: i18nc("Heading for colors", "Item shade color")
45                 color: syspal.text
46                 level: 3
47         }
48
49         /* User can't specify an exact color, since i'm using
50          * gradients and alpha for colors */
51         QtControls.ComboBox {
52                 id: dot
53                 model: ["red", "green", "blue"];
54                 currentIndex: dot.model.indexOf(cfg_item_color)
55                 onActivated: cfg_item_color = model[index]
56         }
57
58     }
59 }