mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 03:33:53 +00:00
Readjust font and avatar sizes now that my DPI setting is accurate
This commit is contained in:
parent
7dbab387e6
commit
3260ae10d7
@ -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() {
|
||||
|
@ -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,
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user