Skip to content

Commit

Permalink
fix: don't use reserved SYSTEM namespace 🤦 (#41)
Browse files Browse the repository at this point in the history
* fix: don't use reserved SYSTEM namespace 🤦

* remove duplicated files from ovos-gui
  • Loading branch information
JarbasAl authored Nov 5, 2024
1 parent 2a1b7ad commit ad2c86c
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 814 deletions.
20 changes: 10 additions & 10 deletions ovos_gui_plugin_shell_companion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def handle_system_display_homescreen(self, message):
def handle_device_settings(self, message):
""" Display device settings page. """
self.gui["state"] = "settings/settingspage"
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def handle_device_homescreen_settings(self, message):
"""
Expand All @@ -100,14 +100,14 @@ def handle_device_homescreen_settings(self, message):
self.gui["idleScreenList"] = {"screenBlob": screens}
self.gui["selectedScreen"] = self.homescreen_manager.get_active_homescreen()
self.gui["state"] = "settings/homescreen_settings"
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def handle_device_ssh_settings(self, message):
"""
display ssh settings page
"""
self.gui["state"] = "settings/ssh_settings"
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def handle_set_homescreen(self, message):
"""
Expand All @@ -125,31 +125,31 @@ def handle_device_developer_settings(self, message):

def handle_device_customize_settings(self, message):
self.gui['state'] = 'settings/customize_settings'
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def handle_device_create_theme(self, message):
self.gui['state'] = 'settings/customize_theme'
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def handle_device_display_factory(self, message):
self.gui['state'] = 'settings/factory_settings'
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def handle_device_display_settings(self, message):
LOG.debug(f"Display settings: {self.config}")
self.gui['state'] = 'settings/display_settings'
# wallpaper_rotation data is determined via Messagebus in Qt directly
self.gui['display_auto_dim'] = self.config.get("auto_dim", False)
self.gui['display_auto_nightmode'] = self.config.get("auto_nightmode", False)
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def handle_device_about_page(self, message):
# TODO: Move `system_information` generation to util method
uname_info = platform.uname()
system_information = {"display_list": self.about_page_data}
self.gui['state'] = 'settings/about_page'
self.gui['system_info'] = system_information
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def handle_display_auto_dim_config_set(self, message):
auto_dim = message.data.get("auto_dim", False)
Expand All @@ -171,13 +171,13 @@ def display_advanced_config_for_group(self, message=None):
self.gui["groupName"] = group_name
self.gui["groupConfigurationData"] = group_meta
self.gui['state'] = 'settings/configuration_generator_display'
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def display_advanced_config_groups(self, message=None):
groups_list = message.data.get("groups")
self.gui["groupList"] = groups_list
self.gui['state'] = 'settings/configuration_groups_display'
self.gui.show_page("SYSTEM_AdditionalSettings.qml", override_idle=True)
self.gui.show_page("AdditionalSettings", override_idle=True)

def build_initial_about_page_data(self):
uname_info = platform.uname()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Mycroft.Delegate {
}

onPageToLoadChanged: {
console.log(sessionData.state)
console.log("Shell companion: " + sessionData.state)
rootLoader.setSource(sessionData.state + ".qml")
}
}
123 changes: 0 additions & 123 deletions ovos_gui_plugin_shell_companion/gui/qt5/FeatureRequest.qml

This file was deleted.

35 changes: 0 additions & 35 deletions ovos_gui_plugin_shell_companion/gui/qt5/RequestHandler.qml

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions ovos_gui_plugin_shell_companion/gui/qt5/SYSTEM_HtmlFrame.qml

This file was deleted.

Loading

0 comments on commit ad2c86c

Please sign in to comment.