From 7adc0328143a4cf7ca6ee7c8ab48e441548c6b1c Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 3 Sep 2024 10:45:29 +0200 Subject: [PATCH] Tweak demo --- demo/src/main.rs | 9 ++------- demo/src/split_scroll_demo.rs | 6 +++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/demo/src/main.rs b/demo/src/main.rs index 3edfabc..33a65a3 100644 --- a/demo/src/main.rs +++ b/demo/src/main.rs @@ -8,13 +8,8 @@ fn main() -> eframe::Result { let native_options = eframe::NativeOptions { viewport: egui::ViewportBuilder::default() - .with_inner_size([400.0, 300.0]) - .with_min_inner_size([300.0, 220.0]) - .with_icon( - // NOTE: Adding an icon is optional - eframe::icon_data::from_png_bytes(&include_bytes!("../assets/icon-256.png")[..]) - .expect("Failed to load icon"), - ), + .with_inner_size([640.0, 580.0]) + .with_min_inner_size([300.0, 220.0]), ..Default::default() }; eframe::run_native( diff --git a/demo/src/split_scroll_demo.rs b/demo/src/split_scroll_demo.rs index 9d118d5..0275c79 100644 --- a/demo/src/split_scroll_demo.rs +++ b/demo/src/split_scroll_demo.rs @@ -31,17 +31,17 @@ impl SplitScrollDelegate for DemoScrollDelegate { fn right_top_ui(&mut self, ui: &mut Ui) { checkerboard(ui); - ui.label("Horizontally scrollable"); + ui.label("Horizontally scrollable. This is where the fixed rows of a table view will go."); } fn left_bottom_ui(&mut self, ui: &mut Ui) { checkerboard(ui); - ui.label("Vertically scrollable"); + ui.label("Vertically scrollable. This is where the fixed columns of a table view will go, for instance the row number."); } fn right_bottom_ui(&mut self, ui: &mut Ui) { checkerboard(ui); - ui.label("Fully scrollable"); + ui.label("Fully scrollable. This is where the bulk of the table view will go."); } }