diff --git a/Data/defaults.py b/Data/defaults.py
index eeef3c1..ec83a63 100644
--- a/Data/defaults.py
+++ b/Data/defaults.py
@@ -14,6 +14,7 @@ class Key:
focusing: str = "Focusing"
hot: str = "Hot"
separator: str = "Separator"
+ tooltip: str = "Tooltip"
effectType: str = "Effect Type"
cornerType: str = "Corner Type"
enableDropShadow: str = "Enable Drop Shadow"
@@ -27,6 +28,9 @@ class Key:
enableImmersiveStyle: str = "Enable Immersive Style"
enableCustomRendering: str = "Enable Custom Rendering"
enableFluentAnimation: str = "Enable Fluent Animation"
+ noModernAppBackgroundColor: str = "No Modern App Background Color"
+ colorTreatAsTransparent: str = "Color Treat As Transparent"
+ colorTreatAsTransparentThreshold: str = "Color Treat As Transparent Threshold"
fadeOutTime: str = "Fade Out Time"
popInTime: str = "Pop In Time"
fadeInTime: str = "Fade In Time"
@@ -71,6 +75,9 @@ class Menu:
enableImmersiveStyle: int = rawDefaults[Key.menu][Key.enableImmersiveStyle]
enableCustomRendering: int = rawDefaults[Key.menu][Key.enableCustomRendering]
enableFluentAnimation: int = rawDefaults[Key.menu][Key.enableFluentAnimation]
+ noModernAppBackgroundColor: int = rawDefaults[Key.menu][Key.noModernAppBackgroundColor]
+ colorTreatAsTransparent: str = rawDefaults[Key.menu][Key.colorTreatAsTransparent]
+ colorTreatAsTransparentThreshold: int = rawDefaults[Key.menu][Key.colorTreatAsTransparentThreshold]
effectType: int = rawDefaults[Key.menu][Key.effectType]
cornerType: int = rawDefaults[Key.menu][Key.cornerType]
enableDropShadow: int = rawDefaults[Key.menu][Key.enableDropShadow]
@@ -119,3 +126,15 @@ class Separator:
lightModeColor: str = rawDefaults[Key.menu][Key.separator][Key.lightModeColor]
enableThemeColorization: int = rawDefaults[Key.menu][Key.separator][Key.enableThemeColorization]
disabled: int = rawDefaults[Key.menu][Key.separator][Key.disabled]
+
+ class Tooltip:
+ effectType: int = rawDefaults[Key.tooltip][Key.effectType]
+ cornerType: int = rawDefaults[Key.tooltip][Key.cornerType]
+ enableDropShadow: int = rawDefaults[Key.tooltip][Key.enableDropShadow]
+ noBorderColor: int = rawDefaults[Key.tooltip][Key.noBorderColor]
+ enableThemeColorization: int = rawDefaults[Key.tooltip][Key.enableThemeColorization]
+ darkModeBorderColor: str = rawDefaults[Key.tooltip][Key.darkModeBorderColor]
+ lightModeBorderColor: str = rawDefaults[Key.tooltip][Key.lightModeBorderColor]
+ darkModeGradientColor: str = rawDefaults[Key.tooltip][Key.darkModeGradientColor]
+ lightModeGradientColor: str = rawDefaults[Key.tooltip][Key.lightModeGradientColor]
+ disabled: int = rawDefaults[Key.tooltip][Key.disabled]
diff --git a/Data/enums.py b/Data/enums.py
index 89edaf4..4e6b1e5 100644
--- a/Data/enums.py
+++ b/Data/enums.py
@@ -41,6 +41,10 @@ class EnableFluentAnimation(IntEnum):
No = 0
Yes = 1
+ class NoModernAppBackgroundColor(IntEnum):
+ No = 0
+ Yes = 1
+
class EnableCustomRendering(IntEnum):
No = 0
Yes = 1
diff --git a/Data/paths.py b/Data/paths.py
index 23c87a3..07edfb9 100644
--- a/Data/paths.py
+++ b/Data/paths.py
@@ -18,6 +18,7 @@ class RegPaths:
DisabledHot: str = r"DisabledHot\\"
Focusing: str = r"Focusing\\"
Separator: str = r"Separator\\"
+ Tooltip: str = r"Tooltip\\"
class RegKeys:
BaseKey: int = HKEY_CURRENT_USER
@@ -29,6 +30,7 @@ class RegKeys:
DisabledHot: str = "DisabledHot"
Focusing: str = "Focusing"
Separator: str = "Separator"
+ Tooltip: str = "Tooltip"
EffectType: str = "EffectType"
EnableDropShadow: str = "EnableDropShadow"
DarkModeBorderColor: str = "DarkMode_BorderColor"
@@ -42,6 +44,9 @@ class RegKeys:
EnableImmersiveStyle: str = "EnableImmersiveStyle"
EnableCustomRendering: str = "EnableCustomRendering"
EnableFluentAnimation: str = "EnableFluentAnimation"
+ NoModernAppBackgroundColor: str = "NoModernAppBackgroundColor"
+ ColorTreatAsTransparent: str = "ColorTreatAsTransparent"
+ ColorTreatAsTransparentThreshold: str = "ColorTreatAsTransparentThreshold"
FadeOutTime: str = "FadeOutTime"
PopInTime: str = "PopInTime"
FadeInTime: str = "FadeInTime"
diff --git a/Data/stylesheet.py b/Data/stylesheet.py
index 8ba055f..2aed248 100644
--- a/Data/stylesheet.py
+++ b/Data/stylesheet.py
@@ -18,14 +18,9 @@ def frame():
return "QWidget#scrollAreaWidgetContents{background-color:white;}"
@staticmethod
- def buttonColorStylesheet(rgba: tuple | str) -> str:
- if type(rgba) == str:
- return "QPushButton{background-color:" + rgba + ";width:20px}"
- elif type(rgba) == tuple:
- colorString: str = f"rgb({rgba[0]},{rgba[1]},{rgba[2]})"
- return "QPushButton{background-color:" + colorString + ";width:20px}"
- else:
- return ""
+ def buttonColorStylesheet(rgba: tuple) -> str:
+ colorString: str = f"rgb({rgba[0]},{rgba[1]},{rgba[2]})"
+ return "QPushButton{background-color:" + colorString + ";width:20px}"
@staticmethod
def buttoResetStyleSheet() -> str:
diff --git a/Data/user.py b/Data/user.py
index 8f06bae..8c628e1 100644
--- a/Data/user.py
+++ b/Data/user.py
@@ -3,9 +3,17 @@
from typing import TYPE_CHECKING
import json
+# Relative Imports
+from Registry.reg_edit import EditRegistry
+from Data.defaults import Defaults
+from Dialogs.color_picker import ColorPicker
+
if TYPE_CHECKING:
from main import Main
+# Dump Residue or Previously Present Parameters
+with open("user_Settings.json", "w") as json_file:
+ json.dump(EditRegistry.fetchAllValues(), json_file)
rawDefaults: dict = dict(json.load(open("user_settings.json", "r")))
@@ -23,6 +31,7 @@ def joinVars(*vars: str) -> str:
focusing: str = "Focusing"
hot: str = "Hot"
separator: str = "Separator"
+ tooltip: str = "Tooltip"
effectType: str = "effectType"
cornerType: str = "cornerType"
enableDropShadow: str = "enableDropShadow"
@@ -36,6 +45,9 @@ def joinVars(*vars: str) -> str:
enableImmersiveStyle: str = "enableImmersiveStyle"
enableCustomRendering: str = "enableCustomRendering"
enableFluentAnimation: str = "enableFluentAnimation"
+ noModernAppBackgroundColor: str = "noModernAppBackgroundColor"
+ colorTreatAsTransparent: str = "colorTreatAsTransparent"
+ colorTreatAsTransparentThreshold: str = "colorTreatAsTransparentThreshold"
fadeOutTime: str = "fadeOutTime"
popInTime: str = "popInTime"
fadeInTime: str = "fadeInTime"
@@ -59,6 +71,7 @@ class Key:
focusing: str = "Focusing"
hot: str = "Hot"
separator: str = "Separator"
+ tooltip: str = "Tooltip"
effectType: str = "Effect Type"
cornerType: str = "Corner Type"
enableDropShadow: str = "Enable Drop Shadow"
@@ -72,6 +85,9 @@ class Key:
enableImmersiveStyle: str = "Enable Immersive Style"
enableCustomRendering: str = "Enable Custom Rendering"
enableFluentAnimation: str = "Enable Fluent Animation"
+ noModernAppBackgroundColor: str = "No Modern App Background Color"
+ colorTreatAsTransparent: str = "Color Treat As Transparent"
+ colorTreatAsTransparentThreshold: str = "Color Treat As Transparent Threshold"
fadeOutTime: str = "Fade Out Time"
popInTime: str = "Pop In Time"
fadeInTime: str = "Fade In Time"
@@ -101,9 +117,17 @@ def updateUI(window: Main):
window.noBorderColor1.setCurrentIndex(Saved.Global.noBorderColor)
window.enableThemeColorization1.setCurrentIndex(Saved.Global.enableThemeColorization)
window.darkModeBorderColor1.setText(Saved.Global.darkModeBorderColor)
+ if Saved.Global.darkModeBorderColor != Defaults.Global.darkModeBorderColor:
+ ColorPicker.changeButtonColor(Saved.Global.darkModeBorderColor, window.dark_mode_border_color_picker1)
window.lightModeBorderColor1.setText(Saved.Global.lightModeBorderColor)
+ if Saved.Global.lightModeBorderColor != Defaults.Global.lightModeBorderColor:
+ ColorPicker.changeButtonColor(Saved.Global.lightModeBorderColor, window.light_mode_border_color_picker1)
window.darkModeGradientColor1.setText(Saved.Global.darkModeGradientColor)
+ if Saved.Global.darkModeGradientColor != Defaults.Global.darkModeGradientColor:
+ ColorPicker.changeButtonColor(Saved.Global.darkModeGradientColor, window.dark_mode_gradient_color_picker1)
window.lightModeGradientColor1.setText(Saved.Global.lightModeGradientColor)
+ if Saved.Global.lightModeGradientColor != Defaults.Global.lightModeGradientColor:
+ ColorPicker.changeButtonColor(Saved.Global.lightModeGradientColor, window.light_mode_gradient_color_picker1)
window.disabledEffect1.setCurrentIndex(Saved.Global.disabled)
# DropDown
@@ -113,9 +137,17 @@ def updateUI(window: Main):
window.noBorderColor2.setCurrentIndex(Saved.DropDown.noBorderColor)
window.enableThemeColorization2.setCurrentIndex(Saved.DropDown.enableThemeColorization)
window.darkModeBorderColor2.setText(Saved.DropDown.darkModeBorderColor)
+ if Saved.DropDown.darkModeBorderColor != Defaults.DropDown.darkModeBorderColor:
+ ColorPicker.changeButtonColor(Saved.DropDown.darkModeBorderColor, window.dark_mode_border_color_picker2)
window.lightModeBorderColor2.setText(Saved.DropDown.lightModeBorderColor)
+ if Saved.DropDown.lightModeBorderColor != Defaults.DropDown.lightModeBorderColor:
+ ColorPicker.changeButtonColor(Saved.DropDown.lightModeBorderColor, window.light_mode_border_color_picker2)
window.darkModeGradientColor2.setText(Saved.DropDown.darkModeGradientColor)
+ if Saved.DropDown.darkModeGradientColor != Defaults.DropDown.darkModeGradientColor:
+ ColorPicker.changeButtonColor(Saved.DropDown.darkModeGradientColor, window.dark_mode_gradient_color_picker2)
window.lightModeGradientColor2.setText(Saved.DropDown.lightModeGradientColor)
+ if Saved.DropDown.lightModeGradientColor != Defaults.DropDown.lightModeGradientColor:
+ ColorPicker.changeButtonColor(Saved.DropDown.lightModeGradientColor, window.light_mode_gradient_color_picker2)
window.disabledEffect2.setCurrentIndex(Saved.DropDown.disabled)
# Menu-General
@@ -123,15 +155,28 @@ def updateUI(window: Main):
window.enableImmersiveStyle.setCurrentIndex(Saved.Menu.enableImmersiveStyle)
window.enableCustomRendering.setCurrentIndex(Saved.Menu.enableCustomRendering)
window.enableFluentAnimation.setCurrentIndex(Saved.Menu.enableFluentAnimation)
+ window.noModernAppBackgroundColor.setCurrentIndex(Saved.Menu.noModernAppBackgroundColor)
+ window.colorTreatAsTransparent.setText(Saved.Menu.colorTreatAsTransparent)
+ if Saved.Menu.colorTreatAsTransparent != Defaults.Menu.colorTreatAsTransparent:
+ ColorPicker.changeButtonColor(Saved.Menu.colorTreatAsTransparent, window.color_treat_as_transparent_color_picker)
+ window.colorTreatAsTransparentThreshold.setValue(Saved.Menu.colorTreatAsTransparentThreshold)
window.effectType3.setCurrentIndex(Saved.Menu.effectType)
window.cornerType3.setCurrentIndex(Saved.Menu.cornerType)
window.enableDropShadow3.setCurrentIndex(Saved.Menu.enableDropShadow)
window.noBorderColor3.setCurrentIndex(Saved.Menu.noBorderColor)
window.enableThemeColorization3_1.setCurrentIndex(Saved.Menu.enableThemeColorization)
window.darkModeBorderColor3.setText(Saved.Menu.darkModeBorderColor)
+ if Saved.Menu.darkModeBorderColor != Defaults.Menu.darkModeBorderColor:
+ ColorPicker.changeButtonColor(Saved.Menu.darkModeBorderColor, window.dark_mode_border_color_picker3)
window.lightModeBorderColor3.setText(Saved.Menu.lightModeBorderColor)
+ if Saved.Menu.lightModeBorderColor != Defaults.Menu.lightModeBorderColor:
+ ColorPicker.changeButtonColor(Saved.Menu.lightModeBorderColor, window.light_mode_border_color_picker3)
window.darkModeGradientColor3.setText(Saved.Menu.darkModeGradientColor)
+ if Saved.Menu.darkModeGradientColor != Defaults.Menu.darkModeGradientColor:
+ ColorPicker.changeButtonColor(Saved.Menu.darkModeGradientColor, window.dark_mode_gradient_color_picker3)
window.lightModeGradientColor3.setText(Saved.Menu.lightModeGradientColor)
+ if Saved.Menu.lightModeGradientColor != Defaults.Menu.lightModeGradientColor:
+ ColorPicker.changeButtonColor(Saved.Menu.lightModeGradientColor, window.light_mode_gradient_color_picker3)
window.disabledEffect3_1.setCurrentIndex(Saved.Menu.disabled)
# Menu-Animation
@@ -144,14 +189,22 @@ def updateUI(window: Main):
# Menu-Hot
window.darkModeColor1_1.setText(Saved.Menu.Hot.darkModeColor)
+ if Saved.Menu.Hot.darkModeColor != Defaults.Menu.Hot.darkModeColor:
+ ColorPicker.changeButtonColor(Saved.Menu.Hot.darkModeColor, window.dark_mode_color_picker1_1)
window.lightModeColor1_1.setText(Saved.Menu.Hot.lightModeColor)
+ if Saved.Menu.Hot.lightModeColor != Defaults.Menu.Hot.lightModeColor:
+ ColorPicker.changeButtonColor(Saved.Menu.Hot.lightModeColor, window.light_mode_color_picker1_1)
window.disabledEffect3_2.setCurrentIndex(Saved.Menu.Hot.disabled)
window.cornerRadius1_1.setValue(Saved.Menu.Hot.cornerRadius)
window.enableThemeColorization3_2.setCurrentIndex(Saved.Menu.Hot.enableThemeColorization)
# Menu-Disabled Hot
window.darkModeColor1_2.setText(Saved.Menu.DisabledHot.darkModeColor)
+ if Saved.Menu.DisabledHot.darkModeColor != Defaults.Menu.DisabledHot.darkModeColor:
+ ColorPicker.changeButtonColor(Saved.Menu.DisabledHot.darkModeColor, window.dark_mode_color_picker1_2)
window.lightModeColor1_2.setText(Saved.Menu.DisabledHot.lightModeColor)
+ if Saved.Menu.DisabledHot.lightModeColor != Defaults.Menu.DisabledHot.lightModeColor:
+ ColorPicker.changeButtonColor(Saved.Menu.DisabledHot.lightModeColor, window.light_mode_color_picker1_2)
window.disabledEffect3_3.setCurrentIndex(Saved.Menu.DisabledHot.disabled)
window.cornerRadius1_2.setValue(Saved.Menu.DisabledHot.cornerRadius)
window.enableThemeColorization3_3.setCurrentIndex(Saved.Menu.DisabledHot.enableThemeColorization)
@@ -159,7 +212,11 @@ def updateUI(window: Main):
# Menu-Focusing
window.width1_1.setValue(Saved.Menu.Focusing.width)
window.darkModeColor1_3.setText(Saved.Menu.Focusing.darkModeColor)
+ if Saved.Menu.Focusing.darkModeColor != Defaults.Menu.Focusing.darkModeColor:
+ ColorPicker.changeButtonColor(Saved.Menu.Focusing.darkModeColor, window.dark_mode_color_picker1_3)
window.lightModeColor1_3.setText(Saved.Menu.Focusing.lightModeColor)
+ if Saved.Menu.Focusing.lightModeColor != Defaults.Menu.Focusing.lightModeColor:
+ ColorPicker.changeButtonColor(Saved.Menu.Focusing.lightModeColor, window.light_mode_color_picker1_3)
window.disabledEffect3_4.setCurrentIndex(Saved.Menu.Focusing.disabled)
window.cornerRadius1_3.setValue(Saved.Menu.Focusing.cornerRadius)
window.enableThemeColorization3_4.setCurrentIndex(Saved.Menu.Focusing.enableThemeColorization)
@@ -167,11 +224,35 @@ def updateUI(window: Main):
# Menu-Separator
window.width1_2.setValue(Saved.Menu.Separator.width)
window.darkModeColor1_4.setText(Saved.Menu.Separator.darkModeColor)
+ if Saved.Menu.Separator.darkModeColor != Defaults.Menu.Separator.darkModeColor:
+ ColorPicker.changeButtonColor(Saved.Menu.Separator.darkModeColor, window.dark_mode_color_picker1_4)
window.lightModeColor1_4.setText(Saved.Menu.Separator.lightModeColor)
+ if Saved.Menu.Separator.lightModeColor != Defaults.Menu.Separator.lightModeColor:
+ ColorPicker.changeButtonColor(Saved.Menu.Separator.lightModeColor, window.light_mode_color_picker1_4)
window.disabledEffect3_5.setCurrentIndex(Saved.Menu.Separator.disabled)
window.cornerRadius1_4.setValue(Saved.Menu.Separator.cornerRadius)
window.enableThemeColorization3_5.setCurrentIndex(Saved.Menu.Separator.enableThemeColorization)
+ # Tooltip
+ window.effectType4.setCurrentIndex(Saved.Tooltip.effectType)
+ window.cornerType4.setCurrentIndex(Saved.Tooltip.cornerType)
+ window.enableDropShadow4.setCurrentIndex(Saved.Tooltip.enableDropShadow)
+ window.noBorderColor4.setCurrentIndex(Saved.Tooltip.noBorderColor)
+ window.enableThemeColorization4.setCurrentIndex(Saved.Tooltip.enableThemeColorization)
+ window.darkModeBorderColor4.setText(Saved.Tooltip.darkModeBorderColor)
+ if Saved.Tooltip.darkModeBorderColor != Defaults.Tooltip.darkModeBorderColor:
+ ColorPicker.changeButtonColor(Saved.Tooltip.darkModeBorderColor, window.dark_mode_border_color_picker4)
+ window.lightModeBorderColor4.setText(Saved.Tooltip.lightModeBorderColor)
+ if Saved.Tooltip.lightModeBorderColor != Defaults.Tooltip.lightModeBorderColor:
+ ColorPicker.changeButtonColor(Saved.Tooltip.lightModeBorderColor, window.light_mode_border_color_picker4)
+ window.darkModeGradientColor4.setText(Saved.Tooltip.darkModeGradientColor)
+ if Saved.Tooltip.darkModeGradientColor != Defaults.Tooltip.darkModeGradientColor:
+ ColorPicker.changeButtonColor(Saved.Tooltip.darkModeGradientColor, window.dark_mode_gradient_color_picker4)
+ window.lightModeGradientColor4.setText(Saved.Tooltip.lightModeGradientColor)
+ if Saved.Tooltip.lightModeGradientColor != Defaults.Tooltip.lightModeGradientColor:
+ ColorPicker.changeButtonColor(Saved.Tooltip.lightModeGradientColor, window.light_mode_gradient_color_picker4)
+ window.disabledEffect4.setCurrentIndex(Saved.Tooltip.disabled)
+
class Global:
effectType: int = rawDefaults[Key._global][Key.effectType]
cornerType: int = rawDefaults[Key._global][Key.cornerType]
@@ -227,6 +308,9 @@ class Menu:
enableImmersiveStyle: int = rawDefaults[Key.menu][Key.enableImmersiveStyle]
enableCustomRendering: int = rawDefaults[Key.menu][Key.enableCustomRendering]
enableFluentAnimation: int = rawDefaults[Key.menu][Key.enableFluentAnimation]
+ noModernAppBackgroundColor: int = rawDefaults[Key.menu][Key.noModernAppBackgroundColor]
+ colorTreatAsTransparent: str = rawDefaults[Key.menu][Key.colorTreatAsTransparent]
+ colorTreatAsTransparentThreshold: int = rawDefaults[Key.menu][Key.colorTreatAsTransparentThreshold]
effectType: int = rawDefaults[Key.menu][Key.effectType]
cornerType: int = rawDefaults[Key.menu][Key.cornerType]
enableDropShadow: int = rawDefaults[Key.menu][Key.enableDropShadow]
@@ -244,6 +328,9 @@ def updateDict():
rawDefaults[Key.menu][Key.enableImmersiveStyle] = Saved.Menu.enableImmersiveStyle
rawDefaults[Key.menu][Key.enableCustomRendering] = Saved.Menu.enableCustomRendering
rawDefaults[Key.menu][Key.enableFluentAnimation] = Saved.Menu.enableFluentAnimation
+ rawDefaults[Key.menu][Key.noModernAppBackgroundColor] = Saved.Menu.noModernAppBackgroundColor
+ rawDefaults[Key.menu][Key.colorTreatAsTransparent] = Saved.Menu.colorTreatAsTransparent
+ rawDefaults[Key.menu][Key.colorTreatAsTransparentThreshold] = Saved.Menu.colorTreatAsTransparentThreshold
rawDefaults[Key.menu][Key.effectType] = Saved.Menu.effectType
rawDefaults[Key.menu][Key.cornerType] = Saved.Menu.cornerType
rawDefaults[Key.menu][Key.enableDropShadow] = Saved.Menu.enableDropShadow
@@ -335,3 +422,28 @@ def updateDict():
rawDefaults[Key.menu][Key.separator][Key.lightModeColor] = Saved.Menu.Separator.lightModeColor
rawDefaults[Key.menu][Key.separator][Key.enableThemeColorization] = Saved.Menu.Separator.enableThemeColorization
rawDefaults[Key.menu][Key.separator][Key.disabled] = Saved.Menu.Separator.disabled
+
+ class Tooltip:
+ effectType: int = rawDefaults[Key.tooltip][Key.effectType]
+ cornerType: int = rawDefaults[Key.tooltip][Key.cornerType]
+ enableDropShadow: int = rawDefaults[Key.tooltip][Key.enableDropShadow]
+ noBorderColor: int = rawDefaults[Key.tooltip][Key.noBorderColor]
+ enableThemeColorization: int = rawDefaults[Key.tooltip][Key.enableThemeColorization]
+ darkModeBorderColor: str = rawDefaults[Key.tooltip][Key.darkModeBorderColor]
+ lightModeBorderColor: str = rawDefaults[Key.tooltip][Key.lightModeBorderColor]
+ darkModeGradientColor: str = rawDefaults[Key.tooltip][Key.darkModeGradientColor]
+ lightModeGradientColor: str = rawDefaults[Key.tooltip][Key.lightModeGradientColor]
+ disabled: int = rawDefaults[Key.tooltip][Key.disabled]
+
+ @staticmethod
+ def updateDict():
+ rawDefaults[Key.tooltip][Key.effectType] = Saved.Tooltip.effectType
+ rawDefaults[Key.tooltip][Key.cornerType] = Saved.Tooltip.cornerType
+ rawDefaults[Key.tooltip][Key.enableDropShadow] = Saved.Tooltip.enableDropShadow
+ rawDefaults[Key.tooltip][Key.noBorderColor] = Saved.Tooltip.noBorderColor
+ rawDefaults[Key.tooltip][Key.enableThemeColorization] = Saved.Tooltip.enableThemeColorization
+ rawDefaults[Key.tooltip][Key.darkModeBorderColor] = Saved.Tooltip.darkModeBorderColor
+ rawDefaults[Key.tooltip][Key.lightModeBorderColor] = Saved.Tooltip.lightModeBorderColor
+ rawDefaults[Key.tooltip][Key.darkModeGradientColor] = Saved.Tooltip.darkModeGradientColor
+ rawDefaults[Key.tooltip][Key.lightModeGradientColor] = Saved.Tooltip.lightModeGradientColor
+ rawDefaults[Key.tooltip][Key.disabled] = Saved.Tooltip.disabled
diff --git a/Dialogs/color_picker.py b/Dialogs/color_picker.py
index 38b2968..2fc20b6 100644
--- a/Dialogs/color_picker.py
+++ b/Dialogs/color_picker.py
@@ -9,14 +9,18 @@
class ColorPicker:
@staticmethod
- def changeButtonColor(rgba: tuple[int], pushButton: QPushButton) -> None:
+ def changeButtonColor(rgba: tuple[int] | str, pushButton: QPushButton) -> None:
"""
Method to:
- Change the color of the QPushButton provided
- Remove any icon from the QPushButton
"""
pushButton.setIcon(QIcon(""))
- pushButton.setStyleSheet(StyleSheet.buttonColorStylesheet(rgba))
+ if type(rgba) == str:
+ rgba = tuple(ColorPicker.aarrggbb_to_rgba(rgba))
+ pushButton.setStyleSheet(StyleSheet.buttonColorStylesheet(rgba))
+ elif type(rgba) == tuple:
+ pushButton.setStyleSheet(StyleSheet.buttonColorStylesheet(rgba))
@staticmethod
def rgba_to_aarrggbb(rgba: tuple[int]) -> str:
@@ -35,6 +39,15 @@ def rgba_to_aarrggbb(rgba: tuple[int]) -> str:
return aarrggbb.upper()
+ @staticmethod
+ def aarrggbb_to_rgba(color: str) -> list[int]:
+ return [
+ int(color[2:4], 16),
+ int(color[4:6], 16),
+ int(color[6:8], 16),
+ int(color[:2], 16),
+ ]
+
@staticmethod
def connectColorDialog(lineEdit: QLineEdit, pushButton: QPushButton) -> None:
def connectWidgets() -> None:
@@ -45,7 +58,14 @@ def connectWidgets() -> None:
"""
colorPicker: QColorDialog = QColorDialog()
colorPicker.setWindowIcon(QIcon(Path.IconPaths.ColorPicker))
- color: QColor = colorPicker.getColor(options=QColorDialog.ColorDialogOption.ShowAlphaChannel)
+ aarrggbb: str = lineEdit.text()
+ if aarrggbb:
+ color: QColor = colorPicker.getColor(
+ initial=QColor(*ColorPicker.aarrggbb_to_rgba(aarrggbb)),
+ options=QColorDialog.ColorDialogOption.ShowAlphaChannel,
+ )
+ else:
+ color: QColor = colorPicker.getColor(options=QColorDialog.ColorDialogOption.ShowAlphaChannel)
if color.isValid():
lineEdit.setText(ColorPicker.rgba_to_aarrggbb(tuple(color.getRgb())))
ColorPicker.changeButtonColor(
diff --git a/Registry/edit_settings.py b/Registry/edit_settings.py
index bbef508..3501c77 100644
--- a/Registry/edit_settings.py
+++ b/Registry/edit_settings.py
@@ -62,9 +62,9 @@ def changeDarkModeColor(
):
"""
Method to:
- Change the color of various menu-items.
+ Change the color of various menu-items in dark-mode.
- keyPath: path of the Key which needs to be changed
- - color: color in the form of AARRGGBB
+ - color: 32-bit color in the form of AARRGGBB
"""
EditRegistry.setValue(
keyPath=keyPath,
@@ -79,7 +79,7 @@ def changeLightModeColor(
):
"""
Method to:
- Change the color of various menu-items.
+ Change the color of various menu-items in light-mode.
- keyPath: path of the Key which needs to be changed
- color: 32-bit color in the form of AARRGGBB
"""
@@ -96,7 +96,7 @@ def changeDarkModeBorderColor(
):
"""
Method to:
- Change the border color of flyouts.
+ Change the border color of flyouts in dark-mode.
- keyPath: path of the Key which needs to be changed
- color: 32-bit color in the form of AARRGGBB
"""
@@ -113,7 +113,7 @@ def changeLightModeBorderColor(
):
"""
Method to:
- Change the border color of flyouts.
+ Change the border color of flyouts in light-mode.
- keyPath: path of the Key which needs to be changed
- color: 32-bit color in the form of AARRGGBB
"""
@@ -130,7 +130,7 @@ def changeDarkModeGradientColor(
):
"""
Method to:
- Change the gradient color of various flyout elements in dark mode.
+ Change the gradient color of various flyout elements in dark-mode.
- keyPath: path of the Key which needs to be changed
- color: 32-bit color in the form of AARRGGBB
"""
@@ -147,7 +147,7 @@ def changeLightModeGradientColor(
):
"""
Method to:
- Change the gradient color of various flyout elements in light mode.
+ Change the gradient color of various flyout elements in light-mode.
- keyPath: path of the Key which needs to be changed
- color: 32-bit color in the form of AARRGGBB
"""
@@ -198,7 +198,7 @@ def changeEnableFluentAnimation(
):
"""
Method to:
- Change whether to enable modern Fluent pop-up animation for menus.
+ Change whether to enable modern and fluent pop-up animation for menus.
- keyPath: path of the Key which needs to be changed
- isEnabled: mention whether to enable this property or not
"""
@@ -208,6 +208,57 @@ def changeEnableFluentAnimation(
value=isEnabled,
)
+ @staticmethod
+ def changeNoModernAppBackgroundColor(
+ keyPath: Path.RegPaths | str,
+ isDisabled: int,
+ ):
+ """
+ Method to:
+ Change whether to remove the background color of UWP icons.
+ - keyPath: path of the Key which needs to be changed
+ - isDisabled: mention whether to disable this property or not
+ """
+ EditRegistry.setValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.NoModernAppBackgroundColor,
+ value=isDisabled,
+ )
+
+ @staticmethod
+ def changeColorTreatAsTransparent(
+ keyPath: Path.RegPaths | str,
+ color: str,
+ ):
+ """
+ Method to:
+ Removes specific background colors (0xAARRGGBB) of certain icons when this item exists.
+ - keyPath: path of the Key which needs to be changed
+ - color: color to be removed
+ """
+ EditRegistry.setValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.ColorTreatAsTransparent,
+ value=int(color, 16),
+ )
+
+ @staticmethod
+ def changeColorTreatAsTransparentThreshold(
+ keyPath: Path.RegPaths | str,
+ threshold: int,
+ ):
+ """
+ Method to The color difference threshold between the pixel and the background color to be removed.
+ When the color difference between pixels is less than this color difference threshold, the pixel will be made transparent.
+ - keyPath: path of thekey which needs to be changed
+ - threshold: color threshold
+ """
+ EditRegistry.setValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.ColorTreatAsTransparentThreshold,
+ value=threshold,
+ )
+
@staticmethod
def changeEnableCustomRendering(
keyPath: Path.RegPaths | str,
@@ -394,7 +445,7 @@ def changeStartRatio(
"""
EditRegistry.setValue(
keyPath=keyPath,
- valueName=Path.RegKeys.PopInTime,
+ valueName=Path.RegKeys.StartRatio,
value=percent,
)
@@ -407,7 +458,7 @@ def changeWidth(
Method to:
Change the width of various menu-items
- keyPath: path of the key which needs to be changed
- - width: percent of the start animation
+ - width: width of the menu items
"""
EditRegistry.setValue(
keyPath=keyPath,
diff --git a/Registry/reg_edit.py b/Registry/reg_edit.py
index 9b603fc..878c76b 100644
--- a/Registry/reg_edit.py
+++ b/Registry/reg_edit.py
@@ -1,9 +1,10 @@
# Library Imports
-from winreg import HKEYType, REG_DWORD, KEY_SET_VALUE
+from winreg import HKEYType, REG_DWORD, KEY_SET_VALUE, KEY_READ, QueryValueEx
from winreg import OpenKeyEx, CreateKeyEx, CloseKey, SetValueEx, DeleteKeyEx, DeleteValue
# Relative Imports
from Data.paths import Path
+from Data.defaults import Defaults
class EditRegistry:
@@ -20,6 +21,7 @@ def createAllKeys():
- DisabledHot at "HKEY_CURRENT_USER\\Software\\TranslucentFylouts\\Menu\\DisabledHot"
- Focusing at "HKEY_CURRENT_USER\\Software\\TranslucentFylouts\\Menu\\Focusing"
- Separator at "HKEY_CURRENT_USER\\Software\\TranslucentFylouts\\Menu\\Separator"
+ - Creates the Tooltip Key at "HKEY_CURRENT_USER\\Software\\TranslucentFylouts\\Tooltip"
"""
menuPath = Path.RegPaths.BasePath + Path.RegPaths.Menu
EditRegistry.createKey(basePath=Path.RegPaths.Software, keyName=Path.RegKeys.TranslucentFlyouts)
@@ -30,6 +32,510 @@ def createAllKeys():
EditRegistry.createKey(basePath=menuPath, keyName=Path.RegKeys.DisabledHot)
EditRegistry.createKey(basePath=menuPath, keyName=Path.RegKeys.Focusing)
EditRegistry.createKey(basePath=menuPath, keyName=Path.RegKeys.Separator)
+ EditRegistry.createKey(basePath=Path.RegPaths.BasePath, keyName=Path.RegKeys.Tooltip)
+
+ @staticmethod
+ def fetchAllValues() -> dict:
+ """
+ Method to:
+ - Read Values from different Registry Keys.
+ - Return a dictionary with values if not none, else returns the default values.
+ """
+ return {
+ "Global": {
+ "Effect Type": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.EffectType,
+ defaultValue=Defaults.Global.effectType,
+ )
+ ),
+ "Corner Type": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.CornerType,
+ defaultValue=Defaults.Global.cornerType,
+ )
+ ),
+ "Enable Drop Shadow": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.EnableDropShadow,
+ defaultValue=Defaults.Global.enableDropShadow,
+ )
+ ),
+ "No Border Color": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.NoBorderColor,
+ defaultValue=Defaults.Global.noBorderColor,
+ )
+ ),
+ "Enable Theme Colorization": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.EnableThemeColorization,
+ defaultValue=Defaults.Global.enableThemeColorization,
+ )
+ ),
+ "Dark Mode Border Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.DarkModeBorderColor,
+ defaultValue=Defaults.Global.darkModeBorderColor,
+ ),
+ "Light Mode Border Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.LightModeBorderColor,
+ defaultValue=Defaults.Global.lightModeBorderColor,
+ ),
+ "Dark Mode Gradient Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.DarkModeGradientColor,
+ defaultValue=Defaults.Global.darkModeGradientColor,
+ ),
+ "Light Mode Gradient Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.LightModeGradientColor,
+ defaultValue=Defaults.Global.lightModeGradientColor,
+ ),
+ "Disabled": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Global,
+ valueName=Path.RegKeys.Disabled,
+ defaultValue=Defaults.Global.disabled,
+ )
+ ),
+ },
+ "DropDown": {
+ "Effect Type": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.EffectType,
+ defaultValue=Defaults.DropDown.effectType,
+ )
+ ),
+ "Corner Type": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.CornerType,
+ defaultValue=Defaults.DropDown.cornerType,
+ )
+ ),
+ "Enable Drop Shadow": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.EnableDropShadow,
+ defaultValue=Defaults.DropDown.enableDropShadow,
+ )
+ ),
+ "No Border Color": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.NoBorderColor,
+ defaultValue=Defaults.DropDown.noBorderColor,
+ )
+ ),
+ "Enable Theme Colorization": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.EnableThemeColorization,
+ defaultValue=Defaults.DropDown.enableThemeColorization,
+ )
+ ),
+ "Dark Mode Border Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.DarkModeBorderColor,
+ defaultValue=Defaults.DropDown.darkModeBorderColor,
+ ),
+ "Light Mode Border Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.LightModeBorderColor,
+ defaultValue=Defaults.DropDown.lightModeBorderColor,
+ ),
+ "Dark Mode Gradient Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.DarkModeGradientColor,
+ defaultValue=Defaults.DropDown.darkModeGradientColor,
+ ),
+ "Light Mode Gradient Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.LightModeGradientColor,
+ defaultValue=Defaults.DropDown.lightModeGradientColor,
+ ),
+ "Disabled": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.DropDown,
+ valueName=Path.RegKeys.Disabled,
+ defaultValue=Defaults.DropDown.disabled,
+ )
+ ),
+ },
+ "Menu": {
+ "No System Drop Shadow": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.NoSystemDropShadow,
+ defaultValue=Defaults.Menu.noSystemDropShadow,
+ )
+ ),
+ "Enable Immersive Style": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.EnableImmersiveStyle,
+ defaultValue=Defaults.Menu.enableImmersiveStyle,
+ )
+ ),
+ "Enable Custom Rendering": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.EnableCustomRendering,
+ defaultValue=Defaults.Menu.enableCustomRendering,
+ )
+ ),
+ "Enable Fluent Animation": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.EnableFluentAnimation,
+ defaultValue=Defaults.Menu.enableFluentAnimation,
+ )
+ ),
+ "No Modern App Background Color": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.NoModernAppBackgroundColor,
+ defaultValue=Defaults.Menu.noModernAppBackgroundColor,
+ )
+ ),
+ "Color Treat As Transparent": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.ColorTreatAsTransparent,
+ defaultValue=Defaults.Menu.colorTreatAsTransparent,
+ ),
+ "Color Treat As Transparent Threshold": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.ColorTreatAsTransparentThreshold,
+ defaultValue=Defaults.Menu.colorTreatAsTransparentThreshold,
+ )
+ ),
+ "Effect Type": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.EffectType,
+ defaultValue=Defaults.Menu.effectType,
+ )
+ ),
+ "Corner Type": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.CornerType,
+ defaultValue=Defaults.Menu.cornerType,
+ )
+ ),
+ "Enable Drop Shadow": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.EnableDropShadow,
+ defaultValue=Defaults.Menu.enableDropShadow,
+ )
+ ),
+ "No Border Color": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.NoBorderColor,
+ defaultValue=Defaults.Menu.noBorderColor,
+ )
+ ),
+ "Enable Theme Colorization": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.EnableThemeColorization,
+ defaultValue=Defaults.Menu.enableThemeColorization,
+ )
+ ),
+ "Dark Mode Border Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.DarkModeBorderColor,
+ defaultValue=Defaults.Menu.darkModeBorderColor,
+ ),
+ "Light Mode Border Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.LightModeBorderColor,
+ defaultValue=Defaults.Menu.lightModeBorderColor,
+ ),
+ "Dark Mode Gradient Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.DarkModeGradientColor,
+ defaultValue=Defaults.Menu.darkModeGradientColor,
+ ),
+ "Light Mode Gradient Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.LightModeGradientColor,
+ defaultValue=Defaults.Menu.lightModeGradientColor,
+ ),
+ "Disabled": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu,
+ valueName=Path.RegKeys.Disabled,
+ defaultValue=Defaults.Menu.disabled,
+ )
+ ),
+ "Animation": {
+ "Fade Out Time": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Animation,
+ valueName=Path.RegKeys.FadeOutTime,
+ defaultValue=Defaults.Menu.Animation.fadeOutTime,
+ )
+ ),
+ "Pop In Time": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Animation,
+ valueName=Path.RegKeys.PopInTime,
+ defaultValue=Defaults.Menu.Animation.popInTime,
+ )
+ ),
+ "Fade In Time": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Animation,
+ valueName=Path.RegKeys.FadeInTime,
+ defaultValue=Defaults.Menu.Animation.fadeInTime,
+ )
+ ),
+ "Pop In Style": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Animation,
+ valueName=Path.RegKeys.PopInStyle,
+ defaultValue=Defaults.Menu.Animation.popInStyle,
+ )
+ ),
+ "Start Ratio": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Animation,
+ valueName=Path.RegKeys.StartRatio,
+ defaultValue=Defaults.Menu.Animation.startRatio,
+ )
+ ),
+ "Enable Immediate Interupting": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Animation,
+ valueName=Path.RegKeys.EnableImmediateInterupting,
+ defaultValue=Defaults.Menu.Animation.enableImmediateInterupting,
+ )
+ ),
+ },
+ "Disabled Hot": {
+ "Corner Radius": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.DisabledHot,
+ valueName=Path.RegKeys.CornerRadius,
+ defaultValue=Defaults.Menu.DisabledHot.cornerRadius,
+ )
+ ),
+ "Dark Mode Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.DisabledHot,
+ valueName=Path.RegKeys.DarkModeColor,
+ defaultValue=Defaults.Menu.DisabledHot.darkModeColor,
+ ),
+ "Light Mode Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.DisabledHot,
+ valueName=Path.RegKeys.LightModeColor,
+ defaultValue=Defaults.Menu.DisabledHot.lightModeColor,
+ ),
+ "Enable Theme Colorization": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.DisabledHot,
+ valueName=Path.RegKeys.EnableThemeColorization,
+ defaultValue=Defaults.Menu.DisabledHot.enableThemeColorization,
+ )
+ ),
+ "Disabled": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.DisabledHot,
+ valueName=Path.RegKeys.Disabled,
+ defaultValue=Defaults.Menu.DisabledHot.disabled,
+ )
+ ),
+ },
+ "Focusing": {
+ "Width": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Focusing,
+ valueName=Path.RegKeys.Width,
+ defaultValue=Defaults.Menu.Focusing.width,
+ )
+ ),
+ "Corner Radius": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Focusing,
+ valueName=Path.RegKeys.CornerRadius,
+ defaultValue=Defaults.Menu.Focusing.cornerRadius,
+ )
+ ),
+ "Dark Mode Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Focusing,
+ valueName=Path.RegKeys.DarkModeColor,
+ defaultValue=Defaults.Menu.Focusing.darkModeColor,
+ ),
+ "Light Mode Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Focusing,
+ valueName=Path.RegKeys.LightModeColor,
+ defaultValue=Defaults.Menu.Focusing.lightModeColor,
+ ),
+ "Enable Theme Colorization": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Focusing,
+ valueName=Path.RegKeys.EnableThemeColorization,
+ defaultValue=Defaults.Menu.Focusing.enableThemeColorization,
+ )
+ ),
+ "Disabled": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Focusing,
+ valueName=Path.RegKeys.Disabled,
+ defaultValue=Defaults.Menu.Focusing.disabled,
+ )
+ ),
+ },
+ "Hot": {
+ "Corner Radius": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Hot,
+ valueName=Path.RegKeys.CornerRadius,
+ defaultValue=Defaults.Menu.Hot.cornerRadius,
+ )
+ ),
+ "Dark Mode Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Hot,
+ valueName=Path.RegKeys.DarkModeColor,
+ defaultValue=Defaults.Menu.Hot.darkModeColor,
+ ),
+ "Light Mode Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Hot,
+ valueName=Path.RegKeys.LightModeColor,
+ defaultValue=Defaults.Menu.Hot.lightModeColor,
+ ),
+ "Enable Theme Colorization": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Hot,
+ valueName=Path.RegKeys.EnableThemeColorization,
+ defaultValue=Defaults.Menu.Hot.enableThemeColorization,
+ )
+ ),
+ "Disabled": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Hot,
+ valueName=Path.RegKeys.Disabled,
+ defaultValue=Defaults.Menu.Hot.disabled,
+ )
+ ),
+ },
+ "Separator": {
+ "Width": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Separator,
+ valueName=Path.RegKeys.Width,
+ defaultValue=Defaults.Menu.Separator.width,
+ )
+ ),
+ "Corner Radius": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Separator,
+ valueName=Path.RegKeys.CornerRadius,
+ defaultValue=Defaults.Menu.Separator.cornerRadius,
+ )
+ ),
+ "Dark Mode Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Separator,
+ valueName=Path.RegKeys.DarkModeColor,
+ defaultValue=Defaults.Menu.Separator.darkModeColor,
+ ),
+ "Light Mode Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Separator,
+ valueName=Path.RegKeys.LightModeColor,
+ defaultValue=Defaults.Menu.Separator.lightModeColor,
+ ),
+ "Enable Theme Colorization": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Separator,
+ valueName=Path.RegKeys.EnableThemeColorization,
+ defaultValue=Defaults.Menu.Separator.enableThemeColorization,
+ )
+ ),
+ "Disabled": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Menu + Path.RegPaths.Separator,
+ valueName=Path.RegKeys.Disabled,
+ defaultValue=Defaults.Menu.Separator.disabled,
+ )
+ ),
+ },
+ },
+ "Tooltip": {
+ "Effect Type": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.EffectType,
+ defaultValue=Defaults.Tooltip.effectType,
+ )
+ ),
+ "Corner Type": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.CornerType,
+ defaultValue=Defaults.Tooltip.cornerType,
+ )
+ ),
+ "Enable Drop Shadow": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.EnableDropShadow,
+ defaultValue=Defaults.Tooltip.enableDropShadow,
+ )
+ ),
+ "No Border Color": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.NoBorderColor,
+ defaultValue=Defaults.Tooltip.noBorderColor,
+ )
+ ),
+ "Enable Theme Colorization": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.EnableThemeColorization,
+ defaultValue=Defaults.Tooltip.enableThemeColorization,
+ )
+ ),
+ "Dark Mode Border Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.DarkModeBorderColor,
+ defaultValue=Defaults.Tooltip.darkModeBorderColor,
+ ),
+ "Light Mode Border Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.LightModeBorderColor,
+ defaultValue=Defaults.Tooltip.lightModeBorderColor,
+ ),
+ "Dark Mode Gradient Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.DarkModeGradientColor,
+ defaultValue=Defaults.Tooltip.darkModeGradientColor,
+ ),
+ "Light Mode Gradient Color": EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.LightModeGradientColor,
+ defaultValue=Defaults.Tooltip.lightModeGradientColor,
+ ),
+ "Disabled": int(
+ EditRegistry.readValue(
+ keyPath=Path.RegPaths.Tooltip,
+ valueName=Path.RegKeys.Disabled,
+ defaultValue=Defaults.Tooltip.disabled,
+ )
+ ),
+ },
+ }
@staticmethod
def createKey(
@@ -118,3 +624,29 @@ def removeValue(
CloseKey(base)
except:
pass
+
+ @staticmethod
+ def readValue(
+ keyPath: Path.RegPaths | str,
+ valueName: str,
+ defaultValue: str | int,
+ ) -> str | int:
+ """
+ Reads a value from the registry.
+ - keyPath: The path to the registry key.
+ - valueName: The name of the value to read.
+ """
+
+ try:
+ key = OpenKeyEx(
+ key=Path.RegKeys.BaseKey,
+ sub_key=str(Path.RegPaths.BasePath + str(keyPath)),
+ reserved=0,
+ access=KEY_READ,
+ )
+ value, _ = QueryValueEx(key, valueName)
+ if key:
+ CloseKey(key)
+ return hex(value)[2:].upper()
+ except WindowsError:
+ return defaultValue
diff --git a/Registry/save_reg.py b/Registry/save_reg.py
index 93af23a..b94611a 100644
--- a/Registry/save_reg.py
+++ b/Registry/save_reg.py
@@ -288,6 +288,36 @@ def apply() -> bool:
keyPath=keyPath,
isEnabled=Saved.Menu.enableFluentAnimation,
)
+ if Saved.Menu.noModernAppBackgroundColor == Defaults.Menu.noModernAppBackgroundColor:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.NoModernAppBackgroundColor,
+ )
+ else:
+ EditSettings.changeNoModernAppBackgroundColor(
+ keyPath=keyPath,
+ isDisabled=Saved.Menu.noModernAppBackgroundColor,
+ )
+ if Saved.Menu.colorTreatAsTransparent == Defaults.Menu.colorTreatAsTransparent:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.ColorTreatAsTransparent,
+ )
+ else:
+ EditSettings.changeColorTreatAsTransparent(
+ keyPath=keyPath,
+ color=Saved.Menu.colorTreatAsTransparent,
+ )
+ if Saved.Menu.colorTreatAsTransparentThreshold == Defaults.Menu.colorTreatAsTransparentThreshold:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.ColorTreatAsTransparentThreshold,
+ )
+ else:
+ EditSettings.changeColorTreatAsTransparentThreshold(
+ keyPath=keyPath,
+ threshold=Saved.Menu.colorTreatAsTransparentThreshold,
+ )
if Saved.Menu.effectType == Settings.EffectType.UseGlobalSetting:
EditRegistry.removeValue(
keyPath=keyPath,
@@ -751,3 +781,118 @@ def apply() -> bool:
return False
else:
return True
+
+ class Tooltip:
+ @staticmethod
+ def apply() -> bool:
+ """
+ Method to:
+ - Remove a value if it is being set to its default value
+ - Update the value
+ """
+ keyPath = Path.RegPaths.Tooltip
+ try:
+ if Saved.Tooltip.effectType == Settings.EffectType.UseGlobalSetting:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.EffectType,
+ )
+ else:
+ EditSettings.changeEffectType(
+ keyPath=keyPath,
+ effectType=Saved.Tooltip.effectType,
+ )
+ if Saved.Tooltip.cornerType == Defaults.Tooltip.cornerType:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.CornerType,
+ )
+ else:
+ EditSettings.changeCornerType(
+ keyPath=keyPath,
+ cornerType=Saved.Tooltip.cornerType,
+ )
+ if Saved.Tooltip.enableDropShadow == Settings.EnableDropShadow.UseGlobalSetting:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.EnableDropShadow,
+ )
+ else:
+ EditSettings.changeEnableDropShadow(
+ keyPath=keyPath,
+ isEnabled=Saved.Tooltip.enableDropShadow,
+ )
+ if Saved.Tooltip.noBorderColor == Settings.NoBorderColor.UseGlobalSetting:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.NoBorderColor,
+ )
+ else:
+ EditSettings.changeNoBorderColor(
+ keyPath=keyPath,
+ isEnabled=Saved.Tooltip.noBorderColor,
+ )
+ if Saved.Tooltip.enableThemeColorization == Settings.EnableThemeColorization.UseGlobalSetting:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.EnableThemeColorization,
+ )
+ else:
+ EditSettings.changeEnableThemeColorization(
+ keyPath=keyPath,
+ isEnabled=Saved.Tooltip.enableThemeColorization,
+ )
+ if Saved.Tooltip.darkModeBorderColor == Defaults.Tooltip.darkModeBorderColor:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.DarkModeBorderColor,
+ )
+ else:
+ EditSettings.changeDarkModeBorderColor(
+ keyPath=keyPath,
+ color=Saved.Tooltip.darkModeBorderColor,
+ )
+ if Saved.Tooltip.lightModeBorderColor == Defaults.Tooltip.lightModeBorderColor:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.LightModeBorderColor,
+ )
+ else:
+ EditSettings.changeLightModeBorderColor(
+ keyPath=keyPath,
+ color=Saved.Tooltip.lightModeBorderColor,
+ )
+ if Saved.Tooltip.darkModeGradientColor == Defaults.Tooltip.darkModeGradientColor:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.DarkModeGradientColor,
+ )
+ else:
+ EditSettings.changeDarkModeGradientColor(
+ keyPath=keyPath,
+ color=Saved.Tooltip.darkModeGradientColor,
+ )
+ if Saved.Tooltip.lightModeGradientColor == Defaults.Tooltip.lightModeGradientColor:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.LightModeGradientColor,
+ )
+ else:
+ EditSettings.changeLightModeGradientColor(
+ keyPath=keyPath,
+ color=Saved.Tooltip.lightModeGradientColor,
+ )
+ if Saved.Tooltip.disabled == Settings.Disabled.UseGlobalSetting:
+ EditRegistry.removeValue(
+ keyPath=keyPath,
+ valueName=Path.RegKeys.Disabled,
+ )
+ else:
+ EditSettings.changeDisabled(
+ keyPath=keyPath,
+ isDisabled=Saved.Tooltip.disabled,
+ )
+ except:
+ return False
+ else:
+ return True
diff --git a/connections.py b/connections.py
index 2e15484..6698c54 100644
--- a/connections.py
+++ b/connections.py
@@ -33,6 +33,7 @@ def connectApplyButtons(window: Main) -> None:
window.applyButton3_4.clicked.connect(lambda a: SaveSettings.Menu.DisabledHot.save(window))
window.applyButton3_5.clicked.connect(lambda a: SaveSettings.Menu.Focusing.save(window))
window.applyButton3_6.clicked.connect(lambda a: SaveSettings.Menu.Separator.save(window))
+ window.applyButton4.clicked.connect(lambda a: SaveSettings.Tooltip.save(window))
@staticmethod
def connectResetButtons(window: Main) -> None:
@@ -46,7 +47,7 @@ def configureResetButton(
resetButton: QPushButton,
valueWidget: QLineEdit | QComboBox | QSpinBox,
defaultValue: str | int,
- savedValue: str,
+ savedValueName: str,
colorPickerButton: QPushButton | None,
) -> None:
def getSavedValue(valueVarAsString: str):
@@ -62,92 +63,96 @@ def getSavedValue(valueVarAsString: str):
if isinstance(valueWidget, QLineEdit):
if colorPickerButton and type(defaultValue) == str:
resetButton.clicked.connect(lambda a: valueWidget.setText(defaultValue))
- resetButton.clicked.connect(
- lambda a: colorPickerButton.setStyleSheet(
- StyleSheet.buttoResetStyleSheet() if (defaultValue == "") else StyleSheet.buttonColorStylesheet(str(defaultValue))
- )
- )
+ resetButton.clicked.connect(lambda a: colorPickerButton.setStyleSheet(StyleSheet.buttoResetStyleSheet()))
resetButton.clicked.connect(lambda a: colorPickerButton.setIcon(QIcon(Path.IconPaths.ColorPicker)))
- resetButton.customContextMenuRequested.connect(lambda a: valueWidget.setText(getSavedValue(savedValue)))
+ resetButton.customContextMenuRequested.connect(lambda a: valueWidget.setText(getSavedValue(savedValueName)))
+ resetButton.customContextMenuRequested.connect(
+ lambda a: colorPickerButton.setStyleSheet(StyleSheet.buttoResetStyleSheet())
+ if (getSavedValue(savedValueName) == "")
+ else ColorPicker.changeButtonColor(getSavedValue(savedValueName), colorPickerButton)
+ )
+ resetButton.customContextMenuRequested.connect(
+ lambda a: colorPickerButton.setIcon(QIcon(Path.IconPaths.ColorPicker) if (getSavedValue(savedValueName) == "") else QIcon(""))
+ )
elif isinstance(valueWidget, QComboBox):
if type(defaultValue) == int:
resetButton.clicked.connect(lambda a: valueWidget.setCurrentIndex(defaultValue))
- resetButton.customContextMenuRequested.connect(lambda a: valueWidget.setCurrentIndex(getSavedValue(savedValue)))
+ resetButton.customContextMenuRequested.connect(lambda a: valueWidget.setCurrentIndex(getSavedValue(savedValueName)))
elif isinstance(valueWidget, QSpinBox):
if type(defaultValue) == int:
resetButton.clicked.connect(lambda a: valueWidget.setValue(defaultValue))
- resetButton.customContextMenuRequested.connect(lambda a: valueWidget.setValue(getSavedValue(savedValue)))
+ resetButton.customContextMenuRequested.connect(lambda a: valueWidget.setValue(getSavedValue(savedValueName)))
# Global
configureResetButton(
resetButton=window.reset_effect_type1,
valueWidget=window.effectType1,
defaultValue=Defaults.Global.effectType,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.effectType),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.effectType),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_corner_type1,
valueWidget=window.cornerType1,
defaultValue=Defaults.Global.cornerType,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.cornerType),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.cornerType),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_drop_shadow1,
valueWidget=window.enableDropShadow1,
defaultValue=Defaults.Global.enableDropShadow,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.enableDropShadow),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.enableDropShadow),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_theme_colorization1,
valueWidget=window.enableThemeColorization1,
defaultValue=Defaults.Global.enableThemeColorization,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.enableThemeColorization),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.enableThemeColorization),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_border_color1,
valueWidget=window.noBorderColor1,
defaultValue=Defaults.Global.noBorderColor,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.noBorderColor),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.noBorderColor),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_dark_mode_border_color1,
valueWidget=window.darkModeBorderColor1,
defaultValue=Defaults.Global.darkModeBorderColor,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.darkModeBorderColor),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.darkModeBorderColor),
colorPickerButton=window.dark_mode_border_color_picker1,
)
configureResetButton(
resetButton=window.reset_light_mode_border_color1,
valueWidget=window.lightModeBorderColor1,
defaultValue=Defaults.Global.lightModeBorderColor,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.lightModeBorderColor),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.lightModeBorderColor),
colorPickerButton=window.light_mode_border_color_picker1,
)
configureResetButton(
resetButton=window.reset_dark_mode_gradient_color1,
valueWidget=window.darkModeGradientColor1,
defaultValue=Defaults.Global.darkModeGradientColor,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.darkModeGradientColor),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.darkModeGradientColor),
colorPickerButton=window.dark_mode_gradient_color_picker1,
)
configureResetButton(
resetButton=window.reset_light_mode_gradient_color1,
valueWidget=window.lightModeGradientColor1,
defaultValue=Defaults.Global.lightModeGradientColor,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.lightModeGradientColor),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.lightModeGradientColor),
colorPickerButton=window.light_mode_gradient_color_picker1,
)
configureResetButton(
resetButton=window.reset_disabled1,
valueWidget=window.disabledEffect1,
defaultValue=Defaults.Global.disabled,
- savedValue=ClassVar.joinVars(ClassVar._global, ClassVar.disabled),
+ savedValueName=ClassVar.joinVars(ClassVar._global, ClassVar.disabled),
colorPickerButton=None,
)
@@ -156,70 +161,70 @@ def getSavedValue(valueVarAsString: str):
resetButton=window.reset_effect_type2,
valueWidget=window.effectType2,
defaultValue=Defaults.DropDown.effectType,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.effectType),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.effectType),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_corner_type2,
valueWidget=window.cornerType2,
defaultValue=Defaults.DropDown.cornerType,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.cornerType),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.cornerType),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_drop_shadow2,
valueWidget=window.enableDropShadow2,
defaultValue=Defaults.DropDown.enableDropShadow,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.enableDropShadow),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.enableDropShadow),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_theme_colorization2,
valueWidget=window.enableThemeColorization2,
defaultValue=Defaults.DropDown.enableThemeColorization,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.enableThemeColorization),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.enableThemeColorization),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_border_color2,
valueWidget=window.noBorderColor2,
defaultValue=Defaults.DropDown.noBorderColor,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.noBorderColor),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.noBorderColor),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_dark_mode_border_color2,
valueWidget=window.darkModeBorderColor2,
defaultValue=Defaults.DropDown.darkModeBorderColor,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.darkModeBorderColor),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.darkModeBorderColor),
colorPickerButton=window.dark_mode_border_color_picker2,
)
configureResetButton(
resetButton=window.reset_light_mode_border_color2,
valueWidget=window.lightModeBorderColor2,
defaultValue=Defaults.DropDown.lightModeBorderColor,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.lightModeBorderColor),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.lightModeBorderColor),
colorPickerButton=window.light_mode_border_color_picker2,
)
configureResetButton(
resetButton=window.reset_dark_mode_gradient_color2,
valueWidget=window.darkModeGradientColor2,
defaultValue=Defaults.DropDown.darkModeGradientColor,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.darkModeGradientColor),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.darkModeGradientColor),
colorPickerButton=window.dark_mode_gradient_color_picker2,
)
configureResetButton(
resetButton=window.reset_light_mode_gradient_color2,
valueWidget=window.lightModeGradientColor2,
defaultValue=Defaults.DropDown.lightModeGradientColor,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.lightModeGradientColor),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.lightModeGradientColor),
colorPickerButton=window.light_mode_gradient_color_picker2,
)
configureResetButton(
resetButton=window.reset_disabled2,
valueWidget=window.disabledEffect2,
defaultValue=Defaults.DropDown.disabled,
- savedValue=ClassVar.joinVars(ClassVar.dropdown, ClassVar.disabled),
+ savedValueName=ClassVar.joinVars(ClassVar.dropdown, ClassVar.disabled),
colorPickerButton=None,
)
@@ -228,42 +233,63 @@ def getSavedValue(valueVarAsString: str):
resetButton=window.reset_system_drop_shadow,
valueWidget=window.noSystemDropShadow,
defaultValue=Defaults.Menu.noSystemDropShadow,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.noSystemDropShadow),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.noSystemDropShadow),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_immersive_style,
valueWidget=window.enableImmersiveStyle,
defaultValue=Defaults.Menu.enableImmersiveStyle,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.enableImmersiveStyle),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.enableImmersiveStyle),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_custom_rendering,
valueWidget=window.enableCustomRendering,
defaultValue=Defaults.Menu.enableCustomRendering,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.enableCustomRendering),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.enableCustomRendering),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_fluent_animation,
valueWidget=window.enableFluentAnimation,
defaultValue=Defaults.Menu.enableFluentAnimation,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.enableFluentAnimation),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.enableFluentAnimation),
+ colorPickerButton=None,
+ )
+ configureResetButton(
+ resetButton=window.reset_modern_app_background_color,
+ valueWidget=window.noModernAppBackgroundColor,
+ defaultValue=Defaults.Menu.noModernAppBackgroundColor,
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.noModernAppBackgroundColor),
+ colorPickerButton=None,
+ )
+ configureResetButton(
+ resetButton=window.reset_color_treat_as_transparent,
+ valueWidget=window.colorTreatAsTransparent,
+ defaultValue=Defaults.Menu.colorTreatAsTransparent,
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.colorTreatAsTransparent),
+ colorPickerButton=window.color_treat_as_transparent_color_picker,
+ )
+ configureResetButton(
+ resetButton=window.reset_color_treat_as_transparent_threshold,
+ valueWidget=window.colorTreatAsTransparentThreshold,
+ defaultValue=Defaults.Menu.colorTreatAsTransparentThreshold,
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.colorTreatAsTransparentThreshold),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_effect_type3,
valueWidget=window.effectType3,
defaultValue=Defaults.Menu.effectType,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.effectType),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.effectType),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_corner_type3,
valueWidget=window.cornerType3,
defaultValue=Defaults.Menu.cornerType,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.cornerType),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.cornerType),
colorPickerButton=None,
)
@@ -271,28 +297,28 @@ def getSavedValue(valueVarAsString: str):
resetButton=window.reset_drop_shadow3,
valueWidget=window.enableDropShadow3,
defaultValue=Defaults.Menu.enableDropShadow,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.enableDropShadow),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.enableDropShadow),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_theme_colorization3_1,
valueWidget=window.enableThemeColorization3_1,
defaultValue=Defaults.Menu.enableThemeColorization,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.enableThemeColorization),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.enableThemeColorization),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_border_color3,
valueWidget=window.noBorderColor3,
defaultValue=Defaults.Menu.noBorderColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.noBorderColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.noBorderColor),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_dark_mode_border_color3,
valueWidget=window.darkModeBorderColor3,
defaultValue=Defaults.Menu.darkModeBorderColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.darkModeBorderColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.darkModeBorderColor),
colorPickerButton=window.dark_mode_border_color_picker3,
)
@@ -300,28 +326,28 @@ def getSavedValue(valueVarAsString: str):
resetButton=window.reset_light_mode_border_color3,
valueWidget=window.lightModeBorderColor3,
defaultValue=Defaults.Menu.lightModeBorderColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.lightModeBorderColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.lightModeBorderColor),
colorPickerButton=window.light_mode_border_color_picker3,
)
configureResetButton(
resetButton=window.reset_dark_mode_gradient_color3,
valueWidget=window.darkModeGradientColor3,
defaultValue=Defaults.Menu.darkModeGradientColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.darkModeGradientColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.darkModeGradientColor),
colorPickerButton=window.dark_mode_gradient_color_picker3,
)
configureResetButton(
resetButton=window.reset_light_mode_gradient_color3,
valueWidget=window.lightModeGradientColor3,
defaultValue=Defaults.Menu.lightModeGradientColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.lightModeGradientColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.lightModeGradientColor),
colorPickerButton=window.light_mode_gradient_color_picker3,
)
configureResetButton(
resetButton=window.reset_disabled3_1,
valueWidget=window.disabledEffect3_1,
defaultValue=Defaults.Menu.disabled,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.disabled),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.disabled),
colorPickerButton=None,
)
# Menu-Animation
@@ -329,42 +355,42 @@ def getSavedValue(valueVarAsString: str):
resetButton=window.reset_fade_out_time,
valueWidget=window.fadeOutTime,
defaultValue=Defaults.Menu.Animation.fadeOutTime,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.fadeOutTime),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.fadeOutTime),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_pop_in_time,
valueWidget=window.popInTime,
defaultValue=Defaults.Menu.Animation.popInTime,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.popInTime),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.popInTime),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_fade_in_time,
valueWidget=window.fadeInTime,
defaultValue=Defaults.Menu.Animation.fadeInTime,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.fadeInTime),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.fadeInTime),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_pop_in_style,
valueWidget=window.popInStyle,
defaultValue=Defaults.Menu.Animation.popInStyle,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.popInStyle),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.popInStyle),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_start_ratio,
valueWidget=window.startRatio,
defaultValue=Defaults.Menu.Animation.startRatio,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.startRatio),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.startRatio),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_immediate_interupting,
valueWidget=window.enableImmediateInterupting,
defaultValue=Defaults.Menu.Animation.enableImmediateInterupting,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.enableImmediateInterupting),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.animation, ClassVar.enableImmediateInterupting),
colorPickerButton=None,
)
# Menu-Hot
@@ -372,35 +398,35 @@ def getSavedValue(valueVarAsString: str):
resetButton=window.reset_dark_mode_color1_1,
valueWidget=window.darkModeColor1_1,
defaultValue=Defaults.Menu.Hot.darkModeColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.darkModeColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.darkModeColor),
colorPickerButton=window.dark_mode_color_picker1_1,
)
configureResetButton(
resetButton=window.reset_light_mode_color1_1,
valueWidget=window.lightModeColor1_1,
defaultValue=Defaults.Menu.Hot.lightModeColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.lightModeColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.lightModeColor),
colorPickerButton=window.light_mode_color_picker1_1,
)
configureResetButton(
resetButton=window.reset_disabled3_2,
valueWidget=window.disabledEffect3_2,
defaultValue=Defaults.Menu.Hot.disabled,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.disabled),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.disabled),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_corner_radius1_1,
valueWidget=window.cornerRadius1_1,
defaultValue=Defaults.Menu.Hot.cornerRadius,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.cornerRadius),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.cornerRadius),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_theme_colorization3_2,
valueWidget=window.enableThemeColorization3_2,
defaultValue=Defaults.Menu.Hot.enableThemeColorization,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.enableThemeColorization),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.hot, ClassVar.enableThemeColorization),
colorPickerButton=None,
)
# Menu-Disabled Hot
@@ -408,35 +434,35 @@ def getSavedValue(valueVarAsString: str):
resetButton=window.reset_dark_mode_color1_2,
valueWidget=window.darkModeColor1_2,
defaultValue=Defaults.Menu.DisabledHot.darkModeColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.darkModeColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.darkModeColor),
colorPickerButton=window.dark_mode_color_picker1_2,
)
configureResetButton(
resetButton=window.reset_light_mode_color1_2,
valueWidget=window.lightModeColor1_2,
defaultValue=Defaults.Menu.DisabledHot.lightModeColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.lightModeColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.lightModeColor),
colorPickerButton=window.light_mode_color_picker1_2,
)
configureResetButton(
resetButton=window.reset_disabled3_3,
valueWidget=window.disabledEffect3_3,
defaultValue=Defaults.Menu.DisabledHot.disabled,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.disabled),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.disabled),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_corner_radius1_2,
valueWidget=window.cornerRadius1_2,
defaultValue=Defaults.Menu.DisabledHot.cornerRadius,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.cornerRadius),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.cornerRadius),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_theme_colorization3_3,
valueWidget=window.enableThemeColorization3_3,
defaultValue=Defaults.Menu.Hot.enableThemeColorization,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.enableThemeColorization),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.disabledHot, ClassVar.enableThemeColorization),
colorPickerButton=None,
)
@@ -445,42 +471,42 @@ def getSavedValue(valueVarAsString: str):
resetButton=window.reset_width1_1,
valueWidget=window.width1_1,
defaultValue=Defaults.Menu.Focusing.width,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.width),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.width),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_dark_mode_color1_3,
valueWidget=window.darkModeColor1_3,
defaultValue=Defaults.Menu.Focusing.darkModeColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.darkModeColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.darkModeColor),
colorPickerButton=window.dark_mode_color_picker1_3,
)
configureResetButton(
resetButton=window.reset_light_mode_color1_3,
valueWidget=window.lightModeColor1_3,
defaultValue=Defaults.Menu.Focusing.lightModeColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.lightModeColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.lightModeColor),
colorPickerButton=window.light_mode_color_picker1_3,
)
configureResetButton(
resetButton=window.reset_disabled3_4,
valueWidget=window.disabledEffect3_4,
defaultValue=Defaults.Menu.Focusing.disabled,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.disabled),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.disabled),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_corner_radius1_3,
valueWidget=window.cornerRadius1_3,
defaultValue=Defaults.Menu.Focusing.cornerRadius,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.cornerRadius),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.cornerRadius),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_theme_colorization3_4,
valueWidget=window.enableThemeColorization3_4,
defaultValue=Defaults.Menu.Focusing.enableThemeColorization,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.enableThemeColorization),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.focusing, ClassVar.enableThemeColorization),
colorPickerButton=None,
)
@@ -489,42 +515,114 @@ def getSavedValue(valueVarAsString: str):
resetButton=window.reset_width1_2,
valueWidget=window.width1_2,
defaultValue=Defaults.Menu.Separator.width,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.width),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.width),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_dark_mode_color1_4,
valueWidget=window.darkModeColor1_4,
defaultValue=Defaults.Menu.Separator.darkModeColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.darkModeColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.darkModeColor),
colorPickerButton=window.dark_mode_color_picker1_4,
)
configureResetButton(
resetButton=window.reset_light_mode_color1_4,
valueWidget=window.lightModeColor1_4,
defaultValue=Defaults.Menu.Separator.lightModeColor,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.lightModeColor),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.lightModeColor),
colorPickerButton=window.light_mode_color_picker1_4,
)
configureResetButton(
resetButton=window.reset_disabled3_5,
valueWidget=window.disabledEffect3_5,
defaultValue=Defaults.Menu.Separator.disabled,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.disabled),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.disabled),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_corner_radius1_4,
valueWidget=window.cornerRadius1_4,
defaultValue=Defaults.Menu.Separator.cornerRadius,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.cornerRadius),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.cornerRadius),
colorPickerButton=None,
)
configureResetButton(
resetButton=window.reset_theme_colorization3_5,
valueWidget=window.enableThemeColorization3_5,
defaultValue=Defaults.Menu.Separator.enableThemeColorization,
- savedValue=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.enableThemeColorization),
+ savedValueName=ClassVar.joinVars(ClassVar.menu, ClassVar.separator, ClassVar.enableThemeColorization),
+ colorPickerButton=None,
+ )
+
+ # Tooltip
+ configureResetButton(
+ resetButton=window.reset_effect_type4,
+ valueWidget=window.effectType4,
+ defaultValue=Defaults.Tooltip.effectType,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.effectType),
+ colorPickerButton=None,
+ )
+ configureResetButton(
+ resetButton=window.reset_corner_type4,
+ valueWidget=window.cornerType4,
+ defaultValue=Defaults.Tooltip.cornerType,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.cornerType),
+ colorPickerButton=None,
+ )
+ configureResetButton(
+ resetButton=window.reset_drop_shadow4,
+ valueWidget=window.enableDropShadow4,
+ defaultValue=Defaults.Tooltip.enableDropShadow,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.enableDropShadow),
+ colorPickerButton=None,
+ )
+ configureResetButton(
+ resetButton=window.reset_theme_colorization4,
+ valueWidget=window.enableThemeColorization4,
+ defaultValue=Defaults.Tooltip.enableThemeColorization,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.enableThemeColorization),
+ colorPickerButton=None,
+ )
+ configureResetButton(
+ resetButton=window.reset_border_color4,
+ valueWidget=window.noBorderColor4,
+ defaultValue=Defaults.Tooltip.noBorderColor,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.noBorderColor),
+ colorPickerButton=None,
+ )
+ configureResetButton(
+ resetButton=window.reset_dark_mode_border_color4,
+ valueWidget=window.darkModeBorderColor4,
+ defaultValue=Defaults.Tooltip.darkModeBorderColor,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.darkModeBorderColor),
+ colorPickerButton=window.dark_mode_border_color_picker4,
+ )
+ configureResetButton(
+ resetButton=window.reset_light_mode_border_color4,
+ valueWidget=window.lightModeBorderColor4,
+ defaultValue=Defaults.Tooltip.lightModeBorderColor,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.lightModeBorderColor),
+ colorPickerButton=window.light_mode_border_color_picker4,
+ )
+ configureResetButton(
+ resetButton=window.reset_dark_mode_gradient_color4,
+ valueWidget=window.darkModeGradientColor4,
+ defaultValue=Defaults.Tooltip.darkModeGradientColor,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.darkModeGradientColor),
+ colorPickerButton=window.dark_mode_gradient_color_picker4,
+ )
+ configureResetButton(
+ resetButton=window.reset_light_mode_gradient_color4,
+ valueWidget=window.lightModeGradientColor4,
+ defaultValue=Defaults.Tooltip.lightModeGradientColor,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.lightModeGradientColor),
+ colorPickerButton=window.light_mode_gradient_color_picker4,
+ )
+ configureResetButton(
+ resetButton=window.reset_disabled4,
+ valueWidget=window.disabledEffect4,
+ defaultValue=Defaults.Tooltip.disabled,
+ savedValueName=ClassVar.joinVars(ClassVar.tooltip, ClassVar.disabled),
colorPickerButton=None,
)
@@ -574,6 +672,10 @@ def connectColorPickers(window: Main) -> None:
pushButton=window.light_mode_gradient_color_picker2,
)
# Menu-General
+ ColorPicker.connectColorDialog(
+ lineEdit=window.colorTreatAsTransparent,
+ pushButton=window.color_treat_as_transparent_color_picker,
+ )
ColorPicker.connectColorDialog(
lineEdit=window.darkModeBorderColor3,
pushButton=window.dark_mode_border_color_picker3,
@@ -631,3 +733,21 @@ def connectColorPickers(window: Main) -> None:
lineEdit=window.lightModeColor1_4,
pushButton=window.light_mode_color_picker1_4,
)
+ # Tooltip
+ ColorPicker.connectColorDialog(
+ lineEdit=window.darkModeBorderColor4,
+ pushButton=window.dark_mode_border_color_picker4,
+ )
+ ColorPicker.connectColorDialog(
+ lineEdit=window.lightModeBorderColor4,
+ pushButton=window.light_mode_border_color_picker4,
+ )
+
+ ColorPicker.connectColorDialog(
+ lineEdit=window.darkModeGradientColor4,
+ pushButton=window.dark_mode_gradient_color_picker4,
+ )
+ ColorPicker.connectColorDialog(
+ lineEdit=window.lightModeGradientColor4,
+ pushButton=window.light_mode_gradient_color_picker4,
+ )
diff --git a/defaults.json b/defaults.json
index 3157f52..aaccf6f 100644
--- a/defaults.json
+++ b/defaults.json
@@ -28,6 +28,9 @@
"Enable Immersive Style": 1,
"Enable Custom Rendering": 0,
"Enable Fluent Animation": 0,
+ "No Modern App Background Color": 1,
+ "Color Treat As Transparent": "",
+ "Color Treat As Transparent Threshold": 50,
"Effect Type": 9,
"Corner Type": 4,
"Enable Drop Shadow": 2,
@@ -48,8 +51,8 @@
},
"Disabled Hot": {
"Corner Radius": 8,
- "Dark Mode Color": "0",
- "Light Mode Color": "0",
+ "Dark Mode Color": "",
+ "Light Mode Color": "",
"Enable Theme Colorization": 0,
"Disabled": 0
},
@@ -76,5 +79,17 @@
"Enable Theme Colorization": 0,
"Disabled": 0
}
+ },
+ "Tooltip": {
+ "Effect Type": 9,
+ "Corner Type": 4,
+ "Enable Drop Shadow": 2,
+ "No Border Color": 2,
+ "Enable Theme Colorization": 2,
+ "Dark Mode Border Color": "",
+ "Light Mode Border Color": "",
+ "Dark Mode Gradient Color": "",
+ "Light Mode Gradient Color": "",
+ "Disabled": 2
}
}
diff --git a/main.ui b/main.ui
index d518faa..97f947c 100644
--- a/main.ui
+++ b/main.ui
@@ -6,7 +6,7 @@
0
0
- 471
+ 488
476
@@ -1618,8 +1618,8 @@
0
0
- 386
- 476
+ 403
+ 588
@@ -1643,14 +1643,14 @@
-
-
-
+
-
Effect Type
- -
+
-
4
@@ -1740,14 +1740,14 @@
- -
+
-
Corner Type
- -
+
-
4
@@ -1809,14 +1809,14 @@
- -
+
-
Enable Drop Shadow
- -
+
-
4
@@ -1871,14 +1871,14 @@
- -
+
-
No Border Color
- -
+
-
4
@@ -1930,14 +1930,14 @@
- -
+
-
Dark Mode Gradient Color
- -
+
-
4
@@ -2006,14 +2006,14 @@
- -
+
-
Light Mode Gradient Color
- -
+
-
4
@@ -2082,14 +2082,14 @@
- -
+
-
Disabled
- -
+
-
-
@@ -2141,14 +2141,14 @@
- -
+
-
Enable Theme Colorization
- -
+
-
4
@@ -2200,14 +2200,14 @@
- -
+
-
Dark Mode Border Color
- -
+
-
4
@@ -2276,14 +2276,14 @@
- -
+
-
Light Mode Border Color
- -
+
-
4
@@ -2571,8 +2571,195 @@
+ -
+
+
+ No Modern App Background Color
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ 1
+
+
-
+
+ No
+
+
+ -
+
+ Yes
+
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Color Treat As Transparent
+
+
+
+ -
+
+
+ Color Treat As Transparent Threshold
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ 510
+
+
+ 50
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+ Qt::LeftToRight
+
+
+ true
+
+
+ AARRGGBB
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/2867978.pngAssets/2867978.png
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Fixed
+
+
+
+ 20
+ 10
+
+
+
+
-
-
@@ -4446,6 +4633,787 @@
+
+
+ Tooltip
+
+
+ -
+
+
+
+ 10
+
+
+
+ Modify the appearance of all Tooltips
+
+
+ false
+
+
+ Qt::AlignCenter
+
+
+ true
+
+
+
+ -
+
+
-
+
+
+ Effect Type
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ 9
+
+
-
+
+ Disable
+
+
+ -
+
+ Transparent
+
+
+ -
+
+ Solid
+
+
+ -
+
+ Blur
+
+
+ -
+
+ Classic Acrylic Blur
+
+
+ -
+
+ Modern Acrylic Blur
+
+
+ -
+
+ Acrylic
+
+
+ -
+
+ Mica
+
+
+ -
+
+ Mica Alt
+
+
+ -
+
+ Use Global Setting
+
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Corner Type
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ 4
+
+
-
+
+ Dont't Change
+
+
+ -
+
+ Square Corners
+
+
+ -
+
+ Large Corners
+
+
+ -
+
+ Small Corners
+
+
+ -
+
+ Use Global Setting
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Enable Drop Shadow
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ 2
+
+
-
+
+ No
+
+
+ -
+
+ Yes
+
+
+ -
+
+ Use Global Setting
+
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ No Border Color
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ 2
+
+
-
+
+ No
+
+
+ -
+
+ Yes
+
+
+ -
+
+ Use Global Setting
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Dark Mode Gradient Color
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+ Qt::LeftToRight
+
+
+ true
+
+
+ AARRGGBB
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/2867978.pngAssets/2867978.png
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Light Mode Gradient Color
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+ Qt::LeftToRight
+
+
+ true
+
+
+ AARRGGBB
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/2867978.pngAssets/2867978.png
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Disabled
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ 2
+
+
-
+
+ No
+
+
+ -
+
+ Yes
+
+
+ -
+
+ Use Global Setting
+
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Enable Theme Colorization
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ 2
+
+
-
+
+ No
+
+
+ -
+
+ Yes
+
+
+ -
+
+ Use Global Setting
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Dark Mode Border Color
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+ Qt::LeftToRight
+
+
+ true
+
+
+ AARRGGBB
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/2867978.pngAssets/2867978.png
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+ -
+
+
+ Light Mode Border Color
+
+
+
+ -
+
+
+ 4
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+ Qt::LeftToRight
+
+
+ true
+
+
+ AARRGGBB
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/2867978.pngAssets/2867978.png
+
+
+
+ -
+
+
+ true
+
+
+
+ 0
+ 0
+
+
+
+
+
+
+
+ Assets/View-refresh.svg.pngAssets/View-refresh.svg.png
+
+
+
+
+
+
+
+ -
+
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ PointingHandCursor
+
+
+ Apply
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+
+
+
+
diff --git a/save_settings.py b/save_settings.py
index ff61f0f..ed12f79 100644
--- a/save_settings.py
+++ b/save_settings.py
@@ -66,6 +66,9 @@ def save(window: Main):
Saved.Menu.noSystemDropShadow = window.noSystemDropShadow.currentIndex()
Saved.Menu.enableImmersiveStyle = window.enableImmersiveStyle.currentIndex()
Saved.Menu.enableFluentAnimation = window.enableFluentAnimation.currentIndex()
+ Saved.Menu.noModernAppBackgroundColor = window.noModernAppBackgroundColor.currentIndex()
+ Saved.Menu.colorTreatAsTransparent = window.colorTreatAsTransparent.text()
+ Saved.Menu.colorTreatAsTransparentThreshold = window.colorTreatAsTransparentThreshold.value()
Saved.Menu.enableCustomRendering = window.enableCustomRendering.currentIndex()
Saved.Menu.effectType = window.effectType3.currentIndex()
Saved.Menu.cornerType = window.cornerType3.currentIndex()
@@ -168,3 +171,25 @@ def save(window: Main):
Saved.Menu.Separator.updateDict()
Saved.updateJSON()
applied = Apply.Menu.Separator.apply()
+
+ class Tooltip:
+ @staticmethod
+ def save(window: Main):
+ """
+ This funtion will:
+ - Fetch values from their respective fields
+ - Save values to the user_settings.json file
+ """
+ Saved.Tooltip.effectType = window.effectType4.currentIndex()
+ Saved.Tooltip.cornerType = window.cornerType4.currentIndex()
+ Saved.Tooltip.enableDropShadow = window.enableDropShadow4.currentIndex()
+ Saved.Tooltip.noBorderColor = window.noBorderColor4.currentIndex()
+ Saved.Tooltip.enableThemeColorization = window.enableThemeColorization4.currentIndex()
+ Saved.Tooltip.darkModeBorderColor = window.darkModeBorderColor4.text()
+ Saved.Tooltip.lightModeBorderColor = window.lightModeBorderColor4.text()
+ Saved.Tooltip.darkModeGradientColor = window.darkModeGradientColor4.text()
+ Saved.Tooltip.lightModeGradientColor = window.lightModeGradientColor4.text()
+ Saved.Tooltip.disabled = window.disabledEffect4.currentIndex()
+ Saved.Tooltip.updateDict()
+ Saved.updateJSON()
+ applied = Apply.Tooltip.apply()
diff --git a/ui.py b/ui.py
index 7030d38..8d00368 100644
--- a/ui.py
+++ b/ui.py
@@ -12,7 +12,7 @@
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
- MainWindow.resize(471, 476)
+ MainWindow.resize(488, 476)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -814,7 +814,7 @@ def setupUi(self, MainWindow):
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName("scrollArea")
self.scrollAreaWidgetContents = QtWidgets.QWidget()
- self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 386, 476))
+ self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 403, 588))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
@@ -828,7 +828,7 @@ def setupUi(self, MainWindow):
self.formLayout_9.setObjectName("formLayout_9")
self.label_27 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_27.setObjectName("label_27")
- self.formLayout_9.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_27)
+ self.formLayout_9.setWidget(7, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_27)
self.horizontalLayout_24 = QtWidgets.QHBoxLayout()
self.horizontalLayout_24.setSpacing(4)
self.horizontalLayout_24.setObjectName("horizontalLayout_24")
@@ -862,10 +862,10 @@ def setupUi(self, MainWindow):
self.reset_effect_type3.setObjectName("reset_effect_type3")
self.horizontalLayout_24.addWidget(self.reset_effect_type3)
self.horizontalLayout_24.setStretch(0, 1)
- self.formLayout_9.setLayout(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_24)
+ self.formLayout_9.setLayout(7, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_24)
self.label_73 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_73.setObjectName("label_73")
- self.formLayout_9.setWidget(5, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_73)
+ self.formLayout_9.setWidget(8, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_73)
self.horizontalLayout_77 = QtWidgets.QHBoxLayout()
self.horizontalLayout_77.setSpacing(4)
self.horizontalLayout_77.setObjectName("horizontalLayout_77")
@@ -893,10 +893,10 @@ def setupUi(self, MainWindow):
self.reset_corner_type3.setObjectName("reset_corner_type3")
self.horizontalLayout_77.addWidget(self.reset_corner_type3)
self.horizontalLayout_77.setStretch(0, 1)
- self.formLayout_9.setLayout(5, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_77)
+ self.formLayout_9.setLayout(8, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_77)
self.label_28 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_28.setObjectName("label_28")
- self.formLayout_9.setWidget(6, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_28)
+ self.formLayout_9.setWidget(9, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_28)
self.horizontalLayout_32 = QtWidgets.QHBoxLayout()
self.horizontalLayout_32.setSpacing(4)
self.horizontalLayout_32.setObjectName("horizontalLayout_32")
@@ -923,10 +923,10 @@ def setupUi(self, MainWindow):
self.reset_drop_shadow3.setObjectName("reset_drop_shadow3")
self.horizontalLayout_32.addWidget(self.reset_drop_shadow3)
self.horizontalLayout_32.setStretch(0, 1)
- self.formLayout_9.setLayout(6, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_32)
+ self.formLayout_9.setLayout(9, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_32)
self.label_74 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_74.setObjectName("label_74")
- self.formLayout_9.setWidget(7, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_74)
+ self.formLayout_9.setWidget(10, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_74)
self.horizontalLayout_78 = QtWidgets.QHBoxLayout()
self.horizontalLayout_78.setSpacing(4)
self.horizontalLayout_78.setObjectName("horizontalLayout_78")
@@ -952,10 +952,10 @@ def setupUi(self, MainWindow):
self.reset_border_color3.setObjectName("reset_border_color3")
self.horizontalLayout_78.addWidget(self.reset_border_color3)
self.horizontalLayout_78.setStretch(0, 1)
- self.formLayout_9.setLayout(7, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_78)
+ self.formLayout_9.setLayout(10, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_78)
self.label_29 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_29.setObjectName("label_29")
- self.formLayout_9.setWidget(11, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_29)
+ self.formLayout_9.setWidget(14, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_29)
self.horizontalLayout_33 = QtWidgets.QHBoxLayout()
self.horizontalLayout_33.setSpacing(4)
self.horizontalLayout_33.setObjectName("horizontalLayout_33")
@@ -993,10 +993,10 @@ def setupUi(self, MainWindow):
self.reset_dark_mode_gradient_color3.setObjectName("reset_dark_mode_gradient_color3")
self.horizontalLayout_33.addWidget(self.reset_dark_mode_gradient_color3)
self.horizontalLayout_33.setStretch(0, 1)
- self.formLayout_9.setLayout(11, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_33)
+ self.formLayout_9.setLayout(14, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_33)
self.label_30 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_30.setObjectName("label_30")
- self.formLayout_9.setWidget(12, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_30)
+ self.formLayout_9.setWidget(15, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_30)
self.horizontalLayout_34 = QtWidgets.QHBoxLayout()
self.horizontalLayout_34.setSpacing(4)
self.horizontalLayout_34.setObjectName("horizontalLayout_34")
@@ -1034,10 +1034,10 @@ def setupUi(self, MainWindow):
self.reset_light_mode_gradient_color3.setObjectName("reset_light_mode_gradient_color3")
self.horizontalLayout_34.addWidget(self.reset_light_mode_gradient_color3)
self.horizontalLayout_34.setStretch(0, 1)
- self.formLayout_9.setLayout(12, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_34)
+ self.formLayout_9.setLayout(15, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_34)
self.label_36 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_36.setObjectName("label_36")
- self.formLayout_9.setWidget(13, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_36)
+ self.formLayout_9.setWidget(16, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_36)
self.horizontalLayout_37 = QtWidgets.QHBoxLayout()
self.horizontalLayout_37.setObjectName("horizontalLayout_37")
self.disabledEffect3_1 = QtWidgets.QComboBox(parent=self.scrollAreaWidgetContents)
@@ -1063,10 +1063,10 @@ def setupUi(self, MainWindow):
self.reset_disabled3_1.setObjectName("reset_disabled3_1")
self.horizontalLayout_37.addWidget(self.reset_disabled3_1)
self.horizontalLayout_37.setStretch(0, 1)
- self.formLayout_9.setLayout(13, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_37)
+ self.formLayout_9.setLayout(16, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_37)
self.label_75 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_75.setObjectName("label_75")
- self.formLayout_9.setWidget(8, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_75)
+ self.formLayout_9.setWidget(11, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_75)
self.horizontalLayout_79 = QtWidgets.QHBoxLayout()
self.horizontalLayout_79.setSpacing(4)
self.horizontalLayout_79.setObjectName("horizontalLayout_79")
@@ -1092,10 +1092,10 @@ def setupUi(self, MainWindow):
self.reset_theme_colorization3_1.setObjectName("reset_theme_colorization3_1")
self.horizontalLayout_79.addWidget(self.reset_theme_colorization3_1)
self.horizontalLayout_79.setStretch(0, 1)
- self.formLayout_9.setLayout(8, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_79)
+ self.formLayout_9.setLayout(11, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_79)
self.label_40 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_40.setObjectName("label_40")
- self.formLayout_9.setWidget(9, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_40)
+ self.formLayout_9.setWidget(12, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_40)
self.horizontalLayout_38 = QtWidgets.QHBoxLayout()
self.horizontalLayout_38.setSpacing(4)
self.horizontalLayout_38.setObjectName("horizontalLayout_38")
@@ -1133,10 +1133,10 @@ def setupUi(self, MainWindow):
self.reset_dark_mode_border_color3.setObjectName("reset_dark_mode_border_color3")
self.horizontalLayout_38.addWidget(self.reset_dark_mode_border_color3)
self.horizontalLayout_38.setStretch(0, 1)
- self.formLayout_9.setLayout(9, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_38)
+ self.formLayout_9.setLayout(12, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_38)
self.label_41 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label_41.setObjectName("label_41")
- self.formLayout_9.setWidget(10, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_41)
+ self.formLayout_9.setWidget(13, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_41)
self.horizontalLayout_45 = QtWidgets.QHBoxLayout()
self.horizontalLayout_45.setSpacing(4)
self.horizontalLayout_45.setObjectName("horizontalLayout_45")
@@ -1174,7 +1174,7 @@ def setupUi(self, MainWindow):
self.reset_light_mode_border_color3.setObjectName("reset_light_mode_border_color3")
self.horizontalLayout_45.addWidget(self.reset_light_mode_border_color3)
self.horizontalLayout_45.setStretch(0, 1)
- self.formLayout_9.setLayout(10, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_45)
+ self.formLayout_9.setLayout(13, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_45)
self.label = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
self.label.setObjectName("label")
self.formLayout_9.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
@@ -1291,17 +1291,114 @@ def setupUi(self, MainWindow):
self.horizontalLayout_62.addWidget(self.reset_custom_rendering)
self.horizontalLayout_62.setStretch(0, 1)
self.formLayout_9.setLayout(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_62)
+ self.label_5 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
+ self.label_5.setObjectName("label_5")
+ self.formLayout_9.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_5)
+ self.horizontalLayout_88 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_88.setObjectName("horizontalLayout_88")
+ self.noModernAppBackgroundColor = QtWidgets.QComboBox(parent=self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.noModernAppBackgroundColor.sizePolicy().hasHeightForWidth())
+ self.noModernAppBackgroundColor.setSizePolicy(sizePolicy)
+ self.noModernAppBackgroundColor.setObjectName("noModernAppBackgroundColor")
+ self.noModernAppBackgroundColor.addItem("")
+ self.noModernAppBackgroundColor.addItem("")
+ self.horizontalLayout_88.addWidget(self.noModernAppBackgroundColor)
+ self.reset_modern_app_background_color = QtWidgets.QPushButton(parent=self.scrollAreaWidgetContents)
+ self.reset_modern_app_background_color.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_modern_app_background_color.sizePolicy().hasHeightForWidth())
+ self.reset_modern_app_background_color.setSizePolicy(sizePolicy)
+ self.reset_modern_app_background_color.setText("")
+ self.reset_modern_app_background_color.setIcon(icon)
+ self.reset_modern_app_background_color.setObjectName("reset_modern_app_background_color")
+ self.horizontalLayout_88.addWidget(self.reset_modern_app_background_color)
+ self.horizontalLayout_88.setStretch(0, 1)
+ self.formLayout_9.setLayout(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_88)
+ self.label_13 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
+ self.label_13.setObjectName("label_13")
+ self.formLayout_9.setWidget(5, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_13)
+ self.label_14 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents)
+ self.label_14.setObjectName("label_14")
+ self.formLayout_9.setWidget(6, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_14)
+ self.horizontalLayout_90 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_90.setSpacing(4)
+ self.horizontalLayout_90.setObjectName("horizontalLayout_90")
+ self.colorTreatAsTransparentThreshold = QtWidgets.QSpinBox(parent=self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.colorTreatAsTransparentThreshold.sizePolicy().hasHeightForWidth())
+ self.colorTreatAsTransparentThreshold.setSizePolicy(sizePolicy)
+ self.colorTreatAsTransparentThreshold.setMaximum(510)
+ self.colorTreatAsTransparentThreshold.setProperty("value", 50)
+ self.colorTreatAsTransparentThreshold.setObjectName("colorTreatAsTransparentThreshold")
+ self.horizontalLayout_90.addWidget(self.colorTreatAsTransparentThreshold)
+ self.reset_color_treat_as_transparent_threshold = QtWidgets.QPushButton(parent=self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_color_treat_as_transparent_threshold.sizePolicy().hasHeightForWidth())
+ self.reset_color_treat_as_transparent_threshold.setSizePolicy(sizePolicy)
+ self.reset_color_treat_as_transparent_threshold.setText("")
+ self.reset_color_treat_as_transparent_threshold.setIcon(icon)
+ self.reset_color_treat_as_transparent_threshold.setObjectName("reset_color_treat_as_transparent_threshold")
+ self.horizontalLayout_90.addWidget(self.reset_color_treat_as_transparent_threshold)
+ self.horizontalLayout_90.setStretch(0, 1)
+ self.formLayout_9.setLayout(6, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_90)
+ self.horizontalLayout_89 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_89.setSpacing(4)
+ self.horizontalLayout_89.setObjectName("horizontalLayout_89")
+ self.colorTreatAsTransparent = QtWidgets.QLineEdit(parent=self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.colorTreatAsTransparent.sizePolicy().hasHeightForWidth())
+ self.colorTreatAsTransparent.setSizePolicy(sizePolicy)
+ self.colorTreatAsTransparent.setToolTip("")
+ self.colorTreatAsTransparent.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.colorTreatAsTransparent.setReadOnly(True)
+ self.colorTreatAsTransparent.setObjectName("colorTreatAsTransparent")
+ self.horizontalLayout_89.addWidget(self.colorTreatAsTransparent)
+ self.color_treat_as_transparent_color_picker = QtWidgets.QPushButton(parent=self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.color_treat_as_transparent_color_picker.sizePolicy().hasHeightForWidth())
+ self.color_treat_as_transparent_color_picker.setSizePolicy(sizePolicy)
+ self.color_treat_as_transparent_color_picker.setText("")
+ self.color_treat_as_transparent_color_picker.setIcon(icon1)
+ self.color_treat_as_transparent_color_picker.setObjectName("color_treat_as_transparent_color_picker")
+ self.horizontalLayout_89.addWidget(self.color_treat_as_transparent_color_picker)
+ self.reset_color_treat_as_transparent = QtWidgets.QPushButton(parent=self.scrollAreaWidgetContents)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_color_treat_as_transparent.sizePolicy().hasHeightForWidth())
+ self.reset_color_treat_as_transparent.setSizePolicy(sizePolicy)
+ self.reset_color_treat_as_transparent.setText("")
+ self.reset_color_treat_as_transparent.setIcon(icon)
+ self.reset_color_treat_as_transparent.setObjectName("reset_color_treat_as_transparent")
+ self.horizontalLayout_89.addWidget(self.reset_color_treat_as_transparent)
+ self.horizontalLayout_89.setStretch(0, 1)
+ self.formLayout_9.setLayout(5, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_89)
self.verticalLayout_11.addLayout(self.formLayout_9)
+ spacerItem4 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
+ self.verticalLayout_11.addItem(spacerItem4)
self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
- spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_10.addItem(spacerItem4)
+ spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_10.addItem(spacerItem5)
self.applyButton3_1 = QtWidgets.QPushButton(parent=self.scrollAreaWidgetContents)
self.applyButton3_1.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
self.applyButton3_1.setObjectName("applyButton3_1")
self.horizontalLayout_10.addWidget(self.applyButton3_1)
- spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_10.addItem(spacerItem5)
+ spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_10.addItem(spacerItem6)
self.verticalLayout_11.addLayout(self.horizontalLayout_10)
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.verticalLayout_10.addWidget(self.scrollArea)
@@ -1489,14 +1586,14 @@ def setupUi(self, MainWindow):
self.verticalLayout_9.addLayout(self.formLayout_7)
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
- spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_8.addItem(spacerItem6)
+ spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_8.addItem(spacerItem7)
self.applyButton3_2 = QtWidgets.QPushButton(parent=self.tab_3)
self.applyButton3_2.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
self.applyButton3_2.setObjectName("applyButton3_2")
self.horizontalLayout_8.addWidget(self.applyButton3_2)
- spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_8.addItem(spacerItem7)
+ spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_8.addItem(spacerItem8)
self.verticalLayout_9.addLayout(self.horizontalLayout_8)
self.verticalLayout_9.setStretch(0, 1)
self.QTabWidget2.addTab(self.tab_3, "")
@@ -1671,14 +1768,14 @@ def setupUi(self, MainWindow):
self.verticalLayout_5.addLayout(self.formLayout_3)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
- spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_5.addItem(spacerItem8)
+ spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_5.addItem(spacerItem9)
self.applyButton3_3 = QtWidgets.QPushButton(parent=self.tab)
self.applyButton3_3.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
self.applyButton3_3.setObjectName("applyButton3_3")
self.horizontalLayout_5.addWidget(self.applyButton3_3)
- spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_5.addItem(spacerItem9)
+ spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_5.addItem(spacerItem10)
self.verticalLayout_5.addLayout(self.horizontalLayout_5)
self.verticalLayout_5.setStretch(0, 1)
self.QTabWidget2.addTab(self.tab, "")
@@ -1853,14 +1950,14 @@ def setupUi(self, MainWindow):
self.verticalLayout_6.addLayout(self.formLayout_5)
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
- spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_6.addItem(spacerItem10)
+ spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_6.addItem(spacerItem11)
self.applyButton3_4 = QtWidgets.QPushButton(parent=self.tab_6)
self.applyButton3_4.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
self.applyButton3_4.setObjectName("applyButton3_4")
self.horizontalLayout_6.addWidget(self.applyButton3_4)
- spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_6.addItem(spacerItem11)
+ spacerItem12 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_6.addItem(spacerItem12)
self.verticalLayout_6.addLayout(self.horizontalLayout_6)
self.verticalLayout_6.setStretch(0, 1)
self.QTabWidget2.addTab(self.tab_6, "")
@@ -2064,14 +2161,14 @@ def setupUi(self, MainWindow):
self.verticalLayout_7.addLayout(self.formLayout_6)
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
- spacerItem12 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_7.addItem(spacerItem12)
+ spacerItem13 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_7.addItem(spacerItem13)
self.applyButton3_5 = QtWidgets.QPushButton(parent=self.tab_7)
self.applyButton3_5.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
self.applyButton3_5.setObjectName("applyButton3_5")
self.horizontalLayout_7.addWidget(self.applyButton3_5)
- spacerItem13 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_7.addItem(spacerItem13)
+ spacerItem14 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_7.addItem(spacerItem14)
self.verticalLayout_7.addLayout(self.horizontalLayout_7)
self.verticalLayout_7.setStretch(0, 1)
self.QTabWidget2.addTab(self.tab_7, "")
@@ -2275,19 +2372,397 @@ def setupUi(self, MainWindow):
self.verticalLayout_8.addLayout(self.formLayout_8)
self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
- spacerItem14 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_9.addItem(spacerItem14)
+ spacerItem15 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_9.addItem(spacerItem15)
self.applyButton3_6 = QtWidgets.QPushButton(parent=self.tab_9)
self.applyButton3_6.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
self.applyButton3_6.setObjectName("applyButton3_6")
self.horizontalLayout_9.addWidget(self.applyButton3_6)
- spacerItem15 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
- self.horizontalLayout_9.addItem(spacerItem15)
+ spacerItem16 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_9.addItem(spacerItem16)
self.verticalLayout_8.addLayout(self.horizontalLayout_9)
self.verticalLayout_8.setStretch(0, 1)
self.QTabWidget2.addTab(self.tab_9, "")
self.verticalLayout_4.addWidget(self.QTabWidget2)
self.tabWidget.addTab(self.tab_4, "")
+ self.tab_8 = QtWidgets.QWidget()
+ self.tab_8.setObjectName("tab_8")
+ self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.tab_8)
+ self.verticalLayout_12.setObjectName("verticalLayout_12")
+ self.description1_3 = QtWidgets.QLabel(parent=self.tab_8)
+ font = QtGui.QFont()
+ font.setPointSize(10)
+ self.description1_3.setFont(font)
+ self.description1_3.setScaledContents(False)
+ self.description1_3.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
+ self.description1_3.setWordWrap(True)
+ self.description1_3.setObjectName("description1_3")
+ self.verticalLayout_12.addWidget(self.description1_3)
+ self.formLayout_10 = QtWidgets.QFormLayout()
+ self.formLayout_10.setObjectName("formLayout_10")
+ self.label_47 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_47.setObjectName("label_47")
+ self.formLayout_10.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_47)
+ self.horizontalLayout_25 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_25.setSpacing(4)
+ self.horizontalLayout_25.setObjectName("horizontalLayout_25")
+ self.effectType4 = QtWidgets.QComboBox(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.effectType4.sizePolicy().hasHeightForWidth())
+ self.effectType4.setSizePolicy(sizePolicy)
+ self.effectType4.setObjectName("effectType4")
+ self.effectType4.addItem("")
+ self.effectType4.addItem("")
+ self.effectType4.addItem("")
+ self.effectType4.addItem("")
+ self.effectType4.addItem("")
+ self.effectType4.addItem("")
+ self.effectType4.addItem("")
+ self.effectType4.addItem("")
+ self.effectType4.addItem("")
+ self.effectType4.addItem("")
+ self.horizontalLayout_25.addWidget(self.effectType4)
+ self.reset_effect_type4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.reset_effect_type4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_effect_type4.sizePolicy().hasHeightForWidth())
+ self.reset_effect_type4.setSizePolicy(sizePolicy)
+ self.reset_effect_type4.setText("")
+ self.reset_effect_type4.setIcon(icon)
+ self.reset_effect_type4.setObjectName("reset_effect_type4")
+ self.horizontalLayout_25.addWidget(self.reset_effect_type4)
+ self.horizontalLayout_25.setStretch(0, 1)
+ self.formLayout_10.setLayout(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_25)
+ self.label_76 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_76.setObjectName("label_76")
+ self.formLayout_10.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_76)
+ self.horizontalLayout_80 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_80.setSpacing(4)
+ self.horizontalLayout_80.setObjectName("horizontalLayout_80")
+ self.cornerType4 = QtWidgets.QComboBox(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.cornerType4.sizePolicy().hasHeightForWidth())
+ self.cornerType4.setSizePolicy(sizePolicy)
+ self.cornerType4.setObjectName("cornerType4")
+ self.cornerType4.addItem("")
+ self.cornerType4.addItem("")
+ self.cornerType4.addItem("")
+ self.cornerType4.addItem("")
+ self.cornerType4.addItem("")
+ self.horizontalLayout_80.addWidget(self.cornerType4)
+ self.reset_corner_type4 = QtWidgets.QPushButton(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_corner_type4.sizePolicy().hasHeightForWidth())
+ self.reset_corner_type4.setSizePolicy(sizePolicy)
+ self.reset_corner_type4.setText("")
+ self.reset_corner_type4.setIcon(icon)
+ self.reset_corner_type4.setObjectName("reset_corner_type4")
+ self.horizontalLayout_80.addWidget(self.reset_corner_type4)
+ self.horizontalLayout_80.setStretch(0, 1)
+ self.formLayout_10.setLayout(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_80)
+ self.label_48 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_48.setObjectName("label_48")
+ self.formLayout_10.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_48)
+ self.horizontalLayout_67 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_67.setSpacing(4)
+ self.horizontalLayout_67.setObjectName("horizontalLayout_67")
+ self.enableDropShadow4 = QtWidgets.QComboBox(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.enableDropShadow4.sizePolicy().hasHeightForWidth())
+ self.enableDropShadow4.setSizePolicy(sizePolicy)
+ self.enableDropShadow4.setObjectName("enableDropShadow4")
+ self.enableDropShadow4.addItem("")
+ self.enableDropShadow4.addItem("")
+ self.enableDropShadow4.addItem("")
+ self.horizontalLayout_67.addWidget(self.enableDropShadow4)
+ self.reset_drop_shadow4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.reset_drop_shadow4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_drop_shadow4.sizePolicy().hasHeightForWidth())
+ self.reset_drop_shadow4.setSizePolicy(sizePolicy)
+ self.reset_drop_shadow4.setText("")
+ self.reset_drop_shadow4.setIcon(icon)
+ self.reset_drop_shadow4.setObjectName("reset_drop_shadow4")
+ self.horizontalLayout_67.addWidget(self.reset_drop_shadow4)
+ self.horizontalLayout_67.setStretch(0, 1)
+ self.formLayout_10.setLayout(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_67)
+ self.label_77 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_77.setObjectName("label_77")
+ self.formLayout_10.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_77)
+ self.horizontalLayout_81 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_81.setSpacing(4)
+ self.horizontalLayout_81.setObjectName("horizontalLayout_81")
+ self.noBorderColor4 = QtWidgets.QComboBox(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.noBorderColor4.sizePolicy().hasHeightForWidth())
+ self.noBorderColor4.setSizePolicy(sizePolicy)
+ self.noBorderColor4.setObjectName("noBorderColor4")
+ self.noBorderColor4.addItem("")
+ self.noBorderColor4.addItem("")
+ self.noBorderColor4.addItem("")
+ self.horizontalLayout_81.addWidget(self.noBorderColor4)
+ self.reset_border_color4 = QtWidgets.QPushButton(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_border_color4.sizePolicy().hasHeightForWidth())
+ self.reset_border_color4.setSizePolicy(sizePolicy)
+ self.reset_border_color4.setText("")
+ self.reset_border_color4.setIcon(icon)
+ self.reset_border_color4.setObjectName("reset_border_color4")
+ self.horizontalLayout_81.addWidget(self.reset_border_color4)
+ self.horizontalLayout_81.setStretch(0, 1)
+ self.formLayout_10.setLayout(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_81)
+ self.label_64 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_64.setObjectName("label_64")
+ self.formLayout_10.setWidget(7, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_64)
+ self.horizontalLayout_82 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_82.setSpacing(4)
+ self.horizontalLayout_82.setObjectName("horizontalLayout_82")
+ self.darkModeGradientColor4 = QtWidgets.QLineEdit(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.darkModeGradientColor4.sizePolicy().hasHeightForWidth())
+ self.darkModeGradientColor4.setSizePolicy(sizePolicy)
+ self.darkModeGradientColor4.setToolTip("")
+ self.darkModeGradientColor4.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.darkModeGradientColor4.setReadOnly(True)
+ self.darkModeGradientColor4.setObjectName("darkModeGradientColor4")
+ self.horizontalLayout_82.addWidget(self.darkModeGradientColor4)
+ self.dark_mode_gradient_color_picker4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.dark_mode_gradient_color_picker4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.dark_mode_gradient_color_picker4.sizePolicy().hasHeightForWidth())
+ self.dark_mode_gradient_color_picker4.setSizePolicy(sizePolicy)
+ self.dark_mode_gradient_color_picker4.setText("")
+ self.dark_mode_gradient_color_picker4.setIcon(icon1)
+ self.dark_mode_gradient_color_picker4.setObjectName("dark_mode_gradient_color_picker4")
+ self.horizontalLayout_82.addWidget(self.dark_mode_gradient_color_picker4)
+ self.reset_dark_mode_gradient_color4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.reset_dark_mode_gradient_color4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_dark_mode_gradient_color4.sizePolicy().hasHeightForWidth())
+ self.reset_dark_mode_gradient_color4.setSizePolicy(sizePolicy)
+ self.reset_dark_mode_gradient_color4.setText("")
+ self.reset_dark_mode_gradient_color4.setIcon(icon)
+ self.reset_dark_mode_gradient_color4.setObjectName("reset_dark_mode_gradient_color4")
+ self.horizontalLayout_82.addWidget(self.reset_dark_mode_gradient_color4)
+ self.horizontalLayout_82.setStretch(0, 1)
+ self.formLayout_10.setLayout(7, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_82)
+ self.label_68 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_68.setObjectName("label_68")
+ self.formLayout_10.setWidget(8, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_68)
+ self.horizontalLayout_83 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_83.setSpacing(4)
+ self.horizontalLayout_83.setObjectName("horizontalLayout_83")
+ self.lightModeGradientColor4 = QtWidgets.QLineEdit(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lightModeGradientColor4.sizePolicy().hasHeightForWidth())
+ self.lightModeGradientColor4.setSizePolicy(sizePolicy)
+ self.lightModeGradientColor4.setToolTip("")
+ self.lightModeGradientColor4.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.lightModeGradientColor4.setReadOnly(True)
+ self.lightModeGradientColor4.setObjectName("lightModeGradientColor4")
+ self.horizontalLayout_83.addWidget(self.lightModeGradientColor4)
+ self.light_mode_gradient_color_picker4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.light_mode_gradient_color_picker4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.light_mode_gradient_color_picker4.sizePolicy().hasHeightForWidth())
+ self.light_mode_gradient_color_picker4.setSizePolicy(sizePolicy)
+ self.light_mode_gradient_color_picker4.setText("")
+ self.light_mode_gradient_color_picker4.setIcon(icon1)
+ self.light_mode_gradient_color_picker4.setObjectName("light_mode_gradient_color_picker4")
+ self.horizontalLayout_83.addWidget(self.light_mode_gradient_color_picker4)
+ self.reset_light_mode_gradient_color4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.reset_light_mode_gradient_color4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_light_mode_gradient_color4.sizePolicy().hasHeightForWidth())
+ self.reset_light_mode_gradient_color4.setSizePolicy(sizePolicy)
+ self.reset_light_mode_gradient_color4.setText("")
+ self.reset_light_mode_gradient_color4.setIcon(icon)
+ self.reset_light_mode_gradient_color4.setObjectName("reset_light_mode_gradient_color4")
+ self.horizontalLayout_83.addWidget(self.reset_light_mode_gradient_color4)
+ self.horizontalLayout_83.setStretch(0, 1)
+ self.formLayout_10.setLayout(8, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_83)
+ self.label_69 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_69.setObjectName("label_69")
+ self.formLayout_10.setWidget(9, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_69)
+ self.horizontalLayout_84 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_84.setObjectName("horizontalLayout_84")
+ self.disabledEffect4 = QtWidgets.QComboBox(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.disabledEffect4.sizePolicy().hasHeightForWidth())
+ self.disabledEffect4.setSizePolicy(sizePolicy)
+ self.disabledEffect4.setObjectName("disabledEffect4")
+ self.disabledEffect4.addItem("")
+ self.disabledEffect4.addItem("")
+ self.disabledEffect4.addItem("")
+ self.horizontalLayout_84.addWidget(self.disabledEffect4)
+ self.reset_disabled4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.reset_disabled4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_disabled4.sizePolicy().hasHeightForWidth())
+ self.reset_disabled4.setSizePolicy(sizePolicy)
+ self.reset_disabled4.setText("")
+ self.reset_disabled4.setIcon(icon)
+ self.reset_disabled4.setObjectName("reset_disabled4")
+ self.horizontalLayout_84.addWidget(self.reset_disabled4)
+ self.horizontalLayout_84.setStretch(0, 1)
+ self.formLayout_10.setLayout(9, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_84)
+ self.label_78 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_78.setObjectName("label_78")
+ self.formLayout_10.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_78)
+ self.horizontalLayout_85 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_85.setSpacing(4)
+ self.horizontalLayout_85.setObjectName("horizontalLayout_85")
+ self.enableThemeColorization4 = QtWidgets.QComboBox(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.enableThemeColorization4.sizePolicy().hasHeightForWidth())
+ self.enableThemeColorization4.setSizePolicy(sizePolicy)
+ self.enableThemeColorization4.setObjectName("enableThemeColorization4")
+ self.enableThemeColorization4.addItem("")
+ self.enableThemeColorization4.addItem("")
+ self.enableThemeColorization4.addItem("")
+ self.horizontalLayout_85.addWidget(self.enableThemeColorization4)
+ self.reset_theme_colorization4 = QtWidgets.QPushButton(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_theme_colorization4.sizePolicy().hasHeightForWidth())
+ self.reset_theme_colorization4.setSizePolicy(sizePolicy)
+ self.reset_theme_colorization4.setText("")
+ self.reset_theme_colorization4.setIcon(icon)
+ self.reset_theme_colorization4.setObjectName("reset_theme_colorization4")
+ self.horizontalLayout_85.addWidget(self.reset_theme_colorization4)
+ self.horizontalLayout_85.setStretch(0, 1)
+ self.formLayout_10.setLayout(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_85)
+ self.label_79 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_79.setObjectName("label_79")
+ self.formLayout_10.setWidget(5, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_79)
+ self.horizontalLayout_86 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_86.setSpacing(4)
+ self.horizontalLayout_86.setObjectName("horizontalLayout_86")
+ self.darkModeBorderColor4 = QtWidgets.QLineEdit(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.darkModeBorderColor4.sizePolicy().hasHeightForWidth())
+ self.darkModeBorderColor4.setSizePolicy(sizePolicy)
+ self.darkModeBorderColor4.setToolTip("")
+ self.darkModeBorderColor4.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.darkModeBorderColor4.setReadOnly(True)
+ self.darkModeBorderColor4.setObjectName("darkModeBorderColor4")
+ self.horizontalLayout_86.addWidget(self.darkModeBorderColor4)
+ self.dark_mode_border_color_picker4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.dark_mode_border_color_picker4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.dark_mode_border_color_picker4.sizePolicy().hasHeightForWidth())
+ self.dark_mode_border_color_picker4.setSizePolicy(sizePolicy)
+ self.dark_mode_border_color_picker4.setText("")
+ self.dark_mode_border_color_picker4.setIcon(icon1)
+ self.dark_mode_border_color_picker4.setObjectName("dark_mode_border_color_picker4")
+ self.horizontalLayout_86.addWidget(self.dark_mode_border_color_picker4)
+ self.reset_dark_mode_border_color4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.reset_dark_mode_border_color4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_dark_mode_border_color4.sizePolicy().hasHeightForWidth())
+ self.reset_dark_mode_border_color4.setSizePolicy(sizePolicy)
+ self.reset_dark_mode_border_color4.setText("")
+ self.reset_dark_mode_border_color4.setIcon(icon)
+ self.reset_dark_mode_border_color4.setObjectName("reset_dark_mode_border_color4")
+ self.horizontalLayout_86.addWidget(self.reset_dark_mode_border_color4)
+ self.horizontalLayout_86.setStretch(0, 1)
+ self.formLayout_10.setLayout(5, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_86)
+ self.label_80 = QtWidgets.QLabel(parent=self.tab_8)
+ self.label_80.setObjectName("label_80")
+ self.formLayout_10.setWidget(6, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_80)
+ self.horizontalLayout_87 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_87.setSpacing(4)
+ self.horizontalLayout_87.setObjectName("horizontalLayout_87")
+ self.lightModeBorderColor4 = QtWidgets.QLineEdit(parent=self.tab_8)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.lightModeBorderColor4.sizePolicy().hasHeightForWidth())
+ self.lightModeBorderColor4.setSizePolicy(sizePolicy)
+ self.lightModeBorderColor4.setToolTip("")
+ self.lightModeBorderColor4.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
+ self.lightModeBorderColor4.setReadOnly(True)
+ self.lightModeBorderColor4.setObjectName("lightModeBorderColor4")
+ self.horizontalLayout_87.addWidget(self.lightModeBorderColor4)
+ self.light_mode_border_color_picker4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.light_mode_border_color_picker4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.light_mode_border_color_picker4.sizePolicy().hasHeightForWidth())
+ self.light_mode_border_color_picker4.setSizePolicy(sizePolicy)
+ self.light_mode_border_color_picker4.setText("")
+ self.light_mode_border_color_picker4.setIcon(icon1)
+ self.light_mode_border_color_picker4.setObjectName("light_mode_border_color_picker4")
+ self.horizontalLayout_87.addWidget(self.light_mode_border_color_picker4)
+ self.reset_light_mode_border_color4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.reset_light_mode_border_color4.setEnabled(True)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.reset_light_mode_border_color4.sizePolicy().hasHeightForWidth())
+ self.reset_light_mode_border_color4.setSizePolicy(sizePolicy)
+ self.reset_light_mode_border_color4.setText("")
+ self.reset_light_mode_border_color4.setIcon(icon)
+ self.reset_light_mode_border_color4.setObjectName("reset_light_mode_border_color4")
+ self.horizontalLayout_87.addWidget(self.reset_light_mode_border_color4)
+ self.horizontalLayout_87.setStretch(0, 1)
+ self.formLayout_10.setLayout(6, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_87)
+ self.verticalLayout_12.addLayout(self.formLayout_10)
+ self.horizontalLayout_15 = QtWidgets.QHBoxLayout()
+ self.horizontalLayout_15.setObjectName("horizontalLayout_15")
+ spacerItem17 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_15.addItem(spacerItem17)
+ self.applyButton4 = QtWidgets.QPushButton(parent=self.tab_8)
+ self.applyButton4.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor))
+ self.applyButton4.setObjectName("applyButton4")
+ self.horizontalLayout_15.addWidget(self.applyButton4)
+ spacerItem18 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
+ self.horizontalLayout_15.addItem(spacerItem18)
+ self.verticalLayout_12.addLayout(self.horizontalLayout_15)
+ self.verticalLayout_12.setStretch(1, 1)
+ self.tabWidget.addTab(self.tab_8, "")
self.verticalLayout_2.addWidget(self.tabWidget)
MainWindow.setCentralWidget(self.centralwidget)
@@ -2309,6 +2784,13 @@ def setupUi(self, MainWindow):
self.disabledEffect3_1.setCurrentIndex(2)
self.enableThemeColorization3_1.setCurrentIndex(2)
self.enableImmersiveStyle.setCurrentIndex(1)
+ self.noModernAppBackgroundColor.setCurrentIndex(1)
+ self.effectType4.setCurrentIndex(9)
+ self.cornerType4.setCurrentIndex(4)
+ self.enableDropShadow4.setCurrentIndex(2)
+ self.noBorderColor4.setCurrentIndex(2)
+ self.disabledEffect4.setCurrentIndex(2)
+ self.enableThemeColorization4.setCurrentIndex(2)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
@@ -2455,6 +2937,12 @@ def retranslateUi(self, MainWindow):
self.label_4.setText(_translate("MainWindow", "Enable Custom Rendering"))
self.enableCustomRendering.setItemText(0, _translate("MainWindow", "No"))
self.enableCustomRendering.setItemText(1, _translate("MainWindow", "Yes"))
+ self.label_5.setText(_translate("MainWindow", "No Modern App Background Color"))
+ self.noModernAppBackgroundColor.setItemText(0, _translate("MainWindow", "No"))
+ self.noModernAppBackgroundColor.setItemText(1, _translate("MainWindow", "Yes"))
+ self.label_13.setText(_translate("MainWindow", "Color Treat As Transparent"))
+ self.label_14.setText(_translate("MainWindow", "Color Treat As Transparent Threshold"))
+ self.colorTreatAsTransparent.setPlaceholderText(_translate("MainWindow", "AARRGGBB"))
self.applyButton3_1.setText(_translate("MainWindow", "Apply"))
self.QTabWidget2.setTabText(self.QTabWidget2.indexOf(self.tab_5), _translate("MainWindow", "General"))
self.label_54.setText(_translate("MainWindow", "Fade Out Time"))
@@ -2526,3 +3014,47 @@ def retranslateUi(self, MainWindow):
self.applyButton3_6.setText(_translate("MainWindow", "Apply"))
self.QTabWidget2.setTabText(self.QTabWidget2.indexOf(self.tab_9), _translate("MainWindow", "Separator"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("MainWindow", "Menu"))
+ self.description1_3.setText(_translate("MainWindow", "Modify the appearance of all Tooltips"))
+ self.label_47.setText(_translate("MainWindow", "Effect Type"))
+ self.effectType4.setItemText(0, _translate("MainWindow", "Disable"))
+ self.effectType4.setItemText(1, _translate("MainWindow", "Transparent"))
+ self.effectType4.setItemText(2, _translate("MainWindow", "Solid"))
+ self.effectType4.setItemText(3, _translate("MainWindow", "Blur"))
+ self.effectType4.setItemText(4, _translate("MainWindow", "Classic Acrylic Blur"))
+ self.effectType4.setItemText(5, _translate("MainWindow", "Modern Acrylic Blur"))
+ self.effectType4.setItemText(6, _translate("MainWindow", "Acrylic"))
+ self.effectType4.setItemText(7, _translate("MainWindow", "Mica"))
+ self.effectType4.setItemText(8, _translate("MainWindow", "Mica Alt"))
+ self.effectType4.setItemText(9, _translate("MainWindow", "Use Global Setting"))
+ self.label_76.setText(_translate("MainWindow", "Corner Type"))
+ self.cornerType4.setItemText(0, _translate("MainWindow", "Dont't Change"))
+ self.cornerType4.setItemText(1, _translate("MainWindow", "Square Corners"))
+ self.cornerType4.setItemText(2, _translate("MainWindow", "Large Corners"))
+ self.cornerType4.setItemText(3, _translate("MainWindow", "Small Corners"))
+ self.cornerType4.setItemText(4, _translate("MainWindow", "Use Global Setting"))
+ self.label_48.setText(_translate("MainWindow", "Enable Drop Shadow"))
+ self.enableDropShadow4.setItemText(0, _translate("MainWindow", "No"))
+ self.enableDropShadow4.setItemText(1, _translate("MainWindow", "Yes"))
+ self.enableDropShadow4.setItemText(2, _translate("MainWindow", "Use Global Setting"))
+ self.label_77.setText(_translate("MainWindow", "No Border Color"))
+ self.noBorderColor4.setItemText(0, _translate("MainWindow", "No"))
+ self.noBorderColor4.setItemText(1, _translate("MainWindow", "Yes"))
+ self.noBorderColor4.setItemText(2, _translate("MainWindow", "Use Global Setting"))
+ self.label_64.setText(_translate("MainWindow", "Dark Mode Gradient Color"))
+ self.darkModeGradientColor4.setPlaceholderText(_translate("MainWindow", "AARRGGBB"))
+ self.label_68.setText(_translate("MainWindow", "Light Mode Gradient Color"))
+ self.lightModeGradientColor4.setPlaceholderText(_translate("MainWindow", "AARRGGBB"))
+ self.label_69.setText(_translate("MainWindow", "Disabled"))
+ self.disabledEffect4.setItemText(0, _translate("MainWindow", "No"))
+ self.disabledEffect4.setItemText(1, _translate("MainWindow", "Yes"))
+ self.disabledEffect4.setItemText(2, _translate("MainWindow", "Use Global Setting"))
+ self.label_78.setText(_translate("MainWindow", "Enable Theme Colorization"))
+ self.enableThemeColorization4.setItemText(0, _translate("MainWindow", "No"))
+ self.enableThemeColorization4.setItemText(1, _translate("MainWindow", "Yes"))
+ self.enableThemeColorization4.setItemText(2, _translate("MainWindow", "Use Global Setting"))
+ self.label_79.setText(_translate("MainWindow", "Dark Mode Border Color"))
+ self.darkModeBorderColor4.setPlaceholderText(_translate("MainWindow", "AARRGGBB"))
+ self.label_80.setText(_translate("MainWindow", "Light Mode Border Color"))
+ self.lightModeBorderColor4.setPlaceholderText(_translate("MainWindow", "AARRGGBB"))
+ self.applyButton4.setText(_translate("MainWindow", "Apply"))
+ self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_8), _translate("MainWindow", "Tooltip"))
diff --git a/ui_to_py.bat b/ui_to_py.bat
index e25fcdd..de22ed8 100644
--- a/ui_to_py.bat
+++ b/ui_to_py.bat
@@ -1 +1 @@
-pyuic6 -o ui.py main.py
\ No newline at end of file
+pyuic6 -o ui.py main.ui
\ No newline at end of file
diff --git a/user_settings.json b/user_settings.json
index 3157f52..aaccf6f 100644
--- a/user_settings.json
+++ b/user_settings.json
@@ -28,6 +28,9 @@
"Enable Immersive Style": 1,
"Enable Custom Rendering": 0,
"Enable Fluent Animation": 0,
+ "No Modern App Background Color": 1,
+ "Color Treat As Transparent": "",
+ "Color Treat As Transparent Threshold": 50,
"Effect Type": 9,
"Corner Type": 4,
"Enable Drop Shadow": 2,
@@ -48,8 +51,8 @@
},
"Disabled Hot": {
"Corner Radius": 8,
- "Dark Mode Color": "0",
- "Light Mode Color": "0",
+ "Dark Mode Color": "",
+ "Light Mode Color": "",
"Enable Theme Colorization": 0,
"Disabled": 0
},
@@ -76,5 +79,17 @@
"Enable Theme Colorization": 0,
"Disabled": 0
}
+ },
+ "Tooltip": {
+ "Effect Type": 9,
+ "Corner Type": 4,
+ "Enable Drop Shadow": 2,
+ "No Border Color": 2,
+ "Enable Theme Colorization": 2,
+ "Dark Mode Border Color": "",
+ "Light Mode Border Color": "",
+ "Dark Mode Gradient Color": "",
+ "Light Mode Gradient Color": "",
+ "Disabled": 2
}
}