Update `README` of examples
This commit is contained in:
parent
26fbc9af00
commit
73d1353976
|
@ -100,6 +100,7 @@ A bunch of simpler examples exist:
|
||||||
- [`geometry`](geometry), a custom widget showcasing how to draw geometry with the `Mesh2D` primitive in [`iced_wgpu`](../wgpu).
|
- [`geometry`](geometry), a custom widget showcasing how to draw geometry with the `Mesh2D` primitive in [`iced_wgpu`](../wgpu).
|
||||||
- [`integration`](integration), a demonstration of how to integrate Iced in an existing graphical application.
|
- [`integration`](integration), a demonstration of how to integrate Iced in an existing graphical application.
|
||||||
- [`pane_grid`](pane_grid), a grid of panes that can be split, resized, and reorganized.
|
- [`pane_grid`](pane_grid), a grid of panes that can be split, resized, and reorganized.
|
||||||
|
- [`pick_list`](pick_list), a dropdown list of selectable options.
|
||||||
- [`pokedex`](pokedex), an application that displays a random Pokédex entry (sprite included!) by using the [PokéAPI].
|
- [`pokedex`](pokedex), an application that displays a random Pokédex entry (sprite included!) by using the [PokéAPI].
|
||||||
- [`progress_bar`](progress_bar), a simple progress bar that can be filled by using a slider.
|
- [`progress_bar`](progress_bar), a simple progress bar that can be filled by using a slider.
|
||||||
- [`solar_system`](solar_system), an animated solar system drawn using the `Canvas` widget and showcasing how to compose different transforms.
|
- [`solar_system`](solar_system), an animated solar system drawn using the `Canvas` widget and showcasing how to compose different transforms.
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
## Counter
|
## Pick-list
|
||||||
|
|
||||||
The classic counter example explained in the [`README`](../../README.md).
|
A dropdown list of selectable options.
|
||||||
|
|
||||||
|
It displays and positions an overlay based on the window position of the widget.
|
||||||
|
|
||||||
The __[`main`]__ file contains all the code of the example.
|
The __[`main`]__ file contains all the code of the example.
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<a href="https://gfycat.com/fairdeadcatbird">
|
<img src="https://user-images.githubusercontent.com/518289/87125075-2c232e80-c28a-11ea-95c2-769c610b8843.gif">
|
||||||
<img src="https://thumbs.gfycat.com/FairDeadCatbird-small.gif">
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
You can run it with `cargo run`:
|
You can run it with `cargo run`:
|
||||||
```
|
```
|
||||||
cargo run --package counter
|
cargo run --package pick_list
|
||||||
```
|
```
|
||||||
|
|
||||||
[`main`]: src/main.rs
|
[`main`]: src/main.rs
|
||||||
|
|
Loading…
Reference in New Issue