From 3260ae10d7e9ef13353c6f06a14a95f900d89a0a Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Mon, 16 Jan 2023 21:07:24 +1300 Subject: [PATCH] Readjust font and avatar sizes now that my DPI setting is accurate --- src/main.rs | 4 ++-- src/ui/style.rs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index cd495211..401e0e79 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,8 +28,8 @@ use std::ops::DerefMut; use std::{env, mem, thread}; use tracing_subscriber::filter::EnvFilter; -pub const AVATAR_SIZE: u32 = 64; // points, not pixels -pub const AVATAR_SIZE_F32: f32 = 64.0; // points, not pixels +pub const AVATAR_SIZE: u32 = 48; // points, not pixels +pub const AVATAR_SIZE_F32: f32 = 48.0; // points, not pixels fn main() -> Result<(), Error> { if env::var("RUST_LOG").is_err() { diff --git a/src/ui/style.rs b/src/ui/style.rs index c7d57438..dfd40f4d 100644 --- a/src/ui/style.rs +++ b/src/ui/style.rs @@ -86,7 +86,7 @@ pub(super) fn text_styles() -> BTreeMap { text_styles.insert( TextStyle::Small, FontId { - size: 13.0, + size: 10.75, family: FontFamily::Proportional, }, ); @@ -94,7 +94,7 @@ pub(super) fn text_styles() -> BTreeMap { text_styles.insert( TextStyle::Body, FontId { - size: 15.5, + size: 12.0, family: FontFamily::Proportional, }, ); @@ -102,7 +102,7 @@ pub(super) fn text_styles() -> BTreeMap { text_styles.insert( TextStyle::Monospace, FontId { - size: 15.5, + size: 12.0, family: FontFamily::Monospace, }, ); @@ -110,7 +110,7 @@ pub(super) fn text_styles() -> BTreeMap { text_styles.insert( TextStyle::Button, FontId { - size: 17.25, + size: 13.5, family: FontFamily::Proportional, }, ); @@ -118,7 +118,7 @@ pub(super) fn text_styles() -> BTreeMap { text_styles.insert( TextStyle::Heading, FontId { - size: 18.5, + size: 18.0, family: FontFamily::Proportional, }, );