summaryrefslogtreecommitdiffstats
path: root/components/theme
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 10:07:13 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 10:07:13 +0200
commite78224a7d9ccf70aadde8c0bff1cab72e8cb7438 (patch)
tree57afeef37640051a8d28d614c33345e509ce387b /components/theme
parentbfba957a7ebc64925bc553200616724cba9b1e37 (diff)
downloadkube-e78224a7d9ccf70aadde8c0bff1cab72e8cb7438.tar.gz
kube-e78224a7d9ccf70aadde8c0bff1cab72e8cb7438.zip
Moved theme to framework
Diffstat (limited to 'components/theme')
-rw-r--r--components/theme/contents/ui/Colors.qml36
-rw-r--r--components/theme/contents/ui/Icons.qml49
-rw-r--r--components/theme/contents/ui/Units.qml32
-rw-r--r--components/theme/contents/ui/main.qml23
-rw-r--r--components/theme/metadata.desktop8
-rw-r--r--components/theme/qmldir5
6 files changed, 0 insertions, 153 deletions
diff --git a/components/theme/contents/ui/Colors.qml b/components/theme/contents/ui/Colors.qml
deleted file mode 100644
index 9d1737d1..00000000
--- a/components/theme/contents/ui/Colors.qml
+++ /dev/null
@@ -1,36 +0,0 @@
1/*
2 Copyright (C) 2017 Michael Bohlender, <bohlender@kolabsys.com>
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 along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17*/
18
19pragma Singleton
20
21import QtQuick 2.7
22
23Item {
24 property string textColor: "#31363b"
25 property string disabledTextColor: "#7f8c8d"
26 property string backgroundColor: "#eff0f1"
27 property string viewBackgroundColor: "#fcfcfc"
28 property string highlightColor: "#3daee9"
29 property string highlightedTextColor: "#fcfcfc"
30
31
32 property string positveColor: "#27ae60"
33 property string warningColor: "#f67400"
34 property string negativeColor: "#ed1515"
35}
36
diff --git a/components/theme/contents/ui/Icons.qml b/components/theme/contents/ui/Icons.qml
deleted file mode 100644
index 0b161635..00000000
--- a/components/theme/contents/ui/Icons.qml
+++ /dev/null
@@ -1,49 +0,0 @@
1/*
2 Copyright (C) 2017 Michael Bohlender, <bohlender@kolabsys.com>
3 Copyright (C) 2017 Christian Mollekopf, <mollekopf@kolabsys.com>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18*/
19
20pragma Singleton
21
22import QtQuick 2.7
23
24Item {
25 property string error: "error"
26 property string busy: "view-refresh"
27 property string noNetworkConnection: "network-disconnect"
28 property string connected: "dialog-ok"
29 property string success: "dialog-ok"
30
31 property string markAsRead: "mail-mark-unread-new"
32 property string markImportant: "mail-mark-important"
33 property string undo: "edit-undo"
34 property string moveToTrash: "edit-delete"
35 property string edit: "document-edit"
36 property string replyToSender: "mail-reply-sender"
37
38 property string menu: "application-menu"
39 property string user: "im-user"
40 property string search: "edit-find"
41 property string goBack: "go-previous"
42 property string goDown: "go-down"
43 property string goUp: "go-down"
44
45 property string addNew: "list-add-new"
46 property string folder: "folder"
47
48}
49
diff --git a/components/theme/contents/ui/Units.qml b/components/theme/contents/ui/Units.qml
deleted file mode 100644
index 96216f82..00000000
--- a/components/theme/contents/ui/Units.qml
+++ /dev/null
@@ -1,32 +0,0 @@
1/*
2 Copyright (C) 2017 Michael Bohlender, <bohlender@kolabsys.com>
3 Copyright (C) 2017 Christian Mollekopf, <mollekopf@kolabsys.com>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18*/
19
20pragma Singleton
21
22import QtQuick 2.7
23
24Item {
25 property int gridUnit: fontMetrics.height
26 property int smallSpacing: gridUnit/4
27 property int largeSpacing: gridUnit
28 property variant fontMetrics: TextMetrics {
29 text: "M"
30 }
31}
32
diff --git a/components/theme/contents/ui/main.qml b/components/theme/contents/ui/main.qml
deleted file mode 100644
index c3c7ac8f..00000000
--- a/components/theme/contents/ui/main.qml
+++ /dev/null
@@ -1,23 +0,0 @@
1
2import QtQuick 2.7
3import QtQuick.Layouts 1.2
4
5import org.kube.components.theme 1.0 as KubeTheme
6
7Item {
8 height: 200
9 width: 200
10
11 RowLayout {
12
13 anchors.fill: parent
14
15 Rectangle {
16
17 height: 50
18 width: 50
19
20 color: KubeTheme.Colors.text
21 }
22 }
23}
diff --git a/components/theme/metadata.desktop b/components/theme/metadata.desktop
deleted file mode 100644
index 359990d1..00000000
--- a/components/theme/metadata.desktop
+++ /dev/null
@@ -1,8 +0,0 @@
1[Desktop Entry]
2Name=Kube Theme
3X-KDE-PluginInfo-Name=org.kube.components.theme
4Exec=kpackagelauncherqml -a org.kube.components.theme
5X-Plasma-MainScript=ui/main.qml
6X-KDE-ServiceTypes=KPackage/GenericQML
7Icon=kmail2
8Type=Service
diff --git a/components/theme/qmldir b/components/theme/qmldir
deleted file mode 100644
index 16b385ab..00000000
--- a/components/theme/qmldir
+++ /dev/null
@@ -1,5 +0,0 @@
1module org.kube.components.theme
2
3singleton Colors 1.0 Colors.qml
4singleton Icons 1.0 Icons.qml
5singleton Units 1.0 Units.qml