1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-04 12:38:31 -04:00

qs: integrate with dank-qml-common

This commit is contained in:
bbedward
2026-07-16 09:24:37 -04:00
parent 5dfd875b9e
commit 92ba96d9f9
127 changed files with 452 additions and 14660 deletions
+2 -30
View File
@@ -1,31 +1,3 @@
import QtQuick
import qs.Common
import qs.DankCommon.Widgets as DankCommon
Rectangle {
id: root
property bool shown: true
property bool blinkOn: true
readonly property int flashTime: Qt.styleHints.cursorFlashTime
function resetBlink() {
blinkOn = true;
blinkTimer.restart();
}
width: 2
radius: 1
color: Theme.primary
visible: shown && blinkOn
onShownChanged: resetBlink()
Timer {
id: blinkTimer
running: root.shown && root.flashTime > 1
interval: root.flashTime / 2
repeat: true
onTriggered: root.blinkOn = !root.blinkOn
}
}
DankCommon.DankTextCursor {}