From 7c46e5eb4b7e6a7c3a480d4336bb8dc67fb7f18c Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Sat, 7 Oct 2023 17:12:02 -0500 Subject: [PATCH] Fixed window settings persistence; improved color scheme --- src/__builtins__.py | 1 + src/utils/settings_manager/manager.py | 14 +++++++------- user_config/usr/share/app_name/stylesheet.css | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/__builtins__.py b/src/__builtins__.py index 60e9b5d..5878f30 100644 --- a/src/__builtins__.py +++ b/src/__builtins__.py @@ -17,6 +17,7 @@ class BuiltinsException(Exception): ... + # NOTE: Threads WILL NOT die with parent's destruction. def threaded_wrapper(fn): def wrapper(*args, **kwargs): diff --git a/src/utils/settings_manager/manager.py b/src/utils/settings_manager/manager.py index 2c94c08..093f252 100644 --- a/src/utils/settings_manager/manager.py +++ b/src/utils/settings_manager/manager.py @@ -106,7 +106,7 @@ class SettingsManager(StartCheckMixin, Singleton): self.settings: Settings = None self._main_window = None self._builder = None - self.PAINT_BG_COLOR = (0, 0, 0, 0.54) + self.PAINT_BG_COLOR = (0, 0, 0, 0.0) self._trace_debug = False self._debug = False @@ -161,12 +161,12 @@ class SettingsManager(StartCheckMixin, Singleton): method = getattr(target_class, method_name, lambda data: f"No valid key passed...\nkey={method_name}\nargs={data}") return method(data) if data else method() - def set_main_window_x(self, x = 0): self.settings.config.window_x = x - def set_main_window_y(self, y = 0): self.settings.config.window_y = y - def set_main_window_width(self, width = 800): self.settings.config.window_width = width - def set_main_window_height(self, height = 600): self.settings.config.window_height = height - def set_main_window_min_width(self, width = 720): self.settings.config.window_min_width = width - def set_main_window_min_height(self, height = 480): self.settings.config.window_min_height = height + def set_main_window_x(self, x = 0): self.settings.config.main_window_x = x + def set_main_window_y(self, y = 0): self.settings.config.main_window_y = y + def set_main_window_width(self, width = 800): self.settings.config.main_window_width = width + def set_main_window_height(self, height = 600): self.settings.config.main_window_height = height + def set_main_window_min_width(self, width = 720): self.settings.config.main_window_min_width = width + def set_main_window_min_height(self, height = 480): self.settings.config.main_window_min_height = height def set_trace_debug(self, trace_debug): self._trace_debug = trace_debug diff --git a/user_config/usr/share/app_name/stylesheet.css b/user_config/usr/share/app_name/stylesheet.css index f38e46f..4ab9b4d 100644 --- a/user_config/usr/share/app_name/stylesheet.css +++ b/user_config/usr/share/app_name/stylesheet.css @@ -1,6 +1,6 @@ -/* Set fm to have transparent window */ * { /* background: rgba(0, 0, 0, 0.14); */ + background: rgba(39, 43, 52, 0.24); color: rgba(255, 255, 255, 1); border: 2px solid rgba(0, 0, 0, 0.0); }