summaryrefslogtreecommitdiffstats
path: root/style/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to drag pane to the pane grid edges & optional style for dragged ↵Libravatar Joao Freitas2023-07-061-1/+1
| | | | pane
* Change default styling of `Slider` to leverage rounded bordersLibravatar Héctor Ramón Jiménez2023-06-011-2/+2
|
* Add border_radius to slider railLibravatar Casper Storm2023-06-012-1/+4
|
* Upgrade `palette` dependencyLibravatar Clark Moody2023-05-251-10/+12
|
* Extend border radius on relevant widgetsLibravatar Casper Storm2023-05-2312-43/+43
|
* Support conversion from Fn trait to custom themeLibravatar Marien Zwart2023-05-211-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...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_paneLibravatar Héctor Ramón2023-05-192-11/+46
|\ | | | | [Feature] Enhance PaneGrid to split panes by drag & drop
| * Change name of hovered region style struct, reorder lines & export AppearanceLibravatar Joao Freitas2023-05-192-18/+18
| |
| * Add pane_grid functionality to split a pane with another paneLibravatar Joao Freitas2023-05-162-1/+36
| |
* | Implement `custom` helper for `theme::Button`Libravatar Héctor Ramón Jiménez2023-05-191-0/+9
| |
* | Remove `Builder` abstractions for gradientsLibravatar Héctor Ramón Jiménez2023-05-191-3/+3
| |
* | Added support for gradients as background variants + other optimizations.Libravatar Bingus2023-05-112-0/+6
|/
* Do not require `Copy` for text `StyleSheet::Style`Libravatar Ian Douglas Scott2023-04-281-20/+0
| | | | | | | | | | | | | | | | For most widgets, `Style` only requires `Default`. A few require `Clone`. Only this one requires `Copy`. Some of the types in the default theme has a custom variant requiring `Box<dyn Trait>`, or `Rc<dyn Trait>` to provide `Clone`, but this isn't possible if `Copy` is required. It would be good to also address the inconsistency of requiring `Clone` in some places and not others. This removes `style/src/text.rs` which is unused in this branch and thus confusing. If there's a reason to keep it, that can be removed from the change.
* Merge branch 'master' into advanced-textLibravatar Héctor Ramón Jiménez2023-04-174-28/+99
|\
| * Remove `border_radius` support for `slider::Rail`Libravatar Héctor Ramón Jiménez2023-04-132-3/+0
| | | | | | | | | | Our current quad shader may produce weird-looking results with non-integral scaling factors.
| * Rename `Rail::size` to `width`Libravatar Héctor Ramón Jiménez2023-04-122-3/+3
| |
| * Use a `border_radius` of `2.0` for slider rails in built-in themeLibravatar Héctor Ramón Jiménez2023-04-121-1/+1
| |
| * Remove `border_width` support in `slider::Rail`Libravatar Héctor Ramón Jiménez2023-04-122-6/+0
| |
| * Introduce left and right colors for slider railsLibravatar Night_Hunter2023-04-122-5/+26
| |
| * Fine-tune built-in styling of disabled `TextInput`Libravatar Héctor Ramón Jiménez2023-04-121-7/+5
| |
| * Introduce disabled state for `TextInput`Libravatar Dan Mishin2023-04-122-0/+32
| |
| * Changed `Handle` to `Icon` to be consistentLibravatar Casper Storm2023-04-112-5/+5
| |
| * Updated `handle_color` for focused stateLibravatar Casper Storm2023-04-111-1/+1
| |
| * feat: added handle to text_inputLibravatar Casper Storm2023-04-112-0/+5
| |
| * Fix inconsistency in default implementation of `scrollable::StyleSheet`Libravatar Héctor Ramón Jiménez2023-03-271-1/+1
| |
| * Introduce `is_mouse_over_scrollbar` to `StyleSheet::hovered` for `Scrollable`Libravatar Héctor Ramón Jiménez2023-03-272-49/+46
| |
| * renamed scrollable stylesLibravatar Giuliano Bellini s2947392023-03-252-17/+17
| |
| * Merge branch 'iced-rs:master' into masterLibravatar Giuliano Bellini2023-02-222-4/+4
| |\
| * | added function focused and focused_horizontal to theme.rsLibravatar Giuliano Bellini s2947392023-01-231-0/+17
| | |
| * | added new style for scrollable, to be applied when mouse is over the ↵Libravatar Giuliano Bellini s2947392023-01-231-0/+10
| | | | | | | | | | | | scrollable area
* | | Create `iced_widget` subcrate and re-organize the whole codebaseLibravatar Héctor Ramón Jiménez2023-03-043-4/+3
| |/ |/|
* | Added the ability to change checkbox iconLibravatar Casper Storm2023-02-162-4/+4
|/
* Merge pull request #1550 from bungoboingo/feat/multidirectional-scrollingLibravatar Héctor Ramón2023-01-092-1/+49
|\ | | | | [Feature] Multidirectional scrolling
| * Reworked Scrollable to account for lack of widget order guarantees.Libravatar bungoboingo2022-12-291-0/+9
| | | | | | | | Fixed thumb "snapping" bug on scrollable when cursor is out of bounds.
| * Add multidirectional scrolling capabilities to the existing Scrollable.Libravatar Bingus2022-12-292-1/+40
| |
* | Merge pull request #1562 from casperstorm/feat/custom-accessory-contentLibravatar Héctor Ramón2023-01-022-4/+4
|\ \ | |/ |/| Added ability to customize the handle of a `pick_list`
| * Rename `pick_list::AccessoryContent` to `Handle`Libravatar Héctor Ramón Jiménez2022-12-142-4/+4
| | | | | | | | ... and rename `Default` variant to `Arrow`.
| * Added accessory_content_color to appreance.Libravatar Casper Rogild Storm2022-11-292-0/+4
| |
| * Added ability to customize accessory content.Libravatar Casper Rogild Storm2022-11-292-4/+0
| |
* | Fix casing in `theme`Libravatar Héctor Ramón Jiménez2022-12-061-1/+1
| |
* | Remove `appearance` from `Handle`Libravatar Héctor Ramón Jiménez2022-12-062-28/+45
| | | | | | | | ... and pass it directly to `Renderer::draw` instead.
* | feat: SVG styling with icon fill colorLibravatar Michael Aaron Murphy2022-12-063-0/+46
| |
* | Fix custom style of PickListLibravatar Poly2022-12-021-1/+1
|/
* Write documentation for `iced_style`Libravatar Héctor Ramón Jiménez2022-11-1018-56/+261
|
* Use `derive(Default)` for `theme` typesLibravatar Héctor Ramón Jiménez2022-11-091-50/+16
|
* Introduce `Custom` variants for every style in the built-in `Theme`Libravatar Héctor Ramón Jiménez2022-11-0915-242/+499
|
* Box `Custom` in `Theme`Libravatar Héctor Ramón Jiménez2022-11-031-4/+4
|
* Derive `Copy` for `Theme`Libravatar Héctor Ramón Jiménez2022-11-031-2/+2
|
* Make `Theme::Custom` fields opaqueLibravatar Héctor Ramón Jiménez2022-11-031-6/+22
|
* fix: clippy lint ↵Libravatar Ashley Wulber2022-11-031-5/+5
| | | | https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant