mirror of
https://github.com/hinto-janai/gupax.git
synced 2024-11-16 17:27:37 +00:00
main: fix scaling
This commit is contained in:
parent
430cf7d805
commit
023b370cdf
1 changed files with 1 additions and 1 deletions
|
@ -811,7 +811,7 @@ impl KeyPressed {
|
|||
//---------------------------------------------------------------------------------------------------- Init functions
|
||||
#[inline(always)]
|
||||
fn init_text_styles(ctx: &egui::Context, width: f32, pixels_per_point: f32) {
|
||||
let scale = width / 30.0;
|
||||
let scale = width / 35.5;
|
||||
let mut style = (*ctx.style()).clone();
|
||||
style.text_styles = [
|
||||
(Small, FontId::new(scale/3.0, egui::FontFamily::Monospace)),
|
||||
|
|
Loading…
Reference in a new issue