From c9fd84ac0ca95a481a9de11c0f3e656048050511 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 6 Dec 2021 16:12:53 +0100 Subject: Define isLightTheme in values Change-Id: I229fdc2e1b1f9890a5a8c5e98c57329a7e3a6fff Reviewed-by: Thomas Hartmann --- .../propertyEditorQmlSources/imports/StudioTheme/Values.qml | 6 ++++-- 1 file 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) -- cgit v1.2.1