aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/overview/common/widgets/StyledToolTip.qml
blob: 4d4678c8c0af250e4c27324d11d8ada3967a1fc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick
import QtQuick.Controls
import "."

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
    }
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage