gled 2.14.0

gled is an application for creating animations and effects on artnet or dmx installations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::App;
use egui::{Align, Layout, Ui};

impl App {
    pub fn no_project(&mut self, ui: &mut 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();
            }
        });
    }
}