1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-12 16:52:10 -04:00

feat: Refactor DankBar w/New granular options

- New background toggles
- New maxIcon & maxText widget sizes (global)
- Dedicated M3 padding slider
- New independent icon scale options
- Updated logic to improve performance on single & dual bar modes
This commit is contained in:
purian23
2026-02-23 23:18:27 -05:00
parent b8014fd4df
commit 2b7fd36322
37 changed files with 307 additions and 362 deletions

View File

@@ -66,7 +66,7 @@ Item {
property int defaultValue: -1
signal sliderValueChanged(int newValue)
signal sliderDragFinished(int finalValue)
width: parent?.width ?? 0
height: headerRow.height + Theme.spacingXS + slider.height
@@ -128,6 +128,7 @@ Item {
onClicked: {
slider.value = root.defaultValue;
root.sliderValueChanged(root.defaultValue);
root.sliderDragFinished(root.defaultValue);
}
}
}
@@ -141,6 +142,7 @@ Item {
wheelEnabled: false
thumbOutlineColor: Theme.surfaceContainerHigh
onSliderValueChanged: newValue => root.sliderValueChanged(newValue)
onSliderDragFinished: finalValue => root.sliderDragFinished(finalValue)
}
}
}