function updateSnow() {
if (userSpeed.currentText == '') { // hack
- console.log('not initialized yet');
+ //console.log('not initialized yet');
return;
}
* or slowly add/delete new snow flakes */
function updateCount() {
+ if (snowFalling == null) // quickhack
+ return;
+
var alreadyRunning = snowFalling.running;
destroySnow();
}
- GridLayout {
+ //Plasmoid.Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
+ Layout.minimumWidth: units.gridUnit * 13;
+ Layout.minimumHeight: units.gridUnit * 10;
+
+ GridLayout {
id: gridLayout
rows: 5
flow: GridLayout.TopToBottom
Button { width: 100; text: "Stop"; onClicked: destroySnow(); }
}
+//}
Timer {
[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
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