Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchUsr64 committed Jan 11, 2024
1 parent 45ef939 commit a9b0bd1
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl App {
);
ui.label("Line Number:");
ui.label(
egui::RichText::new(current_line_number.to_string())
egui::RichText::new((current_line_number + 1).to_string())
.monospace()
.color(Color32::LIGHT_RED),
);
Expand All @@ -128,7 +128,7 @@ impl App {
cpu_state.a, cpu_state.x, cpu_state.y
))
.monospace()
.color(Color32::LIGHT_RED),
.color(Color32::LIGHT_GREEN),
);
});
egui::Window::new("Source Code").show(ctx, |ui| {
Expand Down Expand Up @@ -177,13 +177,6 @@ impl App {
.color(Color32::LIGHT_BLUE)
.monospace(),
);
} else if current_line_number == line_number {
ui.label(
egui::RichText::new(line)
.monospace()
.color(Color32::YELLOW)
.background_color(Color32::DARK_RED),
);
} else {
let leading_whitespace = line.len() - line.trim_start().len();
ui.label(
Expand Down

0 comments on commit a9b0bd1

Please sign in to comment.