Commit Graph

28 Commits

Author SHA1 Message Date
Gergely Polonkai 6198a4a31f
Do secondly refresh via a calloop Timer instead of measuring elapsed time 2022-05-21 07:36:46 +02:00
Gergely Polonkai 418ab212ea
Make configuration file optional 2022-05-21 07:13:32 +02:00
Gergely Polonkai 98e5f3c06d
Make location configurable 2022-05-21 07:00:40 +02:00
Gergely Polonkai bd521ac62d
[Bugfix] Move the current time box to the bottom between 6:00 and 18:00
Instead of 7:00 and 17:00; it was’t *that bad the old way, but it’s more balanced this way.
2022-05-21 06:59:41 +02:00
Gergely Polonkai bede824603
Update the README 2022-05-19 10:29:48 +02:00
Gergely Polonkai ac95404017
Highlight the current hour name with a brighter colour 2022-05-19 09:27:27 +02:00
Gergely Polonkai 81907c5842
[Refactor] Calculate large arc flag in a more effective way 2022-05-19 09:21:57 +02:00
Gergely Polonkai b07361d392
[Bugfix] Fix the day part arcs for locations on the western hemisphere 2022-05-19 08:45:29 +02:00
Gergely Polonkai 8a4c25bd80
[Bugfix] Calculate the current UTC hour in a more safe way
This should now work in any time zone from -12:00 to +12:00, any time of the day.
2022-05-19 08:33:29 +02:00
Gergely Polonkai b0a943c270
Calculate day parts based on UTC time instead of local time 2022-05-19 08:14:01 +02:00
Gergely Polonkai 95557c839b
Show the current hour’s name and the current time in a box 2022-05-19 06:19:38 +02:00
Gergely Polonkai 6e0dedb1fb
Colour hour name plates based on their season 2022-05-19 05:04:48 +02:00
Gergely Polonkai e24e199e9e
Create a Seasons enum 2022-05-19 04:59:34 +02:00
Gergely Polonkai 08cb444e7d
Add hour names 2022-05-19 04:48:28 +02:00
Gergely Polonkai 064e11640c
Create a path we can use to run hour names along 2022-05-18 18:48:19 +02:00
Gergely Polonkai c6eee17618
Pre-fill the pixmap with the background color to prevent having white strips at the edge 2022-05-18 17:20:05 +02:00
Gergely Polonkai 5e3ab2c7ed
[Bugfix] Don’t fill the smoothing circle so day parts remain visible 2022-05-18 17:19:49 +02:00
Gergely Polonkai 53671b21fb
Add a circle with the background colour around day parts
…so it smoothens the edges!
2022-05-18 17:15:27 +02:00
Gergely Polonkai a613855a66
Add a Sun disc to the dial
It rises on the horizon ^_^
2022-05-18 17:13:56 +02:00
Gergely Polonkai 534bf3a899
[Bugfix] Fix the night-time colour 2022-05-18 17:13:56 +02:00
Gergely Polonkai ed81334a20
Add day parts to the watch face 2022-05-18 13:17:58 +02:00
Gergely Polonkai 585e68cc58
Make font sizes relative to the image size 2022-05-18 10:52:29 +02:00
Gergely Polonkai 5513510ad1
Add markers with the solar noon and nadir (solar midnight) 2022-05-18 05:49:23 +02:00
Gergely Polonkai fc40b1a8db
Add UTC hours to the watch face 2022-05-18 05:44:07 +02:00
Gergely Polonkai c2ef71ed92
Add the current Moon phase in the middle 2022-05-17 17:35:50 +02:00
Gergely Polonkai 44904cd176
[Code Cleanup] Format code with rustfmt 2022-05-17 16:56:26 +02:00
Gergely Polonkai d4eef759be
Create a basic 24h clock 2022-05-17 16:53:02 +02:00
Gergely Polonkai 642fa1e416
Initial version that creates an empty window 2022-05-17 15:40:28 +02:00