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 --- components/theme/contents/ui/Colors.qml | 36 ------------------------ components/theme/contents/ui/Icons.qml | 49 --------------------------------- components/theme/contents/ui/Units.qml | 32 --------------------- components/theme/contents/ui/main.qml | 23 ---------------- 4 files changed, 140 deletions(-) delete mode 100644 components/theme/contents/ui/Colors.qml delete mode 100644 components/theme/contents/ui/Icons.qml delete mode 100644 components/theme/contents/ui/Units.qml delete mode 100644 components/theme/contents/ui/main.qml (limited to 'components/theme/contents/ui') 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 @@ -/* - 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/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 @@ -/* - 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/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 @@ -/* - 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" - } -} - 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 @@ - -import QtQuick 2.7 -import QtQuick.Layouts 1.2 - -import org.kube.components.theme 1.0 as KubeTheme - -Item { - height: 200 - width: 200 - - RowLayout { - - anchors.fill: parent - - Rectangle { - - height: 50 - width: 50 - - color: KubeTheme.Colors.text - } - } -} -- cgit v1.2.3