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:
parent
12e6dbccdb
commit
0a3a49c920
|
|
@ -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: {
|
||||
|
|
|
|||
Reference in New Issue