aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/stylehelper.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@theqtcompany.com>2016-03-02 18:25:42 +0100
committerAlessandro Portale <alessandro.portale@theqtcompany.com>2016-03-02 17:32:42 +0000
commit0f8e3f20007733e9083512157d8c8d4a1cc6ceaf (patch)
treea55b68580c44e874a793cfb504aa76290c5e99b9 /src/libs/utils/stylehelper.cpp
parenta6d43e317b35a95aa042ebfa54810175a97cfcb6 (diff)
Flat themes: Implement Diana's separators
The flat theme as defined by Diana has the motto: "Remove unnecessary lines, avoid gradients". This patch implemets that for the flat themes, while leaving the default theme unchanged. The only tweak that touches all styles is that "Styled Separator" has for consitency now the same look as standard toolbar separators. Change-Id: I80ab0d9bf5ca20ab0daa57baf5a7e095a4a0c653 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/stylehelper.cpp')
-rw-r--r--src/libs/utils/stylehelper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/utils/stylehelper.cpp b/src/libs/utils/stylehelper.cpp
index 9431cbe18d8..8f9dea193e9 100644
--- a/src/libs/utils/stylehelper.cpp
+++ b/src/libs/utils/stylehelper.cpp
@@ -145,6 +145,11 @@ QColor StyleHelper::borderColor(bool lightColored)
return result;
}
+QColor StyleHelper::separatorColor()
+{
+ return borderColor(false);
+}
+
// We try to ensure that the actual color used are within
// reasonalbe bounds while generating the actual baseColor
// from the users request.