more cleanup master
authorRobin Krens <robin@robinkrens.nl>
Wed, 25 Nov 2020 15:43:03 +0000 (16:43 +0100)
committerRobin Krens <robin@robinkrens.nl>
Wed, 25 Nov 2020 15:43:03 +0000 (16:43 +0100)
contents/ui/main.qml
contents/ui/snowWindow.qml

index 8f59156..3976cd1 100644 (file)
@@ -98,7 +98,6 @@ Item {
        function updateSnow() {
 
                if (userSpeed.currentText == '') { // hack
-                       //console.log('not initialized yet');   
                        return;
                }
 
@@ -135,8 +134,7 @@ Item {
 
        }
 
-       //Plasmoid.Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
-       Layout.minimumWidth: units.gridUnit * 13;
+       Layout.minimumWidth: units.gridUnit * 14;
        Layout.minimumHeight: units.gridUnit * 10;
 
        GridLayout {
@@ -159,7 +157,6 @@ Item {
                Button { width: 100; text: "Stop"; onClicked: destroySnow(); }
 
        }
-//}
 
        Timer {
 
@@ -183,7 +180,7 @@ Item {
                                if(snow[i].x > screenWidth) {
                                        snow[i].x = 0;
                                } else if (snow[i].x < 0) {
-                                       snow[i].x = 1440;
+                                       snow[i].x = screenWidth;
                                }
 
                                snow[i].y += snow[i].fallingSpeed;
index 8973ddd..ad95700 100644 (file)
@@ -35,13 +35,10 @@ ApplicationWindow {
        property int swirl: getRandomIntInclusive(35,200); /* random falling 'swirl' */
        property int disposition: 0;
        property alias snowFlakeRotation: snowFlake.rotation;
-       //property int rotationSpeed: (Math.random() * 100) % 3 + 1; /* falling rotation */
        property int rotationSpeed: getRandomIntInclusive(1,4);
        property int rotationDirection: getRandomIntInclusive(0,1);
-       //property int fallingSpeed: (Math.random() * 100) % 3 + 2; 
        property int fallingSpeed: Utils.getFallingSpeed(plasmoid.configuration.userSpeed);
 
-       //width: 80; height: 80;
        opacity: 0.5;
        color: "transparent";
 
@@ -87,7 +84,6 @@ ApplicationWindow {
 
                        anchors.fill: parent;
                        source: setImage(); 
-                       //source:  "../images/romantic.png";
                }
 
        }