mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Automatically generate screenshots for all examples (#2379)
This commit is contained in:
@@ -9,5 +9,7 @@ publish = false
|
||||
|
||||
|
||||
[dependencies]
|
||||
eframe = { path = "../../crates/eframe" }
|
||||
eframe = { path = "../../crates/eframe", features = [
|
||||
"__screenshot", # __screenshot is so we can dump a ascreenshot using EFRAME_SCREENSHOT_TO
|
||||
] }
|
||||
rfd = "0.10"
|
||||
|
||||
@@ -3,3 +3,5 @@ How to show a file dialog using [`rfd`](https://github.com/PolyMeilex/rfd).
|
||||
```sh
|
||||
cargo run -p file_dialog
|
||||
```
|
||||
|
||||

|
||||
|
||||
BIN
examples/file_dialog/screenshot.png
Normal file
BIN
examples/file_dialog/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
@@ -5,6 +5,7 @@ use eframe::egui;
|
||||
fn main() {
|
||||
let options = eframe::NativeOptions {
|
||||
drag_and_drop_support: true,
|
||||
initial_window_size: Some(egui::vec2(320.0, 240.0)),
|
||||
..Default::default()
|
||||
};
|
||||
eframe::run_native(
|
||||
|
||||
Reference in New Issue
Block a user