gled 2.8.1

gled is an application for creating animations and effects on artnet or wled light installations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use egui::{Align, Context, Layout};

use super::App;

impl App {
    pub fn no_project(&mut self, ctx: &Context) {
        egui::CentralPanel::default().show(ctx, |ui| {
            ui.add_space(ui.available_height() / 2.0 - 20.0);
            ui.with_layout(Layout::top_down(Align::Center), |ui| {
                ui.heading("No project loaded!");
                ui.add_space(10.0);
                if ui.button("Load Project").clicked() {
                    self.windows.projects.open();
                }
            });
        });
    }
}