mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-26 13:07:49 -04:00
settings: some changes ref #3635
cc: add trash icon to drag and crush things cc: allow anchoring footer items to start or end
This commit is contained in:
1 parent
9e7f35de0c
commit
3bbf02f502
6 files changed
+261
-63
No files matched your search
@@ -27,6 +27,8 @@ Singleton {
|
||||
readonly property real navIconSize: Theme.avatarSize
|
||||
readonly property real navItemMinHeight: Theme.listItemHeight
|
||||
readonly property real sidebarGroupGap: Theme.spacingS
|
||||
readonly property real searchBarHeight: 56
|
||||
readonly property real searchBarGap: Theme.spacingM
|
||||
readonly property real avatarSize: 64
|
||||
readonly property real splitDividerHeight: Theme.iconSize
|
||||
readonly property real buttonGroupCompactThreshold: 200
|
||||
|
||||
@@ -36,8 +36,26 @@ Rectangle {
|
||||
readonly property color glyphColor: accentPair?.onContainer ?? Theme.primary
|
||||
property bool isFirstInGroup: true
|
||||
property bool isLastInGroup: true
|
||||
readonly property real topRadius: isFirstInGroup ? Theme.groupedListOuterRadius : Theme.groupedListInnerRadius
|
||||
readonly property real bottomRadius: isLastInGroup ? Theme.groupedListOuterRadius : Theme.groupedListInnerRadius
|
||||
property real topRadius: active || isFirstInGroup ? Theme.groupedListOuterRadius : Theme.groupedListInnerRadius
|
||||
property real bottomRadius: active || isLastInGroup ? Theme.groupedListOuterRadius : Theme.groupedListInnerRadius
|
||||
|
||||
Behavior on topRadius {
|
||||
enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
|
||||
NumberAnimation {
|
||||
duration: Theme.expressiveDurations.expressiveFastSpatial
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: Theme.expressiveCurves.expressiveFastSpatial
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on bottomRadius {
|
||||
enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
|
||||
NumberAnimation {
|
||||
duration: Theme.expressiveDurations.expressiveFastSpatial
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: Theme.expressiveCurves.expressiveFastSpatial
|
||||
}
|
||||
}
|
||||
|
||||
width: parent?.width ?? 0
|
||||
height: Math.max(SettingsMetrics.navItemMinHeight, textColumn.implicitHeight + Theme.spacingS * 2)
|
||||
|
||||
Reference in new issue
Block a user