]> git.seodisparate.com - mpd_info_screen/commitdiff
Tweak font sizes for display
authorStephen Seo <seo.disparate@gmail.com>
Sun, 4 Aug 2024 13:06:12 +0000 (22:06 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sun, 4 Aug 2024 13:06:12 +0000 (22:06 +0900)
src/display.rs

index d1b11e46f6f1607b4891e5c04e4b54a2556ad35e..25abd2919dd825b811c81f0f9dd33dea00baee12 100644 (file)
@@ -19,14 +19,14 @@ use std::thread;
 use std::time::{Duration, Instant};
 
 const POLL_TIME: Duration = Duration::from_millis(333);
-const INIT_FONT_SIZE_X: f32 = 24.0;
-const INIT_FONT_SIZE_Y: f32 = 34.0;
+const INIT_FONT_SIZE_X: f32 = 36.0;
+const INIT_FONT_SIZE_Y: f32 = 51.0;
 const TEXT_X_OFFSET: f32 = 0.3;
 const TEXT_OFFSET_Y_SPACING: f32 = 0.4;
 const TEXT_HEIGHT_SCALE: f32 = 0.1;
-const ARTIST_HEIGHT_SCALE: f32 = 0.08;
-const ALBUM_HEIGHT_SCALE: f32 = 0.08;
-const TIMER_HEIGHT_SCALE: f32 = 0.07;
+const ARTIST_HEIGHT_SCALE: f32 = 0.12;
+const ALBUM_HEIGHT_SCALE: f32 = 0.12;
+const TIMER_HEIGHT_SCALE: f32 = 0.105;
 const MIN_WIDTH_RATIO: f32 = 4.0 / 5.0;
 const INCREASE_AMT: f32 = 6.0 / 5.0;
 const DECREASE_AMT: f32 = 5.0 / 6.0;