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

fix width calculation

This commit is contained in:
bbedward
2025-09-03 01:09:37 -04:00
parent 73b832eddb
commit 5146dcb3f7

View File

@@ -164,12 +164,9 @@ Rectangle {
return 1
}
readonly property real horizontalPadding: SettingsData.topBarNoBackground ? 2 : Math.max(Theme.spacingS, SettingsData.topBarInnerPadding)
readonly property real padding: (widgetHeight - workspaceRow.implicitHeight) / 2
width: SettingsData.showWorkspacePadding ? Math.max(
120,
workspaceRow.implicitWidth + horizontalPadding * 2) : workspaceRow.implicitWidth
+ horizontalPadding * 2
width: workspaceRow.implicitWidth + padding * 2
height: widgetHeight
radius: SettingsData.topBarNoBackground ? 0 : Theme.cornerRadius
color: {