summaryrefslogtreecommitdiffstats
path: root/examples (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
| * feat: added handle to text_inputLibravatar Casper Storm2023-04-114-0/+112
| |
| * Merge pull request #1669 from GyulyVGC/masterLibravatar Héctor Ramón2023-03-271-11/+25
| |\ | | | | | | Added scrollable style `focused` to be displayed when mouse is over the scrollable area
| | * Introduce `is_mouse_over_scrollbar` to `StyleSheet::hovered` for `Scrollable`Libravatar Héctor Ramón Jiménez2023-03-271-11/+25
| | |
* | | Update `wgpu` and `cosmic-text`Libravatar Héctor Ramón Jiménez2023-04-081-12/+15
| | |
* | | Introduce support for `Font` attributesLibravatar Héctor Ramón Jiménez2023-03-302-7/+10
| | |
* | | Merge branch 'master' into advanced-textLibravatar Héctor Ramón Jiménez2023-03-173-15/+7
|\| |
| * | Fix `clippy` lints for Rust 1.68Libravatar Héctor Ramón Jiménez2023-03-142-14/+6
| | |
| * | Use correct package name in checkbox example docsLibravatar lupd2023-03-081-1/+1
| | |
* | | Merge branch 'master' into feature/software-rendererLibravatar Héctor Ramón Jiménez2023-03-074-5/+26
|\| |
| * | Expose `window` commands for Wasm buildsLibravatar Héctor Ramón Jiménez2023-03-031-11/+4
| | |
| * | Added example of toggling fullscreen to TODOs.Libravatar Bingus2023-03-021-2/+28
| | |