1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -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 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( width: workspaceRow.implicitWidth + padding * 2
120,
workspaceRow.implicitWidth + horizontalPadding * 2) : workspaceRow.implicitWidth
+ horizontalPadding * 2
height: widgetHeight height: widgetHeight
radius: SettingsData.topBarNoBackground ? 0 : Theme.cornerRadius radius: SettingsData.topBarNoBackground ? 0 : Theme.cornerRadius
color: { color: {