1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-09 15:22:13 -04:00

dankbar: fix centering of numerous bar widgets

This commit is contained in:
bbedward
2026-02-03 13:44:57 -05:00
parent 24ce41935e
commit f59aeb2782
12 changed files with 52 additions and 46 deletions

View File

@@ -73,7 +73,7 @@ Rectangle {
AppIconRenderer {
anchors.centerIn: parent
width: parent.width * 0.75
width: Math.round(parent.width * 0.75)
height: width
visible: (internalImage.status !== Image.Ready || root.imageSource === "") && root.fallbackIcon !== ""
iconValue: root.fallbackIcon

View File

@@ -12,10 +12,10 @@ Item {
property int grade: Theme.isLightMode ? 0 : -25
property int weight: filled ? 500 : 400
implicitWidth: icon.implicitWidth
implicitHeight: icon.implicitHeight
implicitWidth: Math.round(size)
implicitHeight: Math.round(size)
signal rotationCompleted()
signal rotationCompleted
FontLoader {
id: materialSymbolsFont
@@ -64,6 +64,6 @@ Item {
}
onRotationChanged: {
rotationTimer.restart()
rotationTimer.restart();
}
}