mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-13 07:06:58 +00:00
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.
44 lines
1.1 KiB
QML
44 lines
1.1 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import "../../imports"
|
|
import "../../shared"
|
|
|
|
ToolTip {
|
|
id: tooltip
|
|
implicitWidth: tooltip.width
|
|
leftPadding: Style.current.padding
|
|
rightPadding: Style.current.padding
|
|
topPadding: Style.current.smallPadding
|
|
bottomPadding: Style.current.smallPadding
|
|
delay: 200
|
|
background: Item {
|
|
id: tooltipBg
|
|
Rectangle {
|
|
id: tooltipContentBg
|
|
color: Style.current.tooltipBackgroundColor
|
|
radius: Style.current.radius
|
|
anchors.fill: parent
|
|
}
|
|
Rectangle {
|
|
color: tooltipContentBg.color
|
|
height: 24
|
|
width: 24
|
|
rotation: 135
|
|
radius: 1
|
|
x: tooltipBg.width / 2 - width / 2
|
|
anchors.top: tooltipContentBg.bottom
|
|
anchors.topMargin: -20
|
|
}
|
|
}
|
|
contentItem: StyledText {
|
|
id: textContent
|
|
text: tooltip.text
|
|
color: Style.current.tooltipForegroundColor
|
|
wrapMode: Text.WordWrap
|
|
font.pixelSize: 13
|
|
font.weight: Font.DemiBold
|
|
horizontalAlignment: Text.AlignHCenter
|
|
}
|
|
}
|
|
|