aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2021-12-06 16:12:53 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2021-12-06 15:14:18 +0000
commitc9fd84ac0ca95a481a9de11c0f3e656048050511 (patch)
tree23aabc6ed0b19c13eea803f3fd383b33c693a86c
parentcc64384d3a0193f319d437f624adfc740c62af0c (diff)
Define isLightTheme in values
Change-Id: I229fdc2e1b1f9890a5a8c5e98c57329a7e3a6fff Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Values.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Values.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Values.qml
index e932e8e496..adc3b4ef36 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Values.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Values.qml
@@ -201,6 +201,8 @@ QtObject {
// Theme Colors
+ property bool isLightTheme: themeControlBackground.hsvValue > themeTextColor.hsvValue
+
property string themePanelBackground: Theme.color(Theme.DSpanelBackground)
property string themeInteraction: Theme.color(Theme.DSinteraction)
@@ -211,7 +213,7 @@ QtObject {
property string themeAliasIconChecked: Theme.color(Theme.DSnavigatorAliasIconChecked)
// Control colors
- property string themeControlBackground: Theme.color(Theme.DScontrolBackground)
+ property color themeControlBackground: Theme.color(Theme.DScontrolBackground)
property string themeControlBackgroundInteraction: Theme.color(Theme.DScontrolBackgroundInteraction)
property string themeControlBackgroundDisabled: Theme.color(Theme.DScontrolBackgroundDisabled)
property string themeControlBackgroundGlobalHover: Theme.color(Theme.DScontrolBackgroundGlobalHover)
@@ -226,7 +228,7 @@ QtObject {
property string themeBackgroundColorAlternate: Theme.color(Theme.DSBackgroundColorAlternate)
// Text colors
- property string themeTextColor: Theme.color(Theme.DStextColor)
+ property color themeTextColor: Theme.color(Theme.DStextColor)
property string themeTextColorDisabled: Theme.color(Theme.DStextColorDisabled)
property string themeTextSelectionColor: Theme.color(Theme.DStextSelectionColor)
property string themeTextSelectedTextColor: Theme.color(Theme.DStextSelectedTextColor)