This commit is contained in:
Tiago Batista Cardoso
2025-11-30 14:49:16 +01:00
parent 85e78447a7
commit 721d52a028
5 changed files with 111 additions and 45 deletions

View File

@@ -1,5 +1,5 @@
use client_network::{start_p2p_executor, NetworkCommand, NetworkEvent};
use crate::gui_app::P2PClientApp;
use client_network::{NetworkCommand, NetworkEvent, start_p2p_executor};
mod gui_app;
@@ -16,8 +16,9 @@ async fn main() -> eframe::Result<()> {
// 3. Configure and Run the Eframe/Egui GUI
let options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default()
.with_inner_size([1000.0, 700.0])
.with_inner_size([700.0, 500.0])
.with_min_inner_size([700.0, 500.0])
.with_resizable(false)
.with_icon(
eframe::icon_data::from_png_bytes(include_bytes!("../assets/icon.png"))
.expect("Failed to load icon"),
@@ -33,4 +34,4 @@ async fn main() -> eframe::Result<()> {
Ok(Box::new(app))
}),
)
}
}