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:
Pascal Precht 2021-01-19 16:26:34 +01:00 committed by Iuri Matias
parent 84b6b04145
commit 0daf355f54
4 changed files with 9 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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

View File

@ -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
}
}