This commit is contained in:
Jeremy Soller 2024-01-09 10:16:32 -07:00
parent a342ff266d
commit db738371ac
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
6 changed files with 184 additions and 74 deletions

View file

@ -56,7 +56,7 @@ impl Config {
let font_size = f32::from(self.font_size).max(1.0);
let adj = f32::from(zoom_adj);
let adj_step = f32::from(self.font_size_zoom_step_mul_100) / 100.0;
(font_size + adj*adj_step).max(1.0)
(font_size + adj * adj_step).max(1.0)
}
// Calculate metrics from font size