summaryrefslogtreecommitdiffstats
path: root/examples/scrollable (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Implement `scrollable::snap_to` operationLibravatar Héctor Ramón Jiménez2022-08-041-16/+36
|
* Fix `clippy` lintsLibravatar Héctor Ramón Jiménez2022-07-271-1/+1
|
* Replace stateful widgets with new `iced_pure` APILibravatar Héctor Ramón Jiménez2022-07-271-94/+76
|
* Remove `style` module leftover in `scrollable` exampleLibravatar Héctor Ramón Jiménez2022-06-071-52/+0
|
* Implement theme styling for `Scrollable`Libravatar Héctor Ramón Jiménez2022-06-072-92/+14
|
* Implement theme styling for `TextInput`Libravatar Héctor Ramón Jiménez2022-06-071-6/+0
|
* Implement theme styling for `Rule`Libravatar Héctor Ramón Jiménez2022-06-012-25/+3
|
* Implement theme styling for `Radio`Libravatar Héctor Ramón Jiménez2022-05-272-47/+8
|
* Update Rust edition to 2021 :tada:Libravatar Héctor Ramón Jiménez2022-02-091-1/+1
|
* [ImgBot] Optimize imagesLibravatar ImgBotApp2022-02-071-0/+0
| | | | | | | | | | | | | | | | | | | | | *Total -- 967.49kb -> 703.99kb (27.24%) /docs/images/radio.png -- 5.29kb -> 1.58kb (70.18%) /docs/images/text_input.png -- 3.18kb -> 1.27kb (60.17%) /docs/images/checkbox.png -- 5.56kb -> 2.22kb (60.17%) /examples/color_palette/screenshot.png -- 102.74kb -> 43.75kb (57.42%) /examples/tour/images/ferris.png -- 32.29kb -> 15.91kb (50.73%) /docs/graphs/ecosystem.png -- 124.13kb -> 67.44kb (45.67%) /docs/graphs/iced.png -- 97.75kb -> 53.27kb (45.5%) /docs/graphs/native.png -- 57.90kb -> 33.67kb (41.85%) /docs/images/text.png -- 4.95kb -> 2.99kb (39.61%) /docs/graphs/foundations.png -- 18.19kb -> 11.19kb (38.46%) /examples/scrollable/screenshot.png -- 144.78kb -> 102.53kb (29.18%) /examples/svg/resources/tiger.svg -- 67.02kb -> 64.50kb (3.76%) /docs/logo.svg -- 1.37kb -> 1.35kb (1.57%) /docs/images/todos_desktop.jpg -- 302.36kb -> 302.33kb (0.01%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
* Fix linksLibravatar Theo Robinson2022-02-071-2/+2
| | | | | | Change dead links to updated ones. Change/Convert all file links to relative links so they are branch agnostic.
* Remove ambiguous `text_color` attributes for `Checkbox` and `Radio`Libravatar Héctor Ramón Jiménez2022-01-201-0/+1
| | | | Instead, always use a `StyleSheet`.
* Merge pull request #1106 from ↵Libravatar Héctor Ramón2021-11-101-1/+1
|\ | | | | | | | | RamType0/RemoveUnnecessaryStringAllocationInExample Remove unnecessary String allocation
| * Remove unnecessary String allocationLibravatar Ram.Type-02021-11-021-1/+1
| | | | | | | | Remove unnecessary String allocation by passing &format! or &x.to_string as impl Into<String>
* | Reintroduce `Box` for `style_sheet` in `Scrollable`Libravatar Héctor Ramón Jiménez2021-10-312-3/+3
| |
* | Reintroduce `Box` for `style_sheet` in `Radio`Libravatar Héctor Ramón Jiménez2021-10-312-3/+3
| |
* | Reintroduce `Box` for `style_sheet` in `Container`Libravatar Héctor Ramón Jiménez2021-10-312-4/+4
| |
* | Wire up styling to `Radio` in `iced_native`Libravatar Héctor Ramón Jiménez2021-10-202-3/+3
| |
* | Wire up `container` styling to `iced_native`Libravatar Héctor Ramón Jiménez2021-10-182-4/+4
| |
* | Draw scrollbar in `Widget::draw` for `Scrollable`Libravatar Héctor Ramón Jiménez2021-10-182-3/+3
|/
* Add scrolling progress indicators to `scrollable` exampleLibravatar Héctor Ramón2021-06-041-4/+32
|
* Add buttons to control scrolling in `scrollable` exampleLibravatar Héctor Ramón2021-06-041-12/+40
|
* Fix `Scrollable` scrollbar being rendered behind contentsLibravatar Héctor Ramón2021-05-032-14/+29
| | | | ... by issuing a new clip layer just for the scrollbar itself.
* Use `f32` for `border_width` and `border_radius`Libravatar Héctor Ramón Jiménez2020-11-231-6/+6
|
* Update screenshot of `scrollable` exampleLibravatar Héctor Ramón Jiménez2020-10-241-0/+0
|
* Reduce contrast of dark theme in `scrollable` exampleLibravatar Héctor Ramón Jiménez2020-10-241-39/+37
|
* Improve minor details in `scrollable` exampleLibravatar Héctor Ramón Jiménez2020-10-242-249/+260
| | | | | | | - Rename `Config` to `Variant` - Include `State` in `Variant` to avoid `zip` - Break long string literal - Split `style` module into its own file
* Add scrollable example programLibravatar Clark Moody2020-10-224-0/+389