summaryrefslogtreecommitdiffstats
path: root/examples (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add `line_height` to `checkbox::Icon`Libravatar Héctor Ramón Jiménez2023-05-081-0/+1
|
* Merge branch 'master' into advanced-textLibravatar Héctor Ramón Jiménez2023-05-022-5/+4
|\
| * Use `find(..)` instead of `filter(..).next()`Libravatar Héctor Ramón Jiménez2023-04-211-2/+1
| |
| * Use point-free notationLibravatar Héctor Ramón Jiménez2023-04-211-1/+1
| |
| * wgpu 0.16Libravatar David Huculak2023-04-201-2/+1
| |
| * Add scrollable `Viewport`Libravatar Cory Forsstrom2023-04-171-3/+3
| |
| * Add `scroll_to` operation for absolute scrollLibravatar Cory Forsstrom2023-04-141-2/+2
| |
* | Update `glyphon` and `cosmic-text`Libravatar Héctor Ramón Jiménez2023-05-021-1/+2
| |
* | Introduce `text::Shaping` enum and replace magic booleanLibravatar Héctor Ramón Jiménez2023-05-021-1/+2
| |
* | Fix build of `integration` example for Wasm targetLibravatar Héctor Ramón Jiménez2023-04-271-1/+2
| |
* | Merge branch 'master' into advanced-textLibravatar Héctor Ramón Jiménez2023-04-1715-153/+201
|\|
| * Fix Wasm target for `integration_wgpu`Libravatar Héctor Ramón Jiménez2023-04-131-1/+2
| |
| * Update `env_logger` in `integration_wgpu` exampleLibravatar Héctor Ramón Jiménez2023-04-131-1/+1
| |
| * Get surface capabilities only once in `iced_wgpu`Libravatar Héctor Ramón Jiménez2023-04-131-5/+4
| |
| * Update `wgpu` to `0.15`Libravatar Elham Aryanpur2023-04-131-14/+23
| |
| * Remove `text_input` exampleLibravatar Héctor Ramón Jiménez2023-04-123-120/+0
| |
| * Rename `on_change` to `on_input` for `TextInput`Libravatar Héctor Ramón Jiménez2023-04-1211-16/+16
| |
| * Introduce disabled state for `TextInput`Libravatar Dan Mishin2023-04-1213-66/+166
| |
| * Use `Result::is_err` in `websocket` exampleLibravatar Héctor Ramón Jiménez2023-04-111-1/+1
| |
| * Use `127.0.0.1` instead of `localhost` in `websocket` exampleLibravatar Héctor Ramón Jiménez2023-04-111-1/+1
| |
| * Implement `subscription::channel` and simplify `unfold`Libravatar Héctor Ramón Jiménez2023-04-112-58/+59
| |
| * Fix `current` step in `tour`Libravatar Héctor Ramón Jiménez2023-04-111-1/+1
| |
| * Move `ICON_FONT` constant in `tour` to `text_input` helperLibravatar Héctor Ramón Jiménez2023-04-111-5/+5
| |
| * Collapse `Font` import in `tour` exampleLibravatar Héctor Ramón Jiménez2023-04-111-2/+1
| |
| * Rename `IconPosition` to `Side` in `text_input`Libravatar Héctor Ramón Jiménez2023-04-111-1/+1
| |
| * Move `Icon` layout logic to `layout` in `text_input`Libravatar Héctor Ramón Jiménez2023-04-111-2/+3
| | | | | | | | Also add `Icon::spacing` field.
| * Use `f32` for `Icon::size` and remove unnecessary conversionsLibravatar Héctor Ramón Jiménez2023-04-111-1/+1
| |
| * Removed text_input example in favor for TourLibravatar Casper Storm2023-04-115-124/+66
| |
| * Changed `Handle` to `Icon` to be consistentLibravatar Casper Storm2023-04-111-9/+9
| |