summaryrefslogtreecommitdiffstats
path: root/examples/scrollable (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update all `examples` to Rust 2024Libravatar Héctor Ramón Jiménez2025-02-211-1/+1
|
* Implement `From<u32>` instead of `u16` for `Length` and `Pixels`Libravatar Héctor Ramón Jiménez2025-02-091-6/+6
|
* Fix consistency of import orderingLibravatar Héctor Ramón Jiménez2025-01-061-2/+2
|
* chore: remove once_cell dependencyLibravatar Tommy Volk2025-01-062-5/+4
|
* Fix `Scrollable::spacing` not embedding the `Scrollbar`Libravatar Héctor Ramón Jiménez2024-07-161-8/+6
|
* Rename `embed_*` in `Scrollable` to simply `spacing`Libravatar Héctor Ramón Jiménez2024-07-121-6/+8
|
* Improve `Padding` ergonomicsLibravatar Héctor Ramón Jiménez2024-07-121-3/+3
| | | | | We expose free functions for creating a `Padding` and methods with the same name to modify its fields.
* Re-export variants of `Length` and `alignment` typesLibravatar Héctor Ramón Jiménez2024-07-121-11/+11
|
* Introduce helper methods for alignment for all widgetsLibravatar Héctor Ramón Jiménez2024-07-121-16/+16
|
* Add support for embedded scrollbars for `scrollable`Libravatar Héctor Ramón Jiménez2024-07-111-31/+30
| | | | Co-authored-by: dtzxporter <dtzxporter@users.noreply.github.com>
* Introduce `daemon` API and unify shell runtimesLibravatar Héctor Ramón Jiménez2024-06-191-1/+1
|
* Replace `Command` with a new `Task` API with chain supportLibravatar Héctor Ramón Jiménez2024-06-141-6/+6
|
* Introduce `center` widget helperLibravatar Héctor Ramón Jiménez2024-05-031-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.
* Use `Catalog` approach for all widgetsLibravatar Héctor Ramón Jiménez2024-03-241-2/+2
|
* Move `Program` to `application` moduleLibravatar Héctor Ramón Jiménez2024-03-171-1/+1
|
* Implement `Program::load` to specify startup `Command`Libravatar Héctor Ramón Jiménez2024-03-161-14/+16
|
* Introduce `Program` APILibravatar Héctor Ramón Jiménez2024-03-161-18/+12
|
* Simplify theming for `ProgressBar` widgetLibravatar Héctor Ramón Jiménez2024-03-051-2/+3
|
* Assert `scrollable` content size never fills scrolling axisLibravatar Héctor Ramón Jiménez2024-02-241-30/+30
|
* Make `horizontal_space` and `vertical_space` fill by defaultLibravatar Héctor Ramón Jiménez2024-02-151-10/+10
|
* Simplify `scrollable` styling APILibravatar Héctor Ramón Jiménez2024-02-121-51/+2
|
* Introduce an appearance for a scrollable, ability to customize the scrollbar ↵Libravatar dtzxporter2024-02-121-1/+5
| | | | | | gap. Update scrollable.rs
* Introduce `Border` struct analogous to `Shadow`Libravatar Héctor Ramón Jiménez2024-01-201-8/+8
|
* Reduce `padding` of `scrollable` exampleLibravatar Héctor Ramón Jiménez2024-01-101-1/+1
|
* Introduce `Widget::size_hint` and fix further layout inconsistenciesLibravatar Héctor Ramón Jiménez2024-01-101-15/+8
|
* Make `Shrink` have priority over `Fill` in layoutLibravatar Héctor Ramón Jiménez2024-01-041-19/+10
|
* Fix `clippy::default_trait_access`Libravatar Héctor Ramón Jiménez2023-09-201-2/+2
|
* Fix styling of horizontal scrollbar in `scrollable` exampleLibravatar Héctor Ramón Jiménez2023-09-141-2/+2
|
* Use workspace dependencies and package inheritanceLibravatar Héctor Ramón Jiménez2023-09-041-2/+4
| | | | | | We are also taking this as a chance to synchronize the versions of all the crates! Because of this, we will skip the `0.11` version.
* Add scrollable alignment optionLibravatar Cory Forsstrom2023-07-041-7/+45
|
* 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>
* clean up rebase mistakeLibravatar Casper Storm2023-05-231-19/+8
|
* Extend border radius on relevant widgetsLibravatar Casper Storm2023-05-231-10/+21
|
* 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.
* Add scrollable `Viewport`Libravatar Cory Forsstrom2023-04-171-3/+3
|
* Add `scroll_to` operation for absolute scrollLibravatar Cory Forsstrom2023-04-141-2/+2
|
* 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
| |
* | Remove `Fill` variant for `Alignment`Libravatar Héctor Ramón Jiménez2023-02-271-1/+0
|/ | | | | Implementing this generically in our `flex` logic has an exponential cost. Let's explore other options!
* Use `f32` in `Length::Units` and rename it to `Fixed`Libravatar Héctor Ramón Jiménez2023-02-171-11/+11
|
* Add some missing `spacing` to `scrollable` exampleLibravatar Héctor Ramón Jiménez2023-01-081-0/+2
|
* Introduce `RelativeOffset` type in `scrollable`Libravatar Héctor Ramón Jiménez2023-01-081-7/+7
|
* Reworked Scrollable to account for lack of widget order guarantees.Libravatar bungoboingo2022-12-292-81/+55
| | | | Fixed thumb "snapping" bug on scrollable when cursor is out of bounds.
* Add multidirectional scrolling capabilities to the existing Scrollable.Libravatar Bingus2022-12-293-183/+324
|
* Box `Custom` in `Theme`Libravatar Héctor Ramón Jiménez2022-11-031-1/+1
|
* Remove unnecessary `clone` in `scrollable` exampleLibravatar Héctor Ramón Jiménez2022-11-031-1/+1
|
* Run `cargo fmt`Libravatar Héctor Ramón Jiménez2022-11-031-3/+1
|
* fix: clippy lint ↵Libravatar Ashley Wulber2022-11-031-1/+1
| | | | https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
* fix: scrollable exampleLibravatar Ashley Wulber2022-11-031-5/+14
|