Skip to content

Commit

Permalink
made it look slightly cooler
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoniosBarotsis committed Mar 26, 2024
1 parent 20a8cab commit 3a1f9af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fn main() {
viewport: egui::ViewportBuilder::default()
.with_decorations(false)
// TODO: Next 2 lines wont work for other resolutions
.with_inner_size([800.0, 180.0])
.with_position([(1920.0 / 2.0) - (850.0 / 2.0), 1080.0 - 180.0])
.with_inner_size([800.0, 120.0])
.with_position([(1920.0 / 2.0) - (850.0 / 2.0), 1080.0 - 120.0])
.with_always_on_top()
.with_transparent(true),
..Default::default()
Expand Down Expand Up @@ -164,8 +164,8 @@ impl eframe::App for MyApp {
let left = self.queue_to_points(&self.left);

plot.show(ui, |plot_ui| {
plot_ui.line(Line::new(PlotPoints::from(right)).color(Color32::GREEN));
plot_ui.line(Line::new(PlotPoints::from(left)).color(Color32::RED));
plot_ui.line(Line::new(PlotPoints::from(right)).color(Color32::GREEN).width(2.5));
plot_ui.line(Line::new(PlotPoints::from(left)).color(Color32::RED).width(2.5));
});
});

Expand Down

0 comments on commit 3a1f9af

Please sign in to comment.