Adjust font sizes
This commit is contained in:
parent
e06a4db7bc
commit
07711a456a
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ pub struct Fonts {
|
|||
impl Fonts {
|
||||
pub fn new(pixels_per_point: f32) -> Fonts {
|
||||
let mut sizes = FontSizes::new();
|
||||
sizes.insert(TextStyle::Body, 18.0);
|
||||
sizes.insert(TextStyle::Button, 22.0);
|
||||
sizes.insert(TextStyle::Body, 16.0);
|
||||
sizes.insert(TextStyle::Button, 20.0);
|
||||
sizes.insert(TextStyle::Heading, 28.0);
|
||||
Fonts::from_sizes(sizes, pixels_per_point)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue