Adjusted padding and margin of the StatusTooltip component as design. Fixes #1817

This commit is contained in:
ace-smart 2021-02-10 04:17:09 +04:00 committed by Iuri Matias
parent 849be39ee2
commit b1434345f7
1 changed files with 5 additions and 3 deletions

View File

@ -5,9 +5,9 @@ import "../../shared"
ToolTip { ToolTip {
id: tooltip id: tooltip
implicitWidth: tooltip.width implicitWidth: textContent.implicitWidth + Style.current.bigPadding
leftPadding: Style.current.padding leftPadding: Style.current.smallPadding
rightPadding: Style.current.padding rightPadding: Style.current.smallPadding
topPadding: Style.current.smallPadding topPadding: Style.current.smallPadding
bottomPadding: Style.current.smallPadding bottomPadding: Style.current.smallPadding
delay: 200 delay: 200
@ -18,6 +18,7 @@ ToolTip {
color: Style.current.tooltipBackgroundColor color: Style.current.tooltipBackgroundColor
radius: Style.current.radius radius: Style.current.radius
anchors.fill: parent anchors.fill: parent
anchors.bottomMargin: Style.current.smallPadding
} }
Rectangle { Rectangle {
color: tooltipContentBg.color color: tooltipContentBg.color
@ -38,6 +39,7 @@ ToolTip {
font.pixelSize: 13 font.pixelSize: 13
font.weight: Font.Medium font.weight: Font.Medium
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
bottomPadding: Style.current.smallPadding
} }
} }