aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kampas <martin.kampas@jolla.com>2016-11-17 10:54:20 +0100
committerJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2016-11-23 07:17:53 +0000
commitfe403bc6547b6e84b64a428c50a53e235ff88656 (patch)
treec7f9f788c53542c25194020b19894a827fa9f65d
parent7a4e43dc5c4101498911cb9aa64d4b0011443d54 (diff)
Bench: Improve dark style for disabled buttons
This is to distinguish enabled and disabled button visually. Other issues remain - the fusion style is not ready for use with dark palette as it uses QColor::lighter to derive disabled colors etc. Change-Id: I9e7b986d301496c889f8cf9c0fcfbfc0b76c102d Reviewed-by: Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>
-rw-r--r--src/bench/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bench/main.cpp b/src/bench/main.cpp
index ac91d64..9c8b519 100644
--- a/src/bench/main.cpp
+++ b/src/bench/main.cpp
@@ -168,6 +168,7 @@ void Application::setDarkStyle()
palette.setColor(QPalette::Text, QColor("#F0F0F0"));
palette.setColor(QPalette::Button, QColor("#353535"));
palette.setColor(QPalette::ButtonText, QColor("#FFFFFF"));
+ palette.setColor(QPalette::Disabled, QPalette::ButtonText, QColor("#A0A0A0"));
palette.setColor(QPalette::BrightText, QColor("#D0021B"));
palette.setColor(QPalette::Highlight, QColor("#F19300"));
palette.setColor(QPalette::HighlightedText, QColor("#1C1C1C"));