forked from qt-creator/qt-creator
Define isLightTheme in values
Change-Id: I229fdc2e1b1f9890a5a8c5e98c57329a7e3a6fff Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -201,6 +201,8 @@ QtObject {
|
|||||||
|
|
||||||
// Theme Colors
|
// Theme Colors
|
||||||
|
|
||||||
|
property bool isLightTheme: themeControlBackground.hsvValue > themeTextColor.hsvValue
|
||||||
|
|
||||||
property string themePanelBackground: Theme.color(Theme.DSpanelBackground)
|
property string themePanelBackground: Theme.color(Theme.DSpanelBackground)
|
||||||
|
|
||||||
property string themeInteraction: Theme.color(Theme.DSinteraction)
|
property string themeInteraction: Theme.color(Theme.DSinteraction)
|
||||||
@@ -211,7 +213,7 @@ QtObject {
|
|||||||
property string themeAliasIconChecked: Theme.color(Theme.DSnavigatorAliasIconChecked)
|
property string themeAliasIconChecked: Theme.color(Theme.DSnavigatorAliasIconChecked)
|
||||||
|
|
||||||
// Control colors
|
// 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 themeControlBackgroundInteraction: Theme.color(Theme.DScontrolBackgroundInteraction)
|
||||||
property string themeControlBackgroundDisabled: Theme.color(Theme.DScontrolBackgroundDisabled)
|
property string themeControlBackgroundDisabled: Theme.color(Theme.DScontrolBackgroundDisabled)
|
||||||
property string themeControlBackgroundGlobalHover: Theme.color(Theme.DScontrolBackgroundGlobalHover)
|
property string themeControlBackgroundGlobalHover: Theme.color(Theme.DScontrolBackgroundGlobalHover)
|
||||||
@@ -226,7 +228,7 @@ QtObject {
|
|||||||
property string themeBackgroundColorAlternate: Theme.color(Theme.DSBackgroundColorAlternate)
|
property string themeBackgroundColorAlternate: Theme.color(Theme.DSBackgroundColorAlternate)
|
||||||
|
|
||||||
// Text colors
|
// 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 themeTextColorDisabled: Theme.color(Theme.DStextColorDisabled)
|
||||||
property string themeTextSelectionColor: Theme.color(Theme.DStextSelectionColor)
|
property string themeTextSelectionColor: Theme.color(Theme.DStextSelectionColor)
|
||||||
property string themeTextSelectedTextColor: Theme.color(Theme.DStextSelectedTextColor)
|
property string themeTextSelectedTextColor: Theme.color(Theme.DStextSelectedTextColor)
|
||||||
|
Reference in New Issue
Block a user