Commit graph

134 commits

Author SHA1 Message Date
Héctor Ramón
640e13943c
Merge pull request #1856 from jhff/pane_grid_split_with_dragged_pane
[Feature] Enhance PaneGrid to split panes by drag & drop
2023-05-19 17:16:22 +02:00
Joao Freitas
0cb84c1c4c
Change name of hovered region style struct, reorder lines & export Appearance 2023-05-19 12:02:39 +01:00
Héctor Ramón Jiménez
96aa0379d5
Implement custom helper for theme::Button 2023-05-19 03:43:11 +02:00
Héctor Ramón Jiménez
4c1a082f04
Remove Builder abstractions for gradients 2023-05-19 03:32:21 +02:00
Joao Freitas
99aa54cd88
Add pane_grid functionality to split a pane with another pane 2023-05-16 16:12:29 +01:00
Bingus
6551a0b2ab
Added support for gradients as background variants + other optimizations. 2023-05-11 11:13:44 -07:00
Ian Douglas Scott
47016a37df Do not require Copy for text StyleSheet::Style
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.
2023-04-28 10:14:15 -07:00
Héctor Ramón Jiménez
4bae457c37
Merge branch 'master' into advanced-text 2023-04-17 23:41:12 +02:00
Héctor Ramón Jiménez
52c84c4975
Remove border_radius support for slider::Rail
Our current quad shader may produce weird-looking results with
non-integral scaling factors.
2023-04-13 05:53:40 +02:00
Héctor Ramón Jiménez
9b39a17628
Rename Rail::size to width 2023-04-12 05:27:32 +02:00
Héctor Ramón Jiménez
6e6804c5c9
Use a border_radius of 2.0 for slider rails in built-in theme 2023-04-12 05:25:27 +02:00
Héctor Ramón Jiménez
c2cc9a835d
Remove border_width support in slider::Rail 2023-04-12 05:21:46 +02:00
Night_Hunter
de51bc3f41
Introduce left and right colors for slider rails 2023-04-12 05:09:16 +02:00
Héctor Ramón Jiménez
1de794aabf
Fine-tune built-in styling of disabled TextInput 2023-04-12 04:34:37 +02:00
Dan Mishin
f10e936f00
Introduce disabled state for TextInput 2023-04-12 03:55:18 +02:00
Casper Storm
d24a4a4689
Changed Handle to Icon to be consistent 2023-04-11 05:11:23 +02:00
Casper Storm
bfc5db9009
Updated handle_color for focused state 2023-04-11 05:11:23 +02:00
Casper Storm
7b36984295
feat: added handle to text_input 2023-04-11 05:11:19 +02:00
Héctor Ramón Jiménez
dcccf7064d
Fix inconsistency in default implementation of scrollable::StyleSheet 2023-03-27 15:57:51 +02:00
Héctor Ramón Jiménez
c407b4504c
Introduce is_mouse_over_scrollbar to StyleSheet::hovered for Scrollable 2023-03-27 15:51:32 +02:00
Giuliano Bellini s294739
c337bf297d renamed scrollable styles 2023-03-25 01:05:56 +01:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase 2023-03-04 05:37:11 +01:00
Giuliano Bellini
4f41927155
Merge branch 'iced-rs:master' into master 2023-02-22 21:23:04 +01:00
Casper Storm
4fb0be1793
Added the ability to change checkbox icon 2023-02-16 14:13:04 +01:00
Giuliano Bellini s294739
49e9a9a537 added function focused and focused_horizontal to theme.rs 2023-01-23 17:56:39 +01:00
Giuliano Bellini s294739
7d2d813343 added new style for scrollable, to be applied when mouse is over the scrollable area 2023-01-23 16:57:24 +01:00
Héctor Ramón
7ccd87c36b
Merge pull request #1550 from bungoboingo/feat/multidirectional-scrolling
[Feature] Multidirectional scrolling
2023-01-09 19:23:35 +01:00
Héctor Ramón
da1b375579
Merge pull request #1562 from casperstorm/feat/custom-accessory-content
Added ability to customize the handle of a `pick_list`
2023-01-02 20:36:40 +01:00
bungoboingo
9f85e0c721 Reworked Scrollable to account for lack of widget order guarantees.
Fixed thumb "snapping" bug on scrollable when cursor is out of bounds.
2022-12-29 18:29:15 -08:00
Bingus
d91f4f6aa7 Add multidirectional scrolling capabilities to the existing Scrollable. 2022-12-29 10:21:23 -08:00
Héctor Ramón Jiménez
39f49186ce
Rename pick_list::AccessoryContent to Handle
... and rename `Default` variant to `Arrow`.
2022-12-14 03:31:12 +01:00
Héctor Ramón Jiménez
f99d24e085
Fix casing in theme 2022-12-06 04:44:37 +01:00
Héctor Ramón Jiménez
b205a66347
Remove appearance from Handle
... and pass it directly to `Renderer::draw` instead.
2022-12-06 04:34:00 +01:00
Michael Aaron Murphy
75ae0de9bd
feat: SVG styling with icon fill color 2022-12-06 03:59:53 +01:00
Poly
74ebcca146 Fix custom style of PickList 2022-12-02 16:37:55 +01:00
Casper Rogild Storm
fe5ab1ee87
Added accessory_content_color to appreance. 2022-11-29 12:06:45 +01:00
Casper Rogild Storm
0974e9e865
Added ability to customize accessory content. 2022-11-29 11:36:00 +01:00
Héctor Ramón Jiménez
4b3d0fb08d
Write documentation for iced_style 2022-11-10 01:10:28 +01:00
Héctor Ramón Jiménez
84a1edecea
Use derive(Default) for theme types 2022-11-09 04:07:42 +01:00
Héctor Ramón Jiménez
18fb74f200
Introduce Custom variants for every style in the built-in Theme 2022-11-09 04:05:31 +01:00
Héctor Ramón Jiménez
df78777675
Box Custom in Theme 2022-11-03 03:27:55 +01:00
Héctor Ramón Jiménez
708be32e3d
Derive Copy for Theme 2022-11-03 03:23:36 +01:00
Héctor Ramón Jiménez
9966c6f883
Make Theme::Custom fields opaque 2022-11-03 03:23:36 +01:00
Ashley Wulber
4f3215f48e
fix: clippy lint https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant 2022-11-03 03:23:36 +01:00
Ashley Wulber
e2166ecad0
wip: Custom palette for built in theme 2022-11-03 03:23:35 +01:00
Ian Douglas Scott
be9cd3a09f Use once_cell instead of lazy_static
This seems to be generally considered the preferred, idiomatic solution
now. This is in the standard library behind a feature flag (apparently
now called `std::sync::LazyLock`).
2022-10-28 15:58:21 -07:00
MG_REX
dbd76ea21c
Derive Clone and Copy for toggler::Appearance 2022-10-05 19:08:07 +02:00
MG_REX
d95c216b2d
Add is_selected argument in radio::StyleSheet 2022-10-05 19:07:02 +02:00
Nick Senger
0c13af179f
feat: allow specification of border_radius for pick_list::Menu 2022-08-02 16:16:06 -07:00
Héctor Ramón Jiménez
4b8ae71b63
Add and purify arc example by @ThatsNoMoon 2022-07-10 15:15:29 +02:00