Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Support conversion from Fn trait to custom theme | 2023-05-21 | 1 | -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_pane | 2023-05-19 | 1 | -1/+3 | |
|\ | | | | | [Feature] Enhance PaneGrid to split panes by drag & drop | ||||
| * | Take pane state internally | 2023-05-19 | 1 | -4/+1 | |
| | | |||||
| * | Add pane_grid functionality to split a pane with another pane | 2023-05-16 | 1 | -1/+6 | |
| | | |||||
* | | Keep `tour` buttons solid | 2023-05-19 | 1 | -50/+5 | |
| | | | | | | | | The gradients feel a bit out of place currently. | ||||
* | | Implement `custom` helper for `theme::Button` | 2023-05-19 | 1 | -8/+6 | |
| | | |||||
* | | Remove `Builder` abstractions for gradients | 2023-05-19 | 3 | -19/+21 | |
| | | |||||
* | | Added support for gradients as background variants + other optimizations. | 2023-05-11 | 6 | -174/+62 | |
|/ | |||||
* | Remove OpenGL mentions in `README`s | 2023-05-11 | 1 | -2/+1 | |
| | |||||
* | Bundle `tiny-skia` backend together with `iced_renderer` | 2023-05-10 | 1 | -1/+1 | |
| | |||||
* | Add `line_height` to `checkbox::Icon` | 2023-05-08 | 1 | -0/+1 | |
| | |||||
* | Merge branch 'master' into advanced-text | 2023-05-02 | 2 | -5/+4 | |
|\ | |||||
| * | Use `find(..)` instead of `filter(..).next()` | 2023-04-21 | 1 | -2/+1 | |
| | | |||||
| * | Use point-free notation | 2023-04-21 | 1 | -1/+1 | |
| | | |||||
| * | wgpu 0.16 | 2023-04-20 | 1 | -2/+1 | |
| | | |||||
| * | Add scrollable `Viewport` | 2023-04-17 | 1 | -3/+3 | |
| | | |||||
| * | Add `scroll_to` operation for absolute scroll | 2023-04-14 | 1 | -2/+2 | |
| | | |||||
* | | Update `glyphon` and `cosmic-text` | 2023-05-02 | 1 | -1/+2 | |
| | | |||||
* | | Introduce `text::Shaping` enum and replace magic boolean | 2023-05-02 | 1 | -1/+2 | |
| | | |||||
* | | Fix build of `integration` example for Wasm target | 2023-04-27 | 1 | -1/+2 | |
| | | |||||
* | | Merge branch 'master' into advanced-text | 2023-04-17 | 15 | -153/+201 | |
|\| | |||||
| * | Fix Wasm target for `integration_wgpu` | 2023-04-13 | 1 | -1/+2 | |
| | | |||||
| * | Update `env_logger` in `integration_wgpu` example | 2023-04-13 | 1 | -1/+1 | |
| | | |||||
| * | Get surface capabilities only once in `iced_wgpu` | 2023-04-13 | 1 | -5/+4 | |
| | | |||||
| * | Update `wgpu` to `0.15` | 2023-04-13 | 1 | -14/+23 | |
| | | |||||
| * | Remove `text_input` example | 2023-04-12 | 3 | -120/+0 | |
| | | |||||
| * | Rename `on_change` to `on_input` for `TextInput` | 2023-04-12 | 11 | -16/+16 | |
| | | |||||
| * | Introduce disabled state for `TextInput` | 2023-04-12 | 13 | -66/+166 | |
| | | |||||
| * | Use `Result::is_err` in `websocket` example | 2023-04-11 | 1 | -1/+1 | |
| | | |||||
| * | Use `127.0.0.1` instead of `localhost` in `websocket` example | 2023-04-11 | 1 | -1/+1 | |
| | | |||||
| * | Implement `subscription::channel` and simplify `unfold` | 2023-04-11 | 2 | -58/+59 | |
| | | |||||
| * | Fix `current` step in `tour` | 2023-04-11 | 1 | -1/+1 | |
| | | |||||
| * | Move `ICON_FONT` constant in `tour` to `text_input` helper | 2023-04-11 | 1 | -5/+5 | |
| | | |||||
| * | Collapse `Font` import in `tour` example | 2023-04-11 | 1 | -2/+1 | |
| | | |||||
| * | Rename `IconPosition` to `Side` in `text_input` | 2023-04-11 | 1 | -1/+1 | |
| | | |||||
| * | Move `Icon` layout logic to `layout` in `text_input` | 2023-04-11 | 1 | -2/+3 | |
| | | | | | | | | Also add `Icon::spacing` field. | ||||
| * | Use `f32` for `Icon::size` and remove unnecessary conversions | 2023-04-11 | 1 | -1/+1 | |
| | | |||||
| * | Removed text_input example in favor for Tour | 2023-04-11 | 5 | -124/+66 | |
| | | |||||
| * | Changed `Handle` to `Icon` to be consistent | 2023-04-11 | 1 | -9/+9 | |
| | | |||||
| * | feat: added handle to text_input | 2023-04-11 | 4 | -0/+112 | |
| | | |||||
| * | Merge pull request #1669 from GyulyVGC/master | 2023-03-27 | 1 | -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` | 2023-03-27 | 1 | -11/+25 | |
| | | | |||||
* | | | Update `wgpu` and `cosmic-text` | 2023-04-08 | 1 | -12/+15 | |
| | | | |||||
* | | | Introduce support for `Font` attributes | 2023-03-30 | 2 | -7/+10 | |
| | | | |||||
* | | | Merge branch 'master' into advanced-text | 2023-03-17 | 3 | -15/+7 | |
|\| | | |||||
| * | | Fix `clippy` lints for Rust 1.68 | 2023-03-14 | 2 | -14/+6 | |
| | | | |||||
| * | | Use correct package name in checkbox example docs | 2023-03-08 | 1 | -1/+1 | |
| | | | |||||
* | | | Merge branch 'master' into feature/software-renderer | 2023-03-07 | 4 | -5/+26 | |
|\| | | |||||
| * | | Expose `window` commands for Wasm builds | 2023-03-03 | 1 | -11/+4 | |
| | | | |||||
| * | | Added example of toggling fullscreen to TODOs. | 2023-03-02 | 1 | -2/+28 | |
| | | |