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:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user