mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-06 23:39:27 -05:00
26 lines
755 B
QML
26 lines
755 B
QML
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
ToolTip {
|
|
id: root
|
|
property bool extraVisibleCondition: true
|
|
property bool alternativeVisibleCondition: false
|
|
readonly property bool internalVisibleCondition: (extraVisibleCondition && (parent.hovered === undefined || parent?.hovered)) || alternativeVisibleCondition
|
|
verticalPadding: 5
|
|
horizontalPadding: 10
|
|
background: null
|
|
|
|
visible: internalVisibleCondition
|
|
|
|
contentItem: StyledToolTipContent {
|
|
id: contentItem
|
|
text: root.text
|
|
shown: root.internalVisibleCondition
|
|
horizontalPadding: root.horizontalPadding
|
|
verticalPadding: root.verticalPadding
|
|
}
|
|
}
|