themed tooltips
This commit is contained in:
parent
79a5014a37
commit
e3ba80fd0d
5 changed files with 27 additions and 4 deletions
22
modules/BarTooltip.qml
Normal file
22
modules/BarTooltip.qml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import "." as M
|
||||
|
||||
ToolTip {
|
||||
id: tip
|
||||
padding: 6
|
||||
|
||||
background: Rectangle {
|
||||
color: M.Theme.base01
|
||||
border.color: M.Theme.base03
|
||||
border.width: 1
|
||||
radius: 4
|
||||
}
|
||||
|
||||
contentItem: Text {
|
||||
text: tip.text
|
||||
color: M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue