Commit graph

62 commits

Author SHA1 Message Date
Stephen Seo ef234f0ec0 Replace dependency structopt with clap 2023-11-28 12:20:49 +09:00
Stephen Seo e0be69df81 Impl passing password via file 2023-01-31 16:19:55 +09:00
Stephen Seo c902f0fcf3 Fix clippy warnings 2023-01-29 14:50:26 +09:00
Stephen Seo 1a623f451d Fix not-staying-in-fullscreen bug 2022-12-06 22:26:02 +09:00
Stephen Seo 7f6a24545c Update to latest ggez (0.8.1)
A lot of ".expect(...)" or ".unwrap(...)" lines were added, so these
need to be refactored out. For now, just got it to work with the latest
ggez.

Currently noticed bugs:

 - Album art is brighter than original.

 - Fullscreen doesn't work.
2022-12-06 22:03:46 +09:00
Stephen Seo adf0125e1e Impl setting opacity of text bg via arg 2022-08-10 14:05:39 +09:00
Stephen Seo 95e4a75eed Impl album display 2022-08-02 18:12:54 +09:00
Stephen Seo 9cf94f7377 Impl unicode support via fontconfig and freetype 2022-08-01 12:04:48 +09:00
Stephen Seo fa0d81577b Rename new feature to "unicode_support"
Also some setup for pending feature.
2022-07-30 18:54:55 +09:00
Stephen Seo a48f801a02 Fix most clippy warnings, bump version 2022-01-13 10:07:01 +09:00
Stephen Seo 231db34338 Differentiate between log level/state, bump version 2022-01-07 16:07:15 +09:00
Stephen Seo 91e0dfb5b8 Force 5 fps drawing, bump version to 0.2.8 2022-01-07 15:34:17 +09:00
Stephen Seo f98dc899f1 Fix most clippy warnings 2021-12-30 22:31:59 +09:00
Stephen Seo f98fc1e24f Fix re-showing prompt on password fail, impl logs
Also bump version to 0.2.6
2021-12-20 17:41:32 +09:00
Stephen Seo 78da393fac Impl hide text when "H" key is pressed 2021-12-16 17:28:47 +09:00
Stephen Seo 7616f1e3f2 Fix key_press event not only on key down 2021-12-16 11:19:32 +09:00
Stephen Seo 570b6ab33c Add flag to disable fill-scaling album art 2021-12-15 19:32:37 +09:00
Stephen Seo 9040f8f88e WIP impl album art display 2021-12-15 16:34:30 +09:00
Stephen Seo 866e88ba2a WIP several fixes
info output not implemented yet
2021-12-15 14:30:02 +09:00
Stephen Seo 4b8a5a65e1 WIP add debug logging 2021-12-14 21:40:53 +09:00
Stephen Seo ed7755d953 WIP fix handling resizing 2021-12-14 19:54:13 +09:00
Stephen Seo a132d30f59 WIP some minor fixes 2021-12-14 19:49:31 +09:00
Stephen Seo 086ab048fc WIP Custom event_loop for forced low fps 2021-12-14 19:39:09 +09:00
Stephen Seo e9d8e23cc3 WIP allow resizing, better handling of resizing 2021-12-14 18:59:27 +09:00
Stephen Seo 946eed5a69 WIP heavy refactoring/rewriting, use ggez 2021-12-14 18:30:55 +09:00
Stephen Seo 5425671920 Fix parse data failure from MPD with "OK" string 2021-10-11 21:36:29 +09:00
Stephen Seo 115c81583e Minor tweaks to font size of title/artist 2021-10-11 18:53:28 +09:00
Stephen Seo a2e75d1583 Adjust display title/artist sizes 2021-10-05 15:55:53 +09:00
Stephen Seo c7bacf33e3 Fix invalid if condition to fetch shared data 2021-09-21 12:45:27 +09:00
Stephen Seo e45c214be9 Use atomic_bool for dirty flag 2021-09-20 22:44:04 +09:00
Stephen Seo 76372e4f97 Minor refactorings 2021-09-20 22:08:36 +09:00
Stephen Seo 92f2a441a4 Fix sleeping on polling album art 2021-09-20 20:45:07 +09:00
Stephen Seo 726cbdb1ef Minor fixes/improvements/refactorings 2021-09-20 14:35:43 +09:00
Stephen Seo 022b765104 Minor improvements/tweaks/refactorings 2021-09-20 14:09:50 +09:00
Stephen Seo 88a172a8cb Refactorings and improvements 2021-09-18 14:00:41 +09:00
Stephen Seo ca714f6de2 Impl hiding drawn text with "H" key 2021-09-17 20:51:39 +09:00
Stephen Seo 78c18afe5e Impl password input prompt, improve help info 2021-09-17 20:35:49 +09:00
Stephen Seo 05aa505694 Impl title and artist display with existing 2021-09-17 19:58:20 +09:00
Stephen Seo f9ff594437 Impl fetching album art that isn't embedded 2021-09-17 18:24:17 +09:00
Stephen Seo cc746fa11c Minor tweak to the remaining-time timer display 2021-09-17 15:11:22 +09:00
Stephen Seo 1d4a6d5f35 Minor tweaks to drawn text positions 2021-09-17 15:05:32 +09:00
Stephen Seo d7e012b1e8 Add error text display if auth/other fails
Minor improvements/refactorings as well.
2021-09-17 14:41:02 +09:00
Stephen Seo bf62fde38d Fixes/refactorings/improvements
Add some "error handling" for authentication fail, album art fetch fail,
or getting status fail (if either of the three fails, then
mpd_info_screen will not try to authenticate/fetch-info again).

Some refactoring like using a struct instead of a tuple.

Improve drawing of text by caching the picked font size that is only
changed when the song changes or when the window dimensions change.
2021-09-17 14:22:56 +09:00
Stephen Seo 217125eaee Output error lines 2021-09-17 12:33:09 +09:00
Stephen Seo 6f5f25503c Fix UTF-8 parsing from title of song 2021-09-16 15:21:33 +09:00
Stephen Seo 079477b282 Comment out "use" that was used for a debug fn 2021-09-16 14:48:49 +09:00
Stephen Seo 1e461e96eb Fix/tweak display time output 2021-09-16 14:48:03 +09:00
Stephen Seo 7a7883d359 Minor fix/tweak to display timer output 2021-09-16 14:46:44 +09:00
Stephen Seo ca925a9b50 Comment out unused debugging fn 2021-09-16 14:44:54 +09:00
Stephen Seo a373cf6a87 Apply cargo clippy fixes 2021-09-16 14:44:31 +09:00