mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Tooltip: removed auto-positionning relative to the bar. as many tooltips are used in panels
- still a few edge cases to work on
This commit is contained in:
@@ -11,6 +11,9 @@ Rectangle {
|
||||
|
||||
property string icon
|
||||
property string tooltipText
|
||||
property bool tooltipPositionAbove: false
|
||||
property bool tooltipPositionLeft: false
|
||||
property bool tooltipPositionRight: false
|
||||
property bool enabled: true
|
||||
property bool allowClickWhenDisabled: false
|
||||
property bool hovering: false
|
||||
@@ -65,7 +68,9 @@ Rectangle {
|
||||
NTooltip {
|
||||
id: tooltip
|
||||
target: root
|
||||
positionAbove: Settings.data.bar.position === "bottom"
|
||||
positionAbove: root.tooltipPositionAbove
|
||||
positionLeft: root.tooltipPositionLeft
|
||||
positionRight: root.tooltipPositionRight
|
||||
text: root.tooltipText
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user