From a48dccba353775caa068829c3b4e33cfd87a54b5 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 24 Sep 2023 02:21:33 -0700 Subject: [PATCH] Config: Make sure light, dark themes have default placeholder text colors --- angrmanagement/config/color_schemes.py | 2 ++ angrmanagement/config/config_manager.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/angrmanagement/config/color_schemes.py b/angrmanagement/config/color_schemes.py index 06a82c199..8cf6f3cdf 100644 --- a/angrmanagement/config/color_schemes.py +++ b/angrmanagement/config/color_schemes.py @@ -57,6 +57,7 @@ "palette_alternatebase": QColor(0xF7, 0xF7, 0xF7, 0xFF), "palette_tooltipbase": QColor(0xFF, 0xFF, 0xDC, 0xFF), "palette_tooltiptext": QColor(0x00, 0x00, 0x00, 0xFF), + "palette_placeholdertext": QColor(0x00, 0x00, 0x00, 0xAF), "palette_text": QColor(0x00, 0x00, 0x00, 0xFF), "palette_button": QColor(0xEF, 0xEF, 0xEF, 0xFF), "palette_buttontext": QColor(0x00, 0x00, 0x00, 0xFF), @@ -154,6 +155,7 @@ "palette_alternatebase": QColor(0x1D, 0x1D, 0x1D), "palette_tooltipbase": QColor(0x35, 0x35, 0x35), "palette_tooltiptext": QColor(0xFF, 0xFF, 0xFF), + "palette_placeholdertext": QColor(0xF8, 0xF8, 0xF8, 0xBB), "palette_text": QColor(0xE0, 0xE0, 0xE0), "palette_button": QColor(0x35, 0x35, 0x35), "palette_buttontext": QColor(0xE0, 0xE0, 0xE0), diff --git a/angrmanagement/config/config_manager.py b/angrmanagement/config/config_manager.py index 1910937af..857ac764d 100644 --- a/angrmanagement/config/config_manager.py +++ b/angrmanagement/config/config_manager.py @@ -206,7 +206,7 @@ def bool_serializer(config_option, value: bool) -> str: CE("palette_alternatebase", QColor, QColor(0xF7, 0xF7, 0xF7, 0xFF)), CE("palette_tooltipbase", QColor, QColor(0xFF, 0xFF, 0xDC, 0xFF)), CE("palette_tooltiptext", QColor, QColor(0x00, 0x00, 0x00, 0xFF)), - CE("palette_placeholdertext", QColor, QColor(0x00, 0x00, 0x00, 0xFF)), + CE("palette_placeholdertext", QColor, QColor(0x00, 0x00, 0x00, 0xAF)), CE("palette_text", QColor, QColor(0x00, 0x00, 0x00, 0xFF)), CE("palette_button", QColor, QColor(0xEF, 0xEF, 0xEF, 0xFF)), CE("palette_buttontext", QColor, QColor(0x00, 0x00, 0x00, 0xFF)),