summaryrefslogtreecommitdiffstats
path: root/examples/scrollable/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-02-09Implement `From<u32>` instead of `u16` for `Length` and `Pixels`Libravatar Héctor Ramón Jiménez1-6/+6
2025-01-06Fix consistency of import orderingLibravatar Héctor Ramón Jiménez1-2/+2
2025-01-06chore: remove once_cell dependencyLibravatar Tommy Volk1-3/+4
2024-07-16Fix `Scrollable::spacing` not embedding the `Scrollbar`Libravatar Héctor Ramón Jiménez1-8/+6
2024-07-12Rename `embed_*` in `Scrollable` to simply `spacing`Libravatar Héctor Ramón Jiménez1-6/+8
2024-07-12Improve `Padding` ergonomicsLibravatar Héctor Ramón Jiménez1-3/+3
We expose free functions for creating a `Padding` and methods with the same name to modify its fields.
2024-07-12Re-export variants of `Length` and `alignment` typesLibravatar Héctor Ramón Jiménez1-11/+11
2024-07-12Introduce helper methods for alignment for all widgetsLibravatar Héctor Ramón Jiménez1-16/+16
2024-07-11Add support for embedded scrollbars for `scrollable`Libravatar Héctor Ramón Jiménez1-31/+30
Co-authored-by: dtzxporter <dtzxporter@users.noreply.github.com>
2024-06-19Introduce `daemon` API and unify shell runtimesLibravatar Héctor Ramón Jiménez1-1/+1
2024-06-14Replace `Command` with a new `Task` API with chain supportLibravatar Héctor Ramón Jiménez1-6/+6
2024-05-03Introduce `center` widget helperLibravatar Héctor Ramón Jiménez1-1/+1
... and also make `center_x` and `center_y` set `width` and `height` to `Length::Fill`, respectively. This targets the most common use case when centering things and removes a bunch of boilerplate as a result.
2024-03-24Use `Catalog` approach for all widgetsLibravatar Héctor Ramón Jiménez1-2/+2
2024-03-17Move `Program` to `application` moduleLibravatar Héctor Ramón Jiménez1-1/+1
2024-03-16Implement `Program::load` to specify startup `Command`Libravatar Héctor Ramón Jiménez1-14/+16
2024-03-16Introduce `Program` APILibravatar Héctor Ramón Jiménez1-18/+12
2024-03-05Simplify theming for `ProgressBar` widgetLibravatar Héctor Ramón Jiménez1-2/+3
2024-02-24Assert `scrollable` content size never fills scrolling axisLibravatar Héctor Ramón Jiménez1-30/+30
2024-02-15Make `horizontal_space` and `vertical_space` fill by defaultLibravatar Héctor Ramón Jiménez1-10/+10
2024-02-12Simplify `scrollable` styling APILibravatar Héctor Ramón Jiménez1-51/+2
2024-02-12Introduce an appearance for a scrollable, ability to customize the scrollbar ↵Libravatar dtzxporter1-1/+5
gap. Update scrollable.rs
2024-01-20Introduce `Border` struct analogous to `Shadow`Libravatar Héctor Ramón Jiménez1-8/+8
2024-01-10Reduce `padding` of `scrollable` exampleLibravatar Héctor Ramón Jiménez1-1/+1
2024-01-10Introduce `Widget::size_hint` and fix further layout inconsistenciesLibravatar Héctor Ramón Jiménez1-15/+8
2024-01-04Make `Shrink` have priority over `Fill` in layoutLibravatar Héctor Ramón Jiménez1-19/+10
2023-09-20Fix `clippy::default_trait_access`Libravatar Héctor Ramón Jiménez1-2/+2
2023-09-14Fix styling of horizontal scrollbar in `scrollable` exampleLibravatar Héctor Ramón Jiménez1-2/+2
2023-07-04Add scrollable alignment optionLibravatar Cory Forsstrom1-7/+45
2023-06-27Rename `ScrollbarProperties` to `Direction` in `scrollable`Libravatar Héctor Ramón Jiménez1-13/+13
2023-06-27Make vertical scroll properties optionalLibravatar Austin M. Reppert1-9/+9
Co-Authored-By: Austin M. Reppert <austinmreppert@gmail.com>
2023-05-23clean up rebase mistakeLibravatar Casper Storm1-19/+8
2023-05-23Extend border radius on relevant widgetsLibravatar Casper Storm1-10/+21
2023-05-21Support conversion from Fn trait to custom themeLibravatar Marien Zwart1-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.
2023-04-17Add scrollable `Viewport`Libravatar Cory Forsstrom1-3/+3
2023-04-14Add `scroll_to` operation for absolute scrollLibravatar Cory Forsstrom1-2/+2
2023-03-27Introduce `is_mouse_over_scrollbar` to `StyleSheet::hovered` for `Scrollable`Libravatar Héctor Ramón Jiménez1-11/+25
2023-02-27Remove `Fill` variant for `Alignment`Libravatar Héctor Ramón Jiménez1-1/+0
Implementing this generically in our `flex` logic has an exponential cost. Let's explore other options!
2023-02-17Use `f32` in `Length::Units` and rename it to `Fixed`Libravatar Héctor Ramón Jiménez1-11/+11
2023-01-08Add some missing `spacing` to `scrollable` exampleLibravatar Héctor Ramón Jiménez1-0/+2
2023-01-08Introduce `RelativeOffset` type in `scrollable`Libravatar Héctor Ramón Jiménez1-7/+7
2022-12-29Reworked Scrollable to account for lack of widget order guarantees.Libravatar bungoboingo1-80/+54
Fixed thumb "snapping" bug on scrollable when cursor is out of bounds.
2022-12-29Add multidirectional scrolling capabilities to the existing Scrollable.Libravatar Bingus1-183/+323
2022-11-03Box `Custom` in `Theme`Libravatar Héctor Ramón Jiménez1-1/+1
2022-11-03Remove unnecessary `clone` in `scrollable` exampleLibravatar Héctor Ramón Jiménez1-1/+1
2022-11-03Run `cargo fmt`Libravatar Héctor Ramón Jiménez1-3/+1
2022-11-03fix: clippy lint ↵Libravatar Ashley Wulber1-1/+1
https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
2022-11-03fix: scrollable exampleLibravatar Ashley Wulber1-5/+14
2022-08-04Implement `scrollable::snap_to` operationLibravatar Héctor Ramón Jiménez1-16/+36
2022-07-27Fix `clippy` lintsLibravatar Héctor Ramón Jiménez1-1/+1
2022-07-27Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez1-94/+76