Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Volkor Barbarian Warrior
yams
Commits
9396c5d8
Verified
Commit
9396c5d8
authored
1 month ago
by
Volkor Barbarian Warrior
Browse files
Options
Downloads
Patches
Plain Diff
clean up node and about
parent
e7a2f5ce
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gui/widgets/about.rs
+3
-13
3 additions, 13 deletions
src/gui/widgets/about.rs
src/gui/widgets/node_list.rs
+1
-28
1 addition, 28 deletions
src/gui/widgets/node_list.rs
with
4 additions
and
41 deletions
src/gui/widgets/about.rs
+
3
−
13
View file @
9396c5d8
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
)));
...
...
This diff is collapsed.
Click to expand it.
src/gui/widgets/node_list.rs
+
1
−
28
View file @
9396c5d8
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment