diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-03-10 12:41:52 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-03-10 12:41:52 +0100 |
commit | 73b2621624c87528ce776b74555ec98c56115661 (patch) | |
tree | cbb185ebbe46d96f5a1bbc86452d02e771737ff0 /components | |
parent | 581f2d772c3fe7226a56c0c24aa70f8676aa250b (diff) | |
download | kube-73b2621624c87528ce776b74555ec98c56115661.tar.gz kube-73b2621624c87528ce776b74555ec98c56115661.zip |
remove Colorpalette.qml and change its use to the theme plugin
Diffstat (limited to 'components')
-rw-r--r-- | components/mail/contents/ui/main.qml | 4 | ||||
-rw-r--r-- | components/package/contents/ui/ColorPalette.qml | 26 | ||||
-rw-r--r-- | components/package/contents/ui/FocusComposer.qml | 4 | ||||
-rw-r--r-- | components/package/contents/ui/MailListView.qml | 1 | ||||
-rw-r--r-- | components/package/contents/ui/Settings.qml | 5 | ||||
-rw-r--r-- | components/package/contents/ui/SingleMailView.qml | 3 | ||||
-rw-r--r-- | components/qmldir | 1 |
7 files changed, 7 insertions, 37 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index 8f2d3c52..181174d2 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml | |||
@@ -193,9 +193,5 @@ ApplicationWindow { | |||
193 | id: unit | 193 | id: unit |
194 | property int size: 5 | 194 | property int size: 5 |
195 | } | 195 | } |
196 | |||
197 | KubeComponents.ColorPalette { | ||
198 | id: colorPalette | ||
199 | } | ||
200 | } | 196 | } |
201 | 197 | ||
diff --git a/components/package/contents/ui/ColorPalette.qml b/components/package/contents/ui/ColorPalette.qml deleted file mode 100644 index db85cac6..00000000 --- a/components/package/contents/ui/ColorPalette.qml +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Michael Bohlender <michael.bohlender@kdemail.net> | ||
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 3 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, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | import QtQuick 2.4 | ||
19 | |||
20 | //TODO probably expose it from the Cpp side | ||
21 | Item { | ||
22 | property string background: "#fcfcfc" | ||
23 | property string selected: "#3daee9" | ||
24 | property string read: "#232629" | ||
25 | property string border: "#232629" | ||
26 | } \ No newline at end of file | ||
diff --git a/components/package/contents/ui/FocusComposer.qml b/components/package/contents/ui/FocusComposer.qml index 5c4d88d7..bc8b3f2d 100644 --- a/components/package/contents/ui/FocusComposer.qml +++ b/components/package/contents/ui/FocusComposer.qml | |||
@@ -45,7 +45,7 @@ Rectangle { | |||
45 | height: root.height * 0.8 | 45 | height: root.height * 0.8 |
46 | width: root.width * 0.8 | 46 | width: root.width * 0.8 |
47 | 47 | ||
48 | color: colorPalette.background | 48 | color: ColorPalette.background |
49 | 49 | ||
50 | MouseArea { | 50 | MouseArea { |
51 | anchors.fill: parent | 51 | anchors.fill: parent |
@@ -80,4 +80,4 @@ Rectangle { | |||
80 | } | 80 | } |
81 | } | 81 | } |
82 | } | 82 | } |
83 | } \ No newline at end of file | 83 | } |
diff --git a/components/package/contents/ui/MailListView.qml b/components/package/contents/ui/MailListView.qml index 8b612c52..bf5185dc 100644 --- a/components/package/contents/ui/MailListView.qml +++ b/components/package/contents/ui/MailListView.qml | |||
@@ -72,7 +72,6 @@ ScrollView { | |||
72 | 72 | ||
73 | anchors.fill: parent | 73 | anchors.fill: parent |
74 | 74 | ||
75 | // color: colorPalette.read | ||
76 | color: "steelblue" | 75 | color: "steelblue" |
77 | opacity: 0.1 | 76 | opacity: 0.1 |
78 | 77 | ||
diff --git a/components/package/contents/ui/Settings.qml b/components/package/contents/ui/Settings.qml index 692ddd0a..fa886f2b 100644 --- a/components/package/contents/ui/Settings.qml +++ b/components/package/contents/ui/Settings.qml | |||
@@ -23,13 +23,14 @@ import org.kde.plasma.core 2.0 as PlasmaCore | |||
23 | 23 | ||
24 | import org.kube.framework.settings 1.0 as KubeSettings | 24 | import org.kube.framework.settings 1.0 as KubeSettings |
25 | import org.kube.framework.domain 1.0 as KubeFramework | 25 | import org.kube.framework.domain 1.0 as KubeFramework |
26 | import org.kube.framework.theme 1.0 | ||
26 | 27 | ||
27 | Rectangle { | 28 | Rectangle { |
28 | id: root | 29 | id: root |
29 | 30 | ||
30 | visible: false | 31 | visible: false |
31 | 32 | ||
32 | color: colorPalette.border | 33 | color: ColorPalette.border |
33 | 34 | ||
34 | opacity: 0.9 | 35 | opacity: 0.9 |
35 | 36 | ||
@@ -47,7 +48,7 @@ Rectangle { | |||
47 | height: root.height * 0.8 | 48 | height: root.height * 0.8 |
48 | width: root.width * 0.8 | 49 | width: root.width * 0.8 |
49 | 50 | ||
50 | color: colorPalette.background | 51 | color: ColorPalette.background |
51 | 52 | ||
52 | MouseArea { | 53 | MouseArea { |
53 | anchors.fill: parent | 54 | anchors.fill: parent |
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index ff48a9d3..4b801a89 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml | |||
@@ -20,6 +20,7 @@ import QtQuick.Controls 1.3 | |||
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | 21 | ||
22 | import org.kube.framework.domain 1.0 as KubeFramework | 22 | import org.kube.framework.domain 1.0 as KubeFramework |
23 | import org.kube.framework.theme 1.0 | ||
23 | 24 | ||
24 | Item { | 25 | Item { |
25 | id: root | 26 | id: root |
@@ -30,7 +31,7 @@ Item { | |||
30 | 31 | ||
31 | anchors.fill: parent | 32 | anchors.fill: parent |
32 | 33 | ||
33 | color: colorPalette.background | 34 | color: ColorPalette.background |
34 | } | 35 | } |
35 | 36 | ||
36 | Repeater { | 37 | Repeater { |
diff --git a/components/qmldir b/components/qmldir index 204beff8..e9a70bc5 100644 --- a/components/qmldir +++ b/components/qmldir | |||
@@ -1,6 +1,5 @@ | |||
1 | module org.kube.components | 1 | module org.kube.components |
2 | 2 | ||
3 | ColorPalette 1.0 ColorPalette.qml | ||
4 | FocusComposer 1.0 FocusComposer.qml | 3 | FocusComposer 1.0 FocusComposer.qml |
5 | SingleMailView 1.0 SingleMailView.qml | 4 | SingleMailView 1.0 SingleMailView.qml |
6 | FolderListView 1.0 FolderListView.qml | 5 | FolderListView 1.0 FolderListView.qml |