From 580caf6f5c9b795f9c38b9c970efce12d006ce1d Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Fri, 17 Feb 2023 08:25:44 +0100 Subject: New UI design * Moved style definitions to its own file (themes/default) * Updated the desktop.kv to the new UI design * Removed planes * Adjusted port config --- tagit/actions/__init__.py | 5 ----- tagit/actions/action.kv | 15 ------------- tagit/actions/planes.kv | 15 ------------- tagit/actions/planes.py | 57 ----------------------------------------------- 4 files changed, 92 deletions(-) delete mode 100644 tagit/actions/planes.kv delete mode 100644 tagit/actions/planes.py (limited to 'tagit/actions') diff --git a/tagit/actions/__init__.py b/tagit/actions/__init__.py index b2ab6bd..bcd71c0 100644 --- a/tagit/actions/__init__.py +++ b/tagit/actions/__init__.py @@ -16,7 +16,6 @@ from . import filter from . import grouping from . import misc #from . import objects -from . import planes from . import search from . import session from . import tagging @@ -93,10 +92,6 @@ class ActionBuilder(BuilderBase): #'SetRank3': objects.SetRank3, #'SetRank4': objects.SetRank4, #'SetRank5': objects.SetRank5, - ## planes - 'ShowDashboard': planes.ShowDashboard, - 'ShowBrowsing': planes.ShowBrowsing, - 'ShowCodash': planes.ShowCodash, ## search 'Search': search.Search, 'ShowSelected': search.ShowSelected, diff --git a/tagit/actions/action.kv b/tagit/actions/action.kv index 5352964..807dd18 100644 --- a/tagit/actions/action.kv +++ b/tagit/actions/action.kv @@ -27,19 +27,4 @@ # to be disabled **after** show. show: [] - # decoration - canvas.before: - Color: - rgba: 17 / 255, 32 / 255, 148 / 255, self.selected_alpha - Rectangle: - pos: self.x, self.y + 1 - size: self.size - - canvas.after: - Color: - rgba: 17 / 255, 32 / 255, 148 / 255, self.selected_alpha - Line: - width: 2 - rectangle: self.x, self.y, self.width, self.height - ## EOF ## diff --git a/tagit/actions/planes.kv b/tagit/actions/planes.kv deleted file mode 100644 index 184f949..0000000 --- a/tagit/actions/planes.kv +++ /dev/null @@ -1,15 +0,0 @@ -#:import resource_find kivy.resources.resource_find - -: - source: resource_find('atlas://planes/dashboard') - tooltip: 'Switch to the Dashboard' - -: - source: resource_find('atlas://planes/browsing') - tooltip: 'Switch to the browsing plane' - -: - source: resource_find('atlas://planes/codash') - tooltip: 'Switch to the contextual dashboard' - -## EOF ## diff --git a/tagit/actions/planes.py b/tagit/actions/planes.py deleted file mode 100644 index 89f93bb..0000000 --- a/tagit/actions/planes.py +++ /dev/null @@ -1,57 +0,0 @@ -""" - -Part of the tagit module. -A copy of the license is provided with the project. -Author: Matthias Baumgartner, 2022 -""" -# standard imports -import os - -# kivy imports -from kivy.lang import Builder -import kivy.properties as kp - -# inner-module imports -from .action import Action - -# exports -__all__ = [] - - -## code ## - -# load kv -Builder.load_file(os.path.join(os.path.dirname(__file__), 'planes.kv')) - -# classes - -class ShowDashboard(Action): - """Switch to the dashboard.""" - text = kp.StringProperty('Dashboard') - - def apply(self): - planes = self.root.planes - if planes.current_slide != planes.dashboard: - planes.load_slide(planes.dashboard) - - -class ShowBrowsing(Action): - """Switch to the browsing plane.""" - text = kp.StringProperty('Browsing') - - def apply(self): - planes = self.root.planes - if planes.current_slide != planes.browsing: - planes.load_slide(planes.browsing) - - -class ShowCodash(Action): - """Switch to the contextual dashboard.""" - text = kp.StringProperty('Context') - - def apply(self): - planes = self.root.planes - if planes.current_slide != planes.codash: - planes.load_slide(planes.codash) - -## EOF ## -- cgit v1.2.3