Commit graph

113 commits

Author SHA1 Message Date
Stephen Seo ef234f0ec0 Replace dependency structopt with clap 2023-11-28 12:20:49 +09:00
Stephen Seo aa6fb750e7 Refactor "no-password-fix"
Refactors the fix for the use case of when MPD requires no password.
2023-02-04 21:32:31 +09:00
Stephen Seo a1706913e6 Fix timer bg not updating
This commit fixes the bg mesh (slightly-transparent-black-bg for text)
not updating when the timer-text changes size.
2023-02-04 20:41:47 +09:00
Stephen Seo e0be69df81 Impl passing password via file 2023-01-31 16:19:55 +09:00
Stephen Seo 56f6784892 Fix where display doesn't work when no password
Previous implementation only worked if MPD was accessed with a password.
This commit fixes no-password access of MPD.
2023-01-31 15:57:56 +09:00
Stephen Seo c902f0fcf3 Fix clippy warnings 2023-01-29 14:50:26 +09:00
Stephen Seo f2f93f5393 Fix clippy warning 2022-12-07 12:22:06 +09:00
Stephen Seo 1a623f451d Fix not-staying-in-fullscreen bug 2022-12-06 22:26:02 +09:00
Stephen Seo ef07d7936a Fix "brighter" displayed album art bug 2022-12-06 22:19:48 +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 a9441536c4 Refactor handling of Result conversion 2022-11-01 17:36:16 +09:00
Stephen Seo a1fe8c3120 Impl better handling of unknown image type 2022-10-30 19:41:50 +09:00
Stephen Seo ce45a40df5 Fix clippy warnings 2022-10-30 14:05:04 +09:00
Stephen Seo bce9855743 Fix edge-case where MPD omits album art format 2022-10-30 13:42:51 +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 dda5b15aa4 Refactor freetype handling code to be safer 2022-08-01 16:20:34 +09:00
Stephen Seo a58121741f Fix memory leak related to freetype, bump v0.3.3 2022-08-01 14:30:22 +09:00
Stephen Seo 09ca5d2bf3 Fix always failing freetype call, version 0.3.2 2022-08-01 14:19:23 +09:00
Stephen Seo 5f45f802b6 Fix/inhibit clippy warnings 2022-08-01 13:37:13 +09:00
Stephen Seo d6fa156990 Replace println! with debug_log::log(...) 2022-08-01 12:39:49 +09:00
Stephen Seo 9cf94f7377 Impl unicode support via fontconfig and freetype 2022-08-01 12:04:48 +09:00
Stephen Seo 2bcc19d7de Fix warnings 2022-07-31 21:45:14 +09:00
Stephen Seo a57d287031 Impl fontconfig finding font with given char/str
Should work with non-ascii as well, provided that the system has the
necessary fonts installed.
2022-07-31 21:35:08 +09:00
Stephen Seo 1d9342d8f5 Impl freetype use, bindgen for fontconfig
TODO: fontconfig
2022-07-31 19:52:04 +09:00
Stephen Seo ab604b34ee Fix unintended change of font scaling behavior 2022-07-31 16:47:25 +09:00
Stephen Seo 340a048121 Update display.rs to (eventually) use unicode text 2022-07-31 16:43:38 +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 810e589efe Impl more informative error messages
Bump version to 0.2.20, and regenerate Cargo.lock .
2022-05-16 14:00:15 +09:00
Stephen Seo 3299764ee1 Handle paused/stopped/play state, version bump
Version 0.2.19.
2022-03-23 20:56:37 +09:00
Stephen Seo ec4632cc91 Fix logic for when to sleep on mpd_handler thread 2022-01-14 10:55:47 +09:00
Stephen Seo 98be10682e Remove unnecessary call to "ok()" on Result 2022-01-13 17:26:00 +09:00
Stephen Seo e12104aa20 More robust handling of authentication failure
Bump version to 0.2.15
2022-01-13 11:17:32 +09:00
Stephen Seo a48f801a02 Fix most clippy warnings, bump version 2022-01-13 10:07:01 +09:00
Stephen Seo 762d8bdabe Fix second album art fetch method on decode fail
Previous implementation did not try second fetch method on actual decode fail,
only on unknown mime type.

Version bumped to 0.2.13.
2022-01-12 21:07:31 +09:00
Stephen Seo 2b90aed487 Try second albumart fetching method on decode fail
If the "image" crate fails to decode the album art from the first album-art
fetching method, fallback to the second fetching method to try decoding the
other image.
2022-01-12 20:25:26 +09:00
Stephen Seo 0888ec3ff9 Replace magic numbers with consts, bump version 2022-01-11 18:30:12 +09:00
Stephen Seo b42aaeb35a Replace magic number with const, bump version 2022-01-10 21:37:43 +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 cef1ae1aee Minor refactoring 2022-01-06 18:23:50 +09:00
Stephen Seo f98dc899f1 Fix most clippy warnings 2021-12-30 22:31:59 +09:00
Stephen Seo 336f338b32 Minor fix (same behavior, different "usage") 2021-12-30 22:22:57 +09:00
Stephen Seo 80abcb7436 Bump version to 0.2.7, minor fix 2021-12-30 22:18:03 +09:00
Stephen Seo acdf49dc4b Refactor MPDHandler to "hide" the Arc/RwLock impl 2021-12-30 22:16:12 +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 c72e05c53d Fix "slow startup" bug, bump version to 0.2.5 2021-12-18 19:48:18 +09:00
Stephen Seo d13a8a7b88 Fix album-art-data fetching, bump version 0.2.4 2021-12-18 15:52:50 +09:00
Stephen Seo a9d6efaf5c Refactor getting album art from handle to display
Avoids doing a copy of the album art data.
2021-12-18 15:37:50 +09:00
Stephen Seo 75ecbf932c Scale timer size based on window size 2021-12-16 21:09:00 +09:00