Skip to content

Commit

Permalink
Remove redundant alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 8, 2023
1 parent 8862804 commit 9e0c533
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gui/src/screens/screen.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::widgets::status_bar::StatusBar;
use embedded_graphics::{pixelcolor::BinaryColor, prelude::DrawTarget, Drawable};
use embedded_layout::prelude::{horizontal, vertical, Align};

/// Screen that has a status bar.
pub struct Screen<C>
Expand All @@ -24,10 +23,7 @@ where
D: DrawTarget<Color = Self::Color>,
{
self.content.draw(display)?;

self.status_bar
.align_to(&display.bounding_box(), horizontal::Right, vertical::Top)
.draw(display)?;
self.status_bar.draw(display)?;

Ok(())
}
Expand Down

0 comments on commit 9e0c533

Please sign in to comment.