Skip to content
Snippets Groups Projects
Verified Commit 9396c5d8 authored by Volkor Barbarian Warrior's avatar Volkor Barbarian Warrior
Browse files

clean up node and about

parent e7a2f5ce
No related branches found
No related tags found
No related merge requests found
use core::f32;
use egui::{text::TextWrapping, Color32, Label, RichText, Separator};
use egui_tiles::UiResponse;
use crate::{built_info, gui::Pane};
use egui::{Color32, Label, RichText};
use crate::built_info;
/// Shows information about the program.
/// you know, the normal boring stuff
......@@ -17,7 +14,7 @@ pub fn about_ui(ui: &mut egui::Ui) {
// Show cool ascii logo
// TODO: make this not wrap or truncate with ...
// double TODO: replace the logo with a cool ascii art of actual yams (vegetable) with text
let mut cool_logo = RichText::new("
let cool_logo = RichText::new("
▓██ ██▓ ▄▄▄ ███▄ ▄███▓ ██████
▒██ ██▒▒████▄ ▓██▒▀█▀ ██▒▒██ ▒
▒██ ██░▒██ ▀█▄ ▓██ ▓██░░ ▓██▄
......@@ -37,13 +34,6 @@ pub fn about_ui(ui: &mut egui::Ui) {
} else {
Color32::DARK_RED
};
// Although we need to disable some stuff to make it not look like crap most of the time...
let text_wrapping = TextWrapping {
max_width: f32::MAX,
overflow_character: None,
..Default::default()
};
ui.add(Label::new(cool_logo.color(color)));
......
......@@ -163,31 +163,4 @@ pub fn nodelist_ui(ui: &mut egui::Ui) {
});
}
});
}
// /// Initialise the raw GUI.
// /// We pass all tiling 'widgets' to their own files.
// pub(crate) async fn run_gui() {
// debug!("Running in GUI Mode!");
// use eframe::{App, egui};
// struct MyApp;
// impl App for MyApp {
// fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
// // Table Panel, showing nodes in a list.
// egui::CentralPanel::default().show(ctx, |ui| {
// });
// }
// }
// let native_options = eframe::NativeOptions::default();
// eframe::run_native(
// "Yet Another Meshtastic Server (GUI)",
// native_options,
// Box::new(|_cc| Ok(Box::new(MyApp))),
// ).unwrap();
// }
\ No newline at end of file
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment