Skip to content

Commit

Permalink
Tweak demo
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Sep 3, 2024
1 parent e54ad3a commit 7adc032
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions demo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions demo/src/split_scroll_demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}

Expand Down

0 comments on commit 7adc032

Please sign in to comment.