Commit Graph

19 Commits

Author SHA1 Message Date
Gergely Polonkai b2e387fbe8
[Refactor] Move current hour name calculation to the clock module 2022-05-24 11:53:37 +02:00
Gergely Polonkai 5095d2cc9f
[Refactor] Move hour name calculation to the clock module 2022-05-24 11:50:13 +02:00
Gergely Polonkai 8968507d29
[Refactor] Move UTC offset calculation to the clock module 2022-05-24 11:37:16 +02:00
Gergely Polonkai eecd5c2938
[Refactor] Move calculation of the day parts to the clock module 2022-05-24 11:37:13 +02:00
Gergely Polonkai b485b01c2f
[Refactor] Move UTC hour calculation to the clock module 2022-05-24 11:27:02 +02:00
Gergely Polonkai d56c6ef087
[Refactor] Move local time calculation to the clock module 2022-05-24 10:34:21 +02:00
Gergely Polonkai b6d6e71be2
[Refactor] Move local time’s seconds since midnight calculation to the clock module 2022-05-24 10:33:57 +02:00
Gergely Polonkai 1d485c824b
[Refactor] Move Moon phase calculation to a new clock module 2022-05-24 09:26:05 +02:00
Gergely Polonkai 852e8e090e
[Refactor] Move the gen_svg function to the svg_clock module 2022-05-23 18:05:16 +02:00
Gergely Polonkai 48ace5dc01
[Refactor] Move the get_moon_path function to the svg_clock module 2022-05-23 17:52:40 +02:00
Gergely Polonkai af637bcd10
[Refactor] Move the get_range_path function to the svg_clock module 2022-05-23 17:51:05 +02:00
Gergely Polonkai 4c15ffa826
[Refactor] Move the seconds_to_degrees function to the svg_clock module 2022-05-23 17:49:52 +02:00
Gergely Polonkai b7aa26be89
[Refactor] Move the hour_marker function to the svg_clock module 2022-05-23 17:46:45 +02:00
Gergely Polonkai e61c247915
Cache UTC hour labels 2022-05-23 14:03:01 +02:00
Gergely Polonkai f567362c29
[Refactor] Convert utc_hour_font_size to a constant 2022-05-23 13:48:45 +02:00
Gergely Polonkai 2fd9d4e8de
Cache the paths generated from hour name texts
Rendering text along a textPath is very CPU intensive, especially since we’re doing it every second.
2022-05-23 05:01:25 +02:00
Gergely Polonkai 7e8f62b811
[Refactor] Move hour_name_path to the svg_clock module 2022-05-23 04:43:48 +02:00
Gergely Polonkai 66e9c3d3f3
[Refactor] Move svg => usvg conversion to a separate function 2022-05-22 19:13:41 +02:00
Gergely Polonkai b95c035133
[Refactor] Move some constants to a new module 2022-05-22 19:03:09 +02:00