diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-12 12:01:24 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-12 12:01:24 +0100 |
commit | 36b7e77ada602b4d01fd4bde38f59ddee552df5e (patch) | |
tree | b6d8534221aa20df32da48ed535b768aca9da4cd /components/mailviewer | |
parent | 16ca02979aaf5c852ca6f363eb8acf15e6bc54f1 (diff) | |
download | kube-36b7e77ada602b4d01fd4bde38f59ddee552df5e.tar.gz kube-36b7e77ada602b4d01fd4bde38f59ddee552df5e.zip |
make mailviewer textcontent follow the theme
Diffstat (limited to 'components/mailviewer')
-rw-r--r-- | components/mailviewer/qml/TextContent.qml | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/components/mailviewer/qml/TextContent.qml b/components/mailviewer/qml/TextContent.qml index 4f3b12bd..d3ae80f9 100644 --- a/components/mailviewer/qml/TextContent.qml +++ b/components/mailviewer/qml/TextContent.qml | |||
@@ -16,25 +16,28 @@ | |||
16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | import QtQuick 2.4 | 19 | import QtQuick 2.7 |
20 | import org.kde.kirigami 1.0 as Kirigami | ||
21 | |||
20 | Item { | 22 | Item { |
21 | id: textItem | 23 | id: textItem |
24 | |||
22 | property bool debug: true | 25 | property bool debug: true |
26 | |||
23 | width: partColumn.width | 27 | width: partColumn.width |
24 | height: textColumn.height | 28 | height: textColumn.height |
29 | |||
25 | Column { | 30 | Column { |
26 | id: textColumn | 31 | id: textColumn |
32 | |||
27 | anchors { | 33 | anchors { |
28 | top: parent.top | 34 | top: parent.top |
29 | left: parent.left | 35 | left: parent.left |
30 | } | 36 | } |
37 | |||
31 | width: parent.width | 38 | width: parent.width |
32 | spacing: 5 | 39 | spacing: 5 |
33 | Text { | 40 | |
34 | width: parent.width | ||
35 | visible: textItem.debug | ||
36 | text: model.type | ||
37 | } | ||
38 | TextEdit { | 41 | TextEdit { |
39 | width: parent.width | 42 | width: parent.width |
40 | 43 | ||
@@ -44,7 +47,15 @@ Item { | |||
44 | text: model.content | 47 | text: model.content |
45 | wrapMode: Text.WordWrap | 48 | wrapMode: Text.WordWrap |
46 | 49 | ||
47 | color: model.embeded ? "grey" : "black" | 50 | color: model.embeded ? Kirigami.Theme.diabledTextColor : Kirigami.Theme.textColor |
51 | } | ||
52 | |||
53 | //BEGIN debug | ||
54 | Text { | ||
55 | width: parent.width | ||
56 | visible: textItem.debug | ||
57 | text: model.type | ||
48 | } | 58 | } |
59 | //END debug | ||
49 | } | 60 | } |
50 | } | 61 | } |