Skip to content

Commit 3814dd3

Browse files
committed
icon scaling improvements in icon only
1 parent 31a5c8b commit 3814dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/contents/ui/Task.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ MouseArea {
704704
topMargin: adjustMargin(false, parent.height, taskFrame.margins.top)
705705
}
706706

707-
width: height * (plasmoid.configuration.iconScale / 100)
707+
width: iconsOnly ? height : height * (plasmoid.configuration.iconScale / 100)
708708
height: (parent.height - adjustMargin(false, parent.height, taskFrame.margins.top)
709709
- adjustMargin(false, parent.height, taskFrame.margins.bottom))
710710
function adjustMargin(vert, size, margin) {
@@ -731,7 +731,7 @@ MouseArea {
731731
usesPlasmaTheme: false
732732
roundToIconSize: false
733733

734-
width: iconsOnly ? parent.width * (plasmoid.configuration.iconScale / 100) : parent.width
734+
width: iconsOnly ? parent.height * (plasmoid.configuration.iconScale / 100) : parent.width
735735
height: width
736736

737737
source: model.decoration

0 commit comments

Comments
 (0)