[Update] add Modal Window: When the configuration window is opened, cover the main window with a modal window containing a message.
This commit is contained in:
@@ -5,6 +5,7 @@ class ColorThemeManager():
|
||||
self.main = SimpleNamespace()
|
||||
self.config_window = SimpleNamespace()
|
||||
self.selectable_language_window = SimpleNamespace()
|
||||
self.modal_window = SimpleNamespace()
|
||||
|
||||
# old one. But leave it here for now.
|
||||
# self.PRIMARY_100_COLOR = "#c4eac1"
|
||||
@@ -207,6 +208,9 @@ class ColorThemeManager():
|
||||
self.selectable_language_window.LANGUAGE_BUTTON_BG_CLICKED_COLOR = self.DARK_888_COLOR
|
||||
|
||||
|
||||
# Modal Window (Main Window)
|
||||
self.modal_window.TEXT_COLOR = self.LIGHT_100_COLOR
|
||||
|
||||
|
||||
# Common
|
||||
self.config_window.BASIC_TEXT_COLOR = self.main.BASIC_TEXT_COLOR
|
||||
|
||||
@@ -6,6 +6,7 @@ class UiScalingManager():
|
||||
self.SCALING_FLOAT = max(scaling_float, 0.4)
|
||||
self.main = SimpleNamespace()
|
||||
self.config_window = SimpleNamespace()
|
||||
self.modal_window = SimpleNamespace()
|
||||
|
||||
self._calculatedUiSizes()
|
||||
|
||||
@@ -96,7 +97,7 @@ class UiScalingManager():
|
||||
self.main.MINIMIZE_SIDEBAR_BUTTON_ICON_SIZE_Y = self._calculateUiSize(26)
|
||||
|
||||
|
||||
|
||||
self.modal_window.TEXT_FONT_SIZE = self._calculateUiSize(20)
|
||||
|
||||
# Top bar common
|
||||
self.config_window.TOP_BAR__HEIGHT = self._calculateUiSize(40)
|
||||
|
||||
Reference in New Issue
Block a user