From ffb6d057993a4caad8a2861d9ad1a671f8a30ea3 Mon Sep 17 00:00:00 2001 From: Robin Krens Date: Wed, 25 Nov 2020 15:53:40 +0100 Subject: [PATCH] layout tinkering --- contents/ui/main.qml | 12 ++++++++++-- metadata.desktop | 8 ++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/contents/ui/main.qml b/contents/ui/main.qml index b6bb57e..8f59156 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -98,7 +98,7 @@ Item { function updateSnow() { if (userSpeed.currentText == '') { // hack - console.log('not initialized yet'); + //console.log('not initialized yet'); return; } @@ -121,6 +121,9 @@ Item { * or slowly add/delete new snow flakes */ function updateCount() { + if (snowFalling == null) // quickhack + return; + var alreadyRunning = snowFalling.running; destroySnow(); @@ -132,7 +135,11 @@ Item { } - GridLayout { + //Plasmoid.Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation + Layout.minimumWidth: units.gridUnit * 13; + Layout.minimumHeight: units.gridUnit * 10; + + GridLayout { id: gridLayout rows: 5 flow: GridLayout.TopToBottom @@ -152,6 +159,7 @@ Item { Button { width: 100; text: "Stop"; onClicked: destroySnow(); } } +//} Timer { diff --git a/metadata.desktop b/metadata.desktop index d86d39f..cd4ee38 100644 --- a/metadata.desktop +++ b/metadata.desktop @@ -1,9 +1,9 @@ [Desktop Entry] -Name=Snow Everywhere +Name=Let it snow! Keywords=snow;christmas;newyear;2020 -Comment=Let there be snow! +Comment=Snow taking over your desktop Type=Service -Icon=view-list-icons +Icon=../plasma/plasmoids/nl.robinkrens.plasma.letitsnow/contents/images/classic.png X-KDE-ServiceTypes=Plasma/Applet X-Plasma-API=declarativeappletscript @@ -11,7 +11,7 @@ X-Plasma-MainScript=ui/main.qml X-KDE-PluginInfo-Author=Robin Krens X-KDE-PluginInfo-Email=robin@robinkrens.nl -X-KDE-PluginInfo-Name=nl.robinkrens.plasma.snoweverywhere +X-KDE-PluginInfo-Name=nl.robinkrens.plasma.letitsnow X-KDE-PluginInfo-Version=0.1 X-KDE-PluginInfo-Website=http://plasma.kde.org/ X-KDE-PluginInfo-Category=Utilities -- 2.7.4