Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add scrollable alignment option | 2023-07-04 | 1 | -7/+45 | |
| | |||||
* | Rename `ScrollbarProperties` to `Direction` in `scrollable` | 2023-06-27 | 1 | -13/+13 | |
| | |||||
* | Make vertical scroll properties optional | 2023-06-27 | 1 | -9/+9 | |
| | | | | Co-Authored-By: Austin M. Reppert <austinmreppert@gmail.com> | ||||
* | clean up rebase mistake | 2023-05-23 | 1 | -19/+8 | |
| | |||||
* | Extend border radius on relevant widgets | 2023-05-23 | 1 | -10/+21 | |
| | |||||
* | 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. | ||||
* | Add scrollable `Viewport` | 2023-04-17 | 1 | -3/+3 | |
| | |||||
* | Add `scroll_to` operation for absolute scroll | 2023-04-14 | 1 | -2/+2 | |
| | |||||
* | 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 | |
| | | |||||
* | | Remove `Fill` variant for `Alignment` | 2023-02-27 | 1 | -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` | 2023-02-17 | 1 | -11/+11 | |
| | |||||
* | Add some missing `spacing` to `scrollable` example | 2023-01-08 | 1 | -0/+2 | |
| | |||||
* | Introduce `RelativeOffset` type in `scrollable` | 2023-01-08 | 1 | -7/+7 | |
| | |||||
* | Reworked Scrollable to account for lack of widget order guarantees. | 2022-12-29 | 1 | -80/+54 | |
| | | | | Fixed thumb "snapping" bug on scrollable when cursor is out of bounds. | ||||
* | Add multidirectional scrolling capabilities to the existing Scrollable. | 2022-12-29 | 1 | -183/+323 | |
| | |||||
* | Box `Custom` in `Theme` | 2022-11-03 | 1 | -1/+1 | |
| | |||||
* | Remove unnecessary `clone` in `scrollable` example | 2022-11-03 | 1 | -1/+1 | |
| | |||||
* | Run `cargo fmt` | 2022-11-03 | 1 | -3/+1 | |
| | |||||
* | fix: clippy lint ↵ | 2022-11-03 | 1 | -1/+1 | |
| | | | | https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant | ||||
* | fix: scrollable example | 2022-11-03 | 1 | -5/+14 | |
| | |||||
* | Implement `scrollable::snap_to` operation | 2022-08-04 | 1 | -16/+36 | |
| | |||||
* | Fix `clippy` lints | 2022-07-27 | 1 | -1/+1 | |
| | |||||
* | Replace stateful widgets with new `iced_pure` API | 2022-07-27 | 1 | -94/+76 | |
| | |||||
* | Remove `style` module leftover in `scrollable` example | 2022-06-07 | 1 | -52/+0 | |
| | |||||
* | Implement theme styling for `Scrollable` | 2022-06-07 | 2 | -92/+14 | |
| | |||||
* | Implement theme styling for `TextInput` | 2022-06-07 | 1 | -6/+0 | |
| | |||||
* | Implement theme styling for `Rule` | 2022-06-01 | 2 | -25/+3 | |
| | |||||
* | Implement theme styling for `Radio` | 2022-05-27 | 2 | -47/+8 | |
| | |||||
* | Remove ambiguous `text_color` attributes for `Checkbox` and `Radio` | 2022-01-20 | 1 | -0/+1 | |
| | | | | Instead, always use a `StyleSheet`. | ||||
* | Merge pull request #1106 from ↵ | 2021-11-10 | 1 | -1/+1 | |
|\ | | | | | | | | | RamType0/RemoveUnnecessaryStringAllocationInExample Remove unnecessary String allocation | ||||
| * | Remove unnecessary String allocation | 2021-11-02 | 1 | -1/+1 | |
| | | | | | | | | Remove unnecessary String allocation by passing &format! or &x.to_string as impl Into<String> | ||||
* | | Reintroduce `Box` for `style_sheet` in `Scrollable` | 2021-10-31 | 2 | -3/+3 | |
| | | |||||
* | | Reintroduce `Box` for `style_sheet` in `Radio` | 2021-10-31 | 2 | -3/+3 | |
| | | |||||
* | | Reintroduce `Box` for `style_sheet` in `Container` | 2021-10-31 | 2 | -4/+4 | |
| | | |||||
* | | Wire up styling to `Radio` in `iced_native` | 2021-10-20 | 2 | -3/+3 | |
| | | |||||
* | | Wire up `container` styling to `iced_native` | 2021-10-18 | 2 | -4/+4 | |
| | | |||||
* | | Draw scrollbar in `Widget::draw` for `Scrollable` | 2021-10-18 | 2 | -3/+3 | |
|/ | |||||
* | Add scrolling progress indicators to `scrollable` example | 2021-06-04 | 1 | -4/+32 | |
| | |||||
* | Add buttons to control scrolling in `scrollable` example | 2021-06-04 | 1 | -12/+40 | |
| | |||||
* | Fix `Scrollable` scrollbar being rendered behind contents | 2021-05-03 | 1 | -13/+28 | |
| | | | | ... by issuing a new clip layer just for the scrollbar itself. | ||||
* | Use `f32` for `border_width` and `border_radius` | 2020-11-23 | 1 | -6/+6 | |
| | |||||
* | Reduce contrast of dark theme in `scrollable` example | 2020-10-24 | 1 | -39/+37 | |
| | |||||
* | Improve minor details in `scrollable` example | 2020-10-24 | 2 | -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 program | 2020-10-22 | 1 | -0/+365 | |