summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/domain/settings/CMakeLists.txt6
-rw-r--r--framework/qml/Colors.qml36
-rw-r--r--framework/qml/Icons.qml49
-rw-r--r--framework/qml/Units.qml32
-rw-r--r--framework/qmldir3
5 files changed, 126 insertions, 0 deletions
diff --git a/framework/domain/settings/CMakeLists.txt b/framework/domain/settings/CMakeLists.txt
new file mode 100644
index 00000000..dc9d01b1
--- /dev/null
+++ b/framework/domain/settings/CMakeLists.txt
@@ -0,0 +1,6 @@
1include_directories(${CMAKE_CURRENT_BINARY_DIR})
2cmake_policy(SET CMP0063 NEW)
3add_executable(sinkactiontest sinkactiontest.cpp)
4add_test(sinkactiontest sinkactiontest)
5qt5_use_modules(sinkactiontest Core Test Concurrent)
6target_link_libraries(sinkactiontest sink actionplugin KF5::Mime mailplugin)
diff --git a/framework/qml/Colors.qml b/framework/qml/Colors.qml
new file mode 100644
index 00000000..9d1737d1
--- /dev/null
+++ b/framework/qml/Colors.qml
@@ -0,0 +1,36 @@
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/framework/qml/Icons.qml b/framework/qml/Icons.qml
new file mode 100644
index 00000000..0b161635
--- /dev/null
+++ b/framework/qml/Icons.qml
@@ -0,0 +1,49 @@
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/framework/qml/Units.qml b/framework/qml/Units.qml
new file mode 100644
index 00000000..96216f82
--- /dev/null
+++ b/framework/qml/Units.qml
@@ -0,0 +1,32 @@
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/framework/qmldir b/framework/qmldir
index f258f5cc..ad148543 100644
--- a/framework/qmldir
+++ b/framework/qmldir
@@ -15,6 +15,9 @@ Notification 1.0 Notification.qml
15Icon 1.0 Icon.qml 15Icon 1.0 Icon.qml
16Button 1.0 Button.qml 16Button 1.0 Button.qml
17PositiveButton 1.0 PositiveButton.qml 17PositiveButton 1.0 PositiveButton.qml
18singleton Colors 1.0 Colors.qml
19singleton Icons 1.0 Icons.qml
20singleton Units 1.0 Units.qml
18 21
19plugin mailplugin 22plugin mailplugin
20plugin actionplugin 23plugin actionplugin