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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user