1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 15:02:50 -05:00

settings: add IPCs to open specific settings tabs

This commit is contained in:
bbedward
2025-12-04 14:31:20 -05:00
parent 2aabee453b
commit 397a8c275d
9 changed files with 256 additions and 35 deletions

View File

@@ -21,29 +21,29 @@ MouseArea {
color: Qt.rgba(stateColor.r, stateColor.g, stateColor.b, stateOpacity)
}
Timer {
id: hoverDelay
interval: 1000
repeat: false
onTriggered: {
const p = root.mapToItem(null, parent.width / 2, parent.height + Theme.spacingXS)
tooltip.show(I18n.tr(""), p.x, p.y, null)
tooltip.show(root.tooltipText, root, 0, 0, "bottom");
}
}
onEntered: {
if (!tooltipText) { return }
hoverDelay.restart()
if (!tooltipText)
return;
hoverDelay.restart();
}
onExited: {
if (!tooltipText) { return }
hoverDelay.stop()
tooltip.hide()
if (!tooltipText)
return;
hoverDelay.stop();
tooltip.hide();
}
DankTooltip {
DankTooltipV2 {
id: tooltip
}
}