@@ -11,7 +11,7 @@ pub struct Appearance {
1111 pub ui_font : FontId ,
1212 pub code_font : FontId ,
1313 pub diff_colors : Vec < Color32 > ,
14- pub theme : eframe :: Theme ,
14+ pub theme : egui :: Theme ,
1515
1616 // Applied by theme
1717 #[ serde( skip) ]
@@ -56,7 +56,7 @@ impl Default for Appearance {
5656 ui_font : DEFAULT_UI_FONT ,
5757 code_font : DEFAULT_CODE_FONT ,
5858 diff_colors : DEFAULT_COLOR_ROTATION . to_vec ( ) ,
59- theme : eframe :: Theme :: Dark ,
59+ theme : egui :: Theme :: Dark ,
6060 text_color : Color32 :: GRAY ,
6161 emphasized_text_color : Color32 :: LIGHT_GRAY ,
6262 deemphasized_text_color : Color32 :: DARK_GRAY ,
@@ -98,7 +98,7 @@ impl Appearance {
9898 } ) ;
9999 style. text_styles . insert ( TextStyle :: Monospace , self . code_font . clone ( ) ) ;
100100 match self . theme {
101- eframe :: Theme :: Dark => {
101+ egui :: Theme :: Dark => {
102102 style. visuals = egui:: Visuals :: dark ( ) ;
103103 self . text_color = Color32 :: GRAY ;
104104 self . emphasized_text_color = Color32 :: LIGHT_GRAY ;
@@ -108,7 +108,7 @@ impl Appearance {
108108 self . insert_color = Color32 :: GREEN ;
109109 self . delete_color = Color32 :: from_rgb ( 200 , 40 , 41 ) ;
110110 }
111- eframe :: Theme :: Light => {
111+ egui :: Theme :: Light => {
112112 style. visuals = egui:: Visuals :: light ( ) ;
113113 self . text_color = Color32 :: GRAY ;
114114 self . emphasized_text_color = Color32 :: DARK_GRAY ;
@@ -274,8 +274,8 @@ pub fn appearance_window(ctx: &egui::Context, show: &mut bool, appearance: &mut
274274 egui:: ComboBox :: from_label ( "Theme" )
275275 . selected_text ( format ! ( "{:?}" , appearance. theme) )
276276 . show_ui ( ui, |ui| {
277- ui. selectable_value ( & mut appearance. theme , eframe :: Theme :: Dark , "Dark" ) ;
278- ui. selectable_value ( & mut appearance. theme , eframe :: Theme :: Light , "Light" ) ;
277+ ui. selectable_value ( & mut appearance. theme , egui :: Theme :: Dark , "Dark" ) ;
278+ ui. selectable_value ( & mut appearance. theme , egui :: Theme :: Light , "Light" ) ;
279279 } ) ;
280280 ui. separator ( ) ;
281281 appearance. next_ui_font =
0 commit comments