Skip to content

Commit

Permalink
Different color text for LLM response
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn committed Jul 29, 2024
1 parent 765f3c5 commit cb5a70c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ pub struct App {
impl App {
pub fn new(cc: &eframe::CreationContext<'_>) -> Self {
cc.egui_ctx.set_visuals(egui::style::Visuals::dark());
cc.egui_ctx.style_mut(|s| s.visuals.override_text_color = Some(Color32::WHITE));

egui_extras::install_image_loaders(&cc.egui_ctx);

Expand Down Expand Up @@ -437,7 +436,7 @@ impl eframe::App for App {
0.0,
TextFormat {
font_id: FontId::new(20.0, FontFamily::Monospace),
color: Color32::WHITE,
color: if entry.role == Assistant { Color32::LIGHT_BLUE } else { Color32::LIGHT_GRAY },
..Default::default()
},
);
Expand Down

0 comments on commit cb5a70c

Please sign in to comment.