From e78224a7d9ccf70aadde8c0bff1cab72e8cb7438 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 5 Apr 2017 10:07:13 +0200 Subject: Moved theme to framework --- framework/qml/Colors.qml | 36 +++++++++++++++++++++++++++++++++++ framework/qml/Icons.qml | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ framework/qml/Units.qml | 32 +++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 framework/qml/Colors.qml create mode 100644 framework/qml/Icons.qml create mode 100644 framework/qml/Units.qml (limited to 'framework/qml') 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 @@ +/* + Copyright (C) 2017 Michael Bohlender, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + +pragma Singleton + +import QtQuick 2.7 + +Item { + property string textColor: "#31363b" + property string disabledTextColor: "#7f8c8d" + property string backgroundColor: "#eff0f1" + property string viewBackgroundColor: "#fcfcfc" + property string highlightColor: "#3daee9" + property string highlightedTextColor: "#fcfcfc" + + + property string positveColor: "#27ae60" + property string warningColor: "#f67400" + property string negativeColor: "#ed1515" +} + 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 @@ +/* + Copyright (C) 2017 Michael Bohlender, + Copyright (C) 2017 Christian Mollekopf, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + +pragma Singleton + +import QtQuick 2.7 + +Item { + property string error: "error" + property string busy: "view-refresh" + property string noNetworkConnection: "network-disconnect" + property string connected: "dialog-ok" + property string success: "dialog-ok" + + property string markAsRead: "mail-mark-unread-new" + property string markImportant: "mail-mark-important" + property string undo: "edit-undo" + property string moveToTrash: "edit-delete" + property string edit: "document-edit" + property string replyToSender: "mail-reply-sender" + + property string menu: "application-menu" + property string user: "im-user" + property string search: "edit-find" + property string goBack: "go-previous" + property string goDown: "go-down" + property string goUp: "go-down" + + property string addNew: "list-add-new" + property string folder: "folder" + +} + 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 @@ +/* + Copyright (C) 2017 Michael Bohlender, + Copyright (C) 2017 Christian Mollekopf, + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +*/ + +pragma Singleton + +import QtQuick 2.7 + +Item { + property int gridUnit: fontMetrics.height + property int smallSpacing: gridUnit/4 + property int largeSpacing: gridUnit + property variant fontMetrics: TextMetrics { + text: "M" + } +} + -- cgit v1.2.3