uiux(StatusTooltip): change color according to theme
It was requested to change the tooltip to black an white and white on black in dark and light themes respectively. This commit changes the colors accordingly.
This commit is contained in:
parent
84b6b04145
commit
0daf355f54
|
@ -68,4 +68,6 @@ Theme {
|
|||
property color roundedButtonDisabledBackgroundColor: buttonDisabledBackgroundColor
|
||||
property color roundedButtonSecondaryDisabledForegroundColor: roundedButtonForegroundColor
|
||||
property color roundedButtonSecondaryDisabledBackgroundColor: buttonDisabledForegroundColor
|
||||
property color tooltipBackgroundColor: white
|
||||
property color tooltipForegroundColor: black
|
||||
}
|
||||
|
|
|
@ -67,4 +67,6 @@ Theme {
|
|||
property color roundedButtonDisabledBackgroundColor: buttonDisabledBackgroundColor
|
||||
property color roundedButtonSecondaryDisabledForegroundColor: white
|
||||
property color roundedButtonSecondaryDisabledBackgroundColor: buttonDisabledForegroundColor
|
||||
property color tooltipBackgroundColor: black
|
||||
property color tooltipForegroundColor: white
|
||||
}
|
||||
|
|
|
@ -48,6 +48,8 @@ QtObject {
|
|||
property color roundedButtonForegroundColor
|
||||
property color roundedButtonBackgroundColor
|
||||
property color roundedButtonSecondaryBackgroundColor
|
||||
property color tooltipBackgroundColor
|
||||
property color tooltipForegroundColor
|
||||
|
||||
property int xlPadding: 32
|
||||
property int bigPadding: 24
|
||||
|
|
|
@ -15,7 +15,7 @@ ToolTip {
|
|||
id: tooltipBg
|
||||
Rectangle {
|
||||
id: tooltipContentBg
|
||||
color: Style.current.blue
|
||||
color: Style.current.tooltipBackgroundColor
|
||||
radius: Style.current.radius
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
@ -33,9 +33,10 @@ ToolTip {
|
|||
contentItem: StyledText {
|
||||
id: textContent
|
||||
text: tooltip.text
|
||||
color: Style.current.white
|
||||
color: Style.current.tooltipForegroundColor
|
||||
wrapMode: Text.WordWrap
|
||||
font.pixelSize: 13
|
||||
font.weight: Font.DemiBold
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue