1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

meta: Vertical Bar, Notification Popup Position Options, ++

- CC Color picker widget
- Tooltips in more places
- Attempt to improve niri screen transitiosn
This commit is contained in:
bbedward
2025-09-30 09:51:18 -04:00
parent d280505b9f
commit e875d1a5d7
84 changed files with 4937 additions and 2019 deletions

View File

@@ -19,9 +19,16 @@ Flow {
property int textSize: Theme.fontSizeMedium
signal selectionChanged(int index, bool selected)
signal animationCompleted()
spacing: Theme.spacingXS
Timer {
id: animationTimer
interval: Theme.shortDuration
onTriggered: root.animationCompleted()
}
function isSelected(index) {
if (multiSelect) {
return repeater.itemAt(index)?.selected || false
@@ -43,6 +50,7 @@ Flow {
currentSelection = newSelection
selectionChanged(index, !isCurrentlySelected)
animationTimer.restart()
} else {
const oldIndex = currentIndex
currentIndex = index
@@ -50,6 +58,7 @@ Flow {
if (oldIndex !== index && oldIndex >= 0) {
selectionChanged(oldIndex, false)
}
animationTimer.restart()
}
}