plasmoid: show full representation on desktop instead of compact

Use switchWidth/switchHeight instead of hardcoded preferredRepresentation
so the full view is shown directly when placed on the desktop (Planar
form factor) while panels still get the compact icon.
This commit is contained in:
Levi Neely 2026-07-06 13:27:23 +02:00
parent 12e6dbccdb
commit 0a3a49c920
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,11 @@ PlasmoidItem {
}
}
preferredRepresentation: compactRepresentation
// On the desktop (Planar), the widget has plenty of room so Plasma will
// automatically use fullRepresentation. In a panel, the available space
// is smaller than switchWidth/switchHeight so compactRepresentation is used.
switchWidth: Kirigami.Units.gridUnit * 10
switchHeight: Kirigami.Units.gridUnit * 10
toolTipMainText: "Ollie"
toolTipSubText: {