layout tinkering
authorRobin Krens <robin@robinkrens.nl>
Wed, 25 Nov 2020 14:53:40 +0000 (15:53 +0100)
committerRobin Krens <robin@robinkrens.nl>
Wed, 25 Nov 2020 14:53:40 +0000 (15:53 +0100)
contents/ui/main.qml
metadata.desktop

index b6bb57e..8f59156 100644 (file)
@@ -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 {
 
index d86d39f..cd4ee38 100644 (file)
@@ -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