Dev log number 2!!!! After adding the sun, I decided, why not make a day-night cycle for each pomodoro session? This proved harder than I thought, yet again. Originally, I was going to make the sun set and the moon rise from the bottom of the screen; however, the canvas would cover the entire screen, and you wouldn’t be able to see anything. I figured out how to arrange the widgets in layers, but to my dismay, the boxes underneath the widgets would cover the sun/moon. According to Google, I can’t make widgets transparent, so I opted to make the sun and moon switch places horizontally across the screen. After successfully setting up this system, I took on the challenge of changing the color of the background; however, that meant I would also need to change the background color of all the widgets and buttons too. I ended up going back and putting the hex color I used into a variable and creating another variable for the night color, then it was just a matter of switching whether the day/night color would be assigned to the skycolor variable.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.