1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-10 15:52:58 -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
committed by bbedward
parent fae4944845
commit 29de677e00
37 changed files with 307 additions and 362 deletions

View File

@@ -23,7 +23,7 @@ StyledRect {
property int defaultValue: -1
signal sliderValueChanged(int newValue)
signal sliderDragFinished(int finalValue)
width: parent?.width ?? 0
height: Theme.spacingL * 2 + contentColumn.height
radius: Theme.cornerRadius
@@ -89,6 +89,7 @@ StyledRect {
onClicked: {
slider.value = root.defaultValue;
root.sliderValueChanged(root.defaultValue);
root.sliderDragFinished(root.defaultValue);
}
}
}
@@ -101,6 +102,7 @@ StyledRect {
wheelEnabled: false
thumbOutlineColor: Theme.surfaceContainerHigh
onSliderValueChanged: newValue => root.sliderValueChanged(newValue)
onSliderDragFinished: finalValue => root.sliderDragFinished(finalValue)
}
}
}

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)
}
}
}