Advertisement
AbyssWolf

Layout

May 19th, 2024
778
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.62 KB | None | 0 0
  1. // Bottom Panel - Status Bar
  2.         egui::TopBottomPanel::bottom("status_bar").show(ctx, |ui| {
  3.             // Horizontal Layout
  4.             ui.horizontal(|hor| {
  5.                 // Left Align
  6.                 hor.with_layout(Layout::default().with_cross_align(Align::LEFT),
  7.                 |l| {
  8.                     functions::Func::powered_by_egui_and_eframe(l);
  9.                 });
  10.  
  11.                 // Right Align
  12.                 hor.with_layout(Layout::default().with_cross_align(Align::RIGHT),
  13.                 |r|{
  14.                     global_dark_light_mode_buttons(r);
  15.                 })
  16.             });
  17.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement