Skip to content

Commit

Permalink
Fix arc example compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
C47D committed Nov 24, 2024
1 parent 3b3abb3 commit 35a45b5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,23 @@ fn main() -> Result<(), LvError> {
let mut screen_style = Style::default();
screen_style.set_bg_color(Color::from_rgb((255, 255, 255)));
screen_style.set_radius(0);
screen.add_style(Part::Main, &mut screen_style)?;
screen.add_style(Part::Main, &mut screen_style);

// Create the arc object
let mut arc = Arc::create(&mut screen)?;
arc.set_size(150, 150)?;
arc.set_align(Align::Center, 0, 10)?;
arc.set_start_angle(135)?;
arc.set_end_angle(135)?;
arc.set_size(150, 150);
arc.set_align(Align::Center, 0, 10);
arc.set_start_angle(135);
arc.set_end_angle(135);

let mut loading_lbl = Label::create(&mut screen)?;
loading_lbl.set_text(CString::new("Loading...").unwrap().as_c_str())?;
loading_lbl.set_align(Align::OutTopMid, 0, 0)?;
loading_lbl.set_align(Align::OutTopMid, 0, 0);
//loading_lbl.set_label_align(LabelAlign::Center)?;

let mut loading_style = Style::default();
loading_style.set_text_color(Color::from_rgb((0, 0, 0)));
loading_lbl.add_style(Part::Main, &mut loading_style)?;
loading_lbl.add_style(Part::Main, &mut loading_style);

let mut angle = 0;
let mut forward = true;
Expand Down

0 comments on commit 35a45b5

Please sign in to comment.