Readjust font and avatar sizes now that my DPI setting is accurate

This commit is contained in:
Mike Dilger 2023-01-16 21:07:24 +13:00
parent 7dbab387e6
commit 3260ae10d7
2 changed files with 7 additions and 7 deletions

View File

@ -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() {

View File

@ -86,7 +86,7 @@ pub(super) fn text_styles() -> BTreeMap<TextStyle, FontId> {
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<TextStyle, FontId> {
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<TextStyle, FontId> {
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<TextStyle, FontId> {
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<TextStyle, FontId> {
text_styles.insert(
TextStyle::Heading,
FontId {
size: 18.5,
size: 18.0,
family: FontFamily::Proportional,
},
);