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:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user