on xenial help sign in
Simplify checks in StyleTool.qml
8431052Michał Sawicz
plugins/Dash/StyleTool.qml+2−2
@@ -36,10 +36,10 @@ QtObject {
36 }
36 }
37
37
38 /// Color used for text and symbolic icons
38 /// Color used for text and symbolic icons
39− readonly property color foreground: style && "foreground-color" in style ? style["foreground-color"] : d.defaultDark
39+ readonly property color foreground: "foreground-color" in style ? style["foreground-color"] : d.defaultDark
40
40
41 /// Color used for the overall background
41 /// Color used for the overall background
42− readonly property color background: style && "background-color" in style ? style["background-color"] : "transparent"
42+ readonly property color background: "background-color" in style ? style["background-color"] : "transparent"
43
43
44 /*! \brief Luminance threshold for switching between fore and background color
44 /*! \brief Luminance threshold for switching between fore and background color
45
45