Commit 5fc9525a authored by Fushan Wen's avatar Fushan Wen 💬 Committed by Nate Graham
Browse files

applet/pager: Properly adjust the icon size

Set `roundToIconSize` to false, and don't make the icon too small.


(cherry picked from commit 695f5f58)
parent 38446414
Pipeline #140656 passed with stage
in 5 minutes and 11 seconds
......@@ -205,13 +205,20 @@ MouseArea {
PlasmaCore.IconItem {
anchors.centerIn: parent
height: Math.min(PlasmaCore.Units.iconSizes.small, parent.height - (PlasmaCore.Units.smallSpacing * 2))
width: Math.min(PlasmaCore.Units.iconSizes.small, parent.width - (PlasmaCore.Units.smallSpacing * 2))
height: Math.min(PlasmaCore.Units.iconSizes.small,
parent.height,
Math.max(parent.height - (PlasmaCore.Units.smallSpacing * 2),
PlasmaCore.Units.smallSpacing * 2))
width: Math.min(PlasmaCore.Units.iconSizes.small,
parent.width,
Math.max(parent.width - (PlasmaCore.Units.smallSpacing * 2),
PlasmaCore.Units.smallSpacing * 2))
property var model: null
source: model ? model.decoration : undefined
usesPlasmaTheme: false
roundToIconSize: false
animated: false
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment