From 0a3a49c920120d4dc67796d2538bb72dc4d7309d Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Mon, 6 Jul 2026 13:27:23 +0200 Subject: [PATCH] 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. --- plasmoid/contents/ui/main.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plasmoid/contents/ui/main.qml b/plasmoid/contents/ui/main.qml index 160c2d5..ba683b2 100644 --- a/plasmoid/contents/ui/main.qml +++ b/plasmoid/contents/ui/main.qml @@ -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: {