summaryrefslogtreecommitdiffstats
path: root/examples (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Decouple `Mesh` primitives from main `Primitive` typeLibravatar Héctor Ramón Jiménez2023-06-291-14/+13
|
* Introduce custom backend-specific primitivesLibravatar Héctor Ramón Jiménez2023-06-293-6/+6
|
* Fix `loading_spinners` exampleLibravatar Héctor Ramón Jiménez2023-06-282-8/+10
|
* Merge pull request #1878 from AustinMReppert/masterLibravatar Héctor Ramón2023-06-271-14/+14
|\ | | | | Minor Scrollable Improvements
| * Rename `ScrollbarProperties` to `Direction` in `scrollable`Libravatar Héctor Ramón Jiménez2023-06-271-13/+13
| |
| * Make vertical scroll properties optionalLibravatar Austin M. Reppert2023-06-271-9/+9
| | | | | | | | Co-Authored-By: Austin M. Reppert <austinmreppert@gmail.com>
* | Merge pull request #1902 from nicksenger/loading-spinnersLibravatar Héctor Ramón2023-06-276-0/+1019
|\ \ | |/ |/| Example loading spinners
| * refactor: remove unnecessary canvas complexityLibravatar Nick Senger2023-06-091-120/+67
| |
| * comment: fix typoLibravatar Nick Senger2023-06-081-4/+4
| |
| * fix: RedrawRequest::NextFrame -> RedrawRequest::At()Libravatar Nick Senger2023-06-082-2/+10
| |
| * comment: cleanup importsLibravatar Nick Senger2023-06-084-65/+58
| |
| * fix: rotation in terms of durationLibravatar Nick Senger2023-06-071-29/+54
| |
| * feat: use lyon for easingLibravatar Nick Senger2023-06-077-116/+214
| |
| * feat: add progress indicators exampleLibravatar Nick Senger2023-06-076-0/+948
| |
* | Merge pull request #1845 from bungoboingo/feat/offscreen-renderingLibravatar Héctor Ramón2023-06-272-0/+331
|\ \ | | | | | | Feat: Offscreen Rendering & Screenshots
| * | Move `Screenshot` inside `window` moduleLibravatar Héctor Ramón Jiménez2023-06-271-4/+5
| | |
| * | Adjusted offscreen pass to be a render pass vs compute for compat with ↵Libravatar Bingus2023-06-081-1/+1
| | | | | | | | | | | | web-colors flag.
| * | Fix width of crop labels in `screenshot` example (again)Libravatar Héctor Ramón Jiménez2023-06-061-4/+4
| | |
| * | Rearrange controls of the `screenshot` exampleLibravatar Héctor Ramón Jiménez2023-06-061-32/+52
| | |
| * | Introduce `on_press_maybe` helper for `Button`Libravatar Héctor Ramón Jiménez2023-06-061-2/+3
| | |
| * | Wrap `Screenshot::bytes` in an `Arc` and implement `AsRef<[u8]>`Libravatar Héctor Ramón Jiménez2023-06-061-1/+1
| | |
| * | Avoid `iced_image` import in `screenshot` exampleLibravatar Héctor Ramón Jiménez2023-06-061-5/+4
| | |
| * | Fix punctuation in `screenshot` exampleLibravatar Héctor Ramón Jiménez2023-06-061-2/+2
| | |
| * | Fix width of crop labels in `screenshot` exampleLibravatar Héctor Ramón Jiménez2023-06-061-4/+4
| | |
| * | Create `numeric_input` helper in `screenshot` exampleLibravatar Héctor Ramón Jiménez2023-06-061-44/+54
| | |
| * | Use `Container::Box` in `screenshot` exampleLibravatar Héctor Ramón Jiménez2023-06-061-17/+1
| | |
| * | Added offscreen rendering support for wgpu & tiny-skia exposed with the ↵Libravatar Bingus2023-06-062-0/+316
| |/ | | | | | | window::screenshot command.
* | Center `Submit` button vertically in `styling` exampleLibravatar Héctor Ramón Jiménez2023-06-211-1/+3
| |
* | Add nested picklist to modal exampleLibravatar Cory Forsstrom2023-06-141-2/+55
| |
* | Introduce internal `overlay::Nested` for `UserInterface`Libravatar Cory Forsstrom2023-06-141-1/+6
| |
* | Use `mouse::Cursor` in `integration` exampleLibravatar Héctor Ramón Jiménez2023-06-081-15/+27
| |
* | Extend cursor availability to the shell levelLibravatar Héctor Ramón Jiménez2023-06-081-2/+3
| |
* | Increase width of controls in `pane_grid` exampleLibravatar Héctor Ramón Jiménez2023-06-081-1/+1
| |
* | Take `Rectangle` by value in `Cursor` APILibravatar Héctor Ramón Jiménez2023-06-085-17/+16
| |
* | Implement basic cursor availabilityLibravatar Héctor Ramón Jiménez2023-06-0813-98/+95
|/
* Introduce `web-colors` feature flag to enable sRGB linear blendingLibravatar Héctor Ramón Jiménez2023-05-311-9/+10
| | | | | | | | | | | | | | | This is how browsers perform color management. They treat gamma-corrected sRGB colors as if they were linear RGB. Correctness aside, this mode is introduced for legacy reasons. Most UI/UX tooling uses this color management as well, and many have created an intuition about how color should behave from interacting with a browser. This feature flag should facilitate application development with `iced` in those cases. More details: https://webcolorisstillbroken.com/
* Use `as_slice` instead of `as_ref` in `checkbox` exampleLibravatar Héctor Ramón Jiménez2023-05-251-1/+1
|
* Upgrade `palette` dependencyLibravatar Clark Moody2023-05-252-24/+28
|
* clean up rebase mistakeLibravatar Casper Storm2023-05-231-19/+8
|
* Extend border radius on relevant widgetsLibravatar Casper Storm2023-05-232-11/+22
|
* Support conversion from Fn trait to custom themeLibravatar Marien Zwart2023-05-211-19/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...instead of just from function pointers. I'm making this change not because I actually want to pass a closure, but to make passing a single fixed function work. This commit also simplifies the scrollable example slightly, and without the other half of this change that simplified example fails to compile with: ``` error[E0277]: the trait bound `iced::theme::ProgressBar: From<for<'a> fn(&'a Theme) -> iced::widget::progress_bar::Appearance {progress_bar_custom_style}>` is not satisfied --> examples/scrollable/src/main.rs:292:28 | 292 | .style(progress_bar_custom_style) | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<for<'a> fn(&'a Theme) -> iced::widget::progress_bar::Appearance {progress_bar_custom_style}>` is not implemented for `iced::theme::ProgressBar` | | | required by a bound introduced by this call | = help: the trait `From<for<'a> fn(&'a Theme) -> iced::widget::progress_bar::Appearance>` is implemented for `iced::theme::ProgressBar` = note: required for `for<'a> fn(&'a Theme) -> iced::widget::progress_bar::Appearance {progress_bar_custom_style}` to implement `Into<iced::theme::ProgressBar>` note: required by a bound in `iced::widget::ProgressBar::<Renderer>::style` --> /home/marienz/src/iced/widget/src/progress_bar.rs:77:21 | 77 | style: impl Into<<Renderer::Theme as StyleSheet>::Style>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ProgressBar::<Renderer>::style` ``` This happens because `progress_bar_custom_style` by itself is a function item, which is typically coerced to a function pointer when one is needed, but not in this case. It is possible to work around this on the caller's side, but especially since the compiler diagnostic for this is a bit rough (see https://github.com/rust-lang/rust/issues/100116) let's try to make it work out of the box.
* Merge pull request #1856 from jhff/pane_grid_split_with_dragged_paneLibravatar Héctor Ramón2023-05-191-1/+3
|\ | | | | [Feature] Enhance PaneGrid to split panes by drag & drop
| * Take pane state internallyLibravatar Joao Freitas2023-05-191-4/+1
| |
| * Add pane_grid functionality to split a pane with another paneLibravatar Joao Freitas2023-05-161-1/+6
| |
* | Keep `tour` buttons solidLibravatar Héctor Ramón Jiménez2023-05-191-50/+5
| | | | | | | | The gradients feel a bit out of place currently.
* | Implement `custom` helper for `theme::Button`Libravatar Héctor Ramón Jiménez2023-05-191-8/+6
| |
* | Remove `Builder` abstractions for gradientsLibravatar Héctor Ramón Jiménez2023-05-193-19/+21
| |
* | Added support for gradients as background variants + other optimizations.Libravatar Bingus2023-05-116-174/+62
|/
* Remove OpenGL mentions in `README`sLibravatar Héctor Ramón Jiménez2023-05-111-2/+1
|
* Bundle `tiny-skia` backend together with `iced_renderer`Libravatar Héctor Ramón Jiménez2023-05-101-1/+1
|