mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 07:22:50 -05:00
workspaces: add icon size offset
This commit is contained in:
@@ -504,7 +504,7 @@ Item {
|
||||
readonly property real padding: Math.max(Theme.spacingXS, Theme.spacingS * (widgetHeight / 30))
|
||||
readonly property real visualWidth: isVertical ? widgetHeight : (workspaceRow.implicitWidth + padding * 2)
|
||||
readonly property real visualHeight: isVertical ? (workspaceRow.implicitHeight + padding * 2) : widgetHeight
|
||||
readonly property real appIconSize: Theme.barIconSize(barThickness, -6, root.barConfig?.noBackground)
|
||||
readonly property real appIconSize: Theme.barIconSize(barThickness, -6 + SettingsData.workspaceAppIconSizeOffset, root.barConfig?.noBackground)
|
||||
|
||||
function getRealWorkspaces() {
|
||||
return root.workspaceList.filter(ws => {
|
||||
|
||||
@@ -104,6 +104,17 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
SettingsSliderRow {
|
||||
visible: SettingsData.showWorkspaceApps
|
||||
text: I18n.tr("Icon Size")
|
||||
value: SettingsData.workspaceAppIconSizeOffset
|
||||
minimum: 0
|
||||
maximum: 10
|
||||
unit: "px"
|
||||
defaultValue: 0
|
||||
onSliderValueChanged: newValue => SettingsData.set("workspaceAppIconSizeOffset", newValue)
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
settingKey: "groupWorkspaceApps"
|
||||
tags: ["workspace", "apps", "icons", "group", "grouped", "collapse"]
|
||||
|
||||
Reference in New Issue
Block a user