1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

fix spacer sizes

This commit is contained in:
bbedward
2025-08-24 00:26:19 -04:00
parent afa60696c8
commit b504bf1617
2 changed files with 17 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ Column {
signal itemOrderChanged(var newOrder)
signal addWidget(string sectionId)
signal removeWidget(string sectionId, int widgetIndex)
signal spacerSizeChanged(string sectionId, string itemId, int newSize)
signal spacerSizeChanged(string sectionId, int widgetIndex, int newSize)
signal compactModeChanged(string widgetId, var value)
signal gpuSelectionChanged(string sectionId, int widgetIndex, int selectedIndex)
signal controlCenterSettingChanged(string sectionId, int widgetIndex, string settingName, bool value)
@@ -419,7 +419,7 @@ Column {
var currentSize = modelData.size || 20
var newSize = Math.max(5, currentSize - 5)
root.spacerSizeChanged(root.sectionId,
modelData.id,
index,
newSize)
}
}
@@ -441,7 +441,7 @@ Column {
var newSize = Math.min(5000,
currentSize + 5)
root.spacerSizeChanged(root.sectionId,
modelData.id,
index,
newSize)
}
}