Updownquark / Quick

Quark's User Interface Creation Kit
0 stars 0 forks source link

Timer App #66

Closed Updownquark closed 7 years ago

Updownquark commented 7 years ago

This is a mega-issue, an issue with multiple small issues in it. I want to write the first semi-useful app in Quick. It's a timer that's kid-friendly. It would consist of a spinner at the top that is formatted with a duration in a flexible format (e.g. 5m, 5 min, 5:00, 00:05:00, etc.) and a Start button. When the start button is clicked, it, the spinner, and a Reset buton are disabled and a Stop button is enabled.

Also a text timer starts counting down and several colored boxes begin changing. One box might be for hours, another for 15 minutes, another for minutes, another for seconds. The boxes would change red to green as time flows. So during any time greater than 1 hour, all boxes but the hour box would be solid red. The red box would phase from red to green in proportion to the time that has passed up to the 1 hour mark. After that, the hour box would stay solid green and the 15 minute box would phase from red to green up to the 15 minute mark, and so on. This would allow children to have a good grasp of the amount of time that has passed and the amount of time that is left on the timer without needing to be able to tell time or understand hours, minutes, seconds, etc. Some widget on the app should also flash and/or play a sound when the timer finishes.

This would require some new features not specified in other issues:

Updownquark commented 7 years ago

A bonus would be to have a variable layout type that would lay out components differently depending on the orientation of the window (e.g. a horizontal layout with width > height would lay out one way, vertical layout with height > width would lay out differently).

Updownquark commented 7 years ago

For the format piece:

Updownquark commented 7 years ago

Went a bit of a different direction with hooking in adjustable formatters to spinner. The way it works now is much better. The rest of the stuff up there is done too.

Updownquark commented 7 years ago

I think all that's left now is to make the timer flash and beep when it finishes:

Updownquark commented 7 years ago

The app is done. I've added enough features to it and the original design was complex enough that it's not actually kid-friendly, but it should be good for a simple demo.

I haven't done much with ComposedFormatterModel, not sure how useful that class will end up being, but I'll address that some other time with a different issue or without one.