@@ -9,7 +9,7 @@ use std::{
99use anyhow:: Context ;
1010use clap:: Parser ;
1111use egui:: {
12- Color32 , FontId , Margin , Pos2 , Rect , RichText , Stroke , Theme , Ui ,
12+ Color32 , Margin , Pos2 , Rect , RichText , Stroke , Theme , Ui ,
1313 epaint:: text:: { FontInsert , InsertFontFamily } ,
1414} ;
1515use entrace_core:: {
@@ -30,6 +30,7 @@ use crate::{
3030 ephemeral_settings:: EphemeralSettings ,
3131 frame_time:: { FrameTimeTracker , TrackFrameTime , us_to_human} ,
3232 notifications:: { self , NotificationHandle , RefreshToken } ,
33+ row_height_from_ctx,
3334 search:: { self , LocatingState , SearchState , query_window:: query_windows} ,
3435 self_tracing:: SelfTracingState ,
3536 settings:: { self , SettingsDialogState , SettingsState , apply_settings} ,
@@ -281,7 +282,7 @@ impl eframe::App for App {
281282 } ) ;
282283 } ) ;
283284 if let LogStatus :: Ready ( log_state) = & self . log_status {
284- let font_size = ctx . fonts ( |x| x . row_height ( & FontId :: monospace ( FontId :: default ( ) . size ) ) ) ;
285+ let font_size = row_height_from_ctx ( ctx ) ;
285286 let text_field_margin = Margin :: symmetric ( 4 , 2 ) ;
286287 let text_field_size =
287288 font_size * 2.0 + text_field_margin. topf ( ) + text_field_margin. bottomf ( ) ;
0 commit comments