From 08fb6cd51b6eb99b6e343b8d69103a2ba3bb2df6 Mon Sep 17 00:00:00 2001 From: conradolandia Date: Tue, 10 Oct 2023 19:29:36 -0500 Subject: [PATCH] Add DISABLED_COLOR variable to palettes dark/light. Add @conradolandia to the list of contributors. --- AUTHORS.rst | 1 + qdarkstyle/dark/palette.py | 3 +++ qdarkstyle/light/palette.py | 3 +++ 3 files changed, 7 insertions(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index c849e1e..9d5f3d8 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -32,5 +32,6 @@ insert your information after the last one. - 2021 - `juanis2112 `__ - improvements. - 2021 - `ccordoba12 `__ - mainteiner/improvements. - 2021 - Julian Gilbey ``jdg@debian.org`` - bug fixes. +- 2023 - Andrés Conrado Montoya Acosta `conradolandia ` - improvements. And all people that reported bugs, thank you all! diff --git a/qdarkstyle/dark/palette.py b/qdarkstyle/dark/palette.py index 23a1d1f..d5a8d1d 100644 --- a/qdarkstyle/dark/palette.py +++ b/qdarkstyle/dark/palette.py @@ -33,4 +33,7 @@ class DarkPalette(Palette): COLOR_ACCENT_4 = Blue.B70 COLOR_ACCENT_5 = Blue.B80 + # Color for disabled elements + COLOR_DISABLED = Gray.B70 + OPACITY_TOOLTIP = 230 diff --git a/qdarkstyle/light/palette.py b/qdarkstyle/light/palette.py index 2abfeed..0d84a57 100644 --- a/qdarkstyle/light/palette.py +++ b/qdarkstyle/light/palette.py @@ -31,5 +31,8 @@ class LightPalette(Palette): COLOR_ACCENT_3 = Blue.B90 COLOR_ACCENT_4 = Blue.B80 COLOR_ACCENT_5 = Blue.B70 + + # Color for disabled elements + COLOR_DISABLED = Gray.B80 OPACITY_TOOLTIP = 230