Héctor Ramón Jiménez
a25b1af456
Replace Command with a new Task API with chain support
2024-06-14 01:47:39 +02:00
Héctor Ramón Jiménez
05f69f495e
Ask for explicit Length in center_* methods
2024-05-13 17:56:02 +02:00
Héctor Ramón Jiménez
15057a05c1
Introduce center widget helper
...
... 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.
2024-05-03 09:11:46 +02:00
Héctor Ramón Jiménez
f0ae9a0c38
Use Catalog approach for all widgets
2024-03-24 05:03:09 +01:00
Héctor Ramón Jiménez
98621aa344
Remove themer use from gradient example 🎉
2024-03-12 16:52:53 +01:00
Héctor Ramón Jiménez
2088e5d661
Try using closures for Container::style
...
`Box` should not allocate for zero-sized types; so
we should not be incurring much overhead. Just a
bit of indirection.
2024-03-12 13:31:16 +01:00
Héctor Ramón Jiménez
34faedd32b
Rename container::box_ to rounded_box
2024-03-08 18:57:44 +01:00
Héctor Ramón Jiménez
7ece5eea50
Implement additional helpers for Border and container::Appearance
2024-03-07 21:02:17 +01:00
Héctor Ramón Jiménez
833538ee7f
Leverage DefaultStyle traits instead of Default
2024-03-07 20:11:32 +01:00
Héctor Ramón Jiménez
905f2160e6
Move Theme type to iced_core
2024-03-07 00:14:41 +01:00
Héctor Ramón Jiménez
34e7c6593a
Use Style struct pattern instead of trait for all widgets
2024-03-06 20:30:58 +01:00
Héctor Ramón Jiménez
597a41cea7
Simplify theming for PickList, ComboBox, and Menu widgets
2024-03-06 17:08:57 +01:00
Héctor Ramón Jiménez
29326215cc
Simplify theming for Container widget
2024-03-05 03:48:08 +01:00
Héctor Ramón Jiménez
96775b1e55
Add clip property to Container, Column, and Row
2024-02-15 01:18:00 +01:00
Héctor Ramón Jiménez
738aa47547
Remove position from overlay::Element
2024-02-01 01:08:21 +01:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type
2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
bf375587aa
Add Shadow to container::Appearance
2024-01-20 13:34:07 +01:00
Héctor Ramón Jiménez
25f182f933
Introduce Border struct analogous to Shadow
2024-01-20 13:29:25 +01:00
Héctor Ramón Jiménez
370b2f6df7
Use Default implementation of renderer::Quad
2024-01-20 12:25:07 +01:00
Nick Senger
cc906c83cd
feat: quad shadows
2024-01-20 11:59:37 +01:00
Héctor Ramón Jiménez
03c901d49b
Make Button sizing strategy adaptive
2024-01-11 06:12:19 +01:00
Héctor Ramón Jiménez
ecf571dfeb
Fix unnecessary into call in Container::new
2024-01-10 10:01:50 +01:00
Héctor Ramón Jiménez
d62bb8193c
Introduce useful helpers in layout module
2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
d278bfd21d
Replace width and height with Widget::size
2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
22226394f7
Introduce Widget::size_hint and fix further layout inconsistencies
2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
0655a20ad1
Make Shrink have priority over Fill in layout
2024-01-04 06:51:21 +01:00
Héctor Ramón Jiménez
936d480267
Clip text to viewport bounds instead of layout bounds
2023-12-01 16:04:27 +01:00
Héctor Ramón Jiménez
a026e917d3
Make widget::Tree mutable in Widget::layout
2023-08-30 06:36:24 +02:00
Héctor Ramón Jiménez
ed3454301e
Implement explicit text caching in the widget state tree
2023-08-30 04:31:21 +02:00
Héctor Ramón Jiménez
e2ba7ece83
Introduce visible_bounds operation for Container
2023-07-27 01:04:18 +02:00
Cory Forsstrom
42c423b4a8
Add viewport to Widget::on_event
2023-07-15 10:04:25 -07:00
Héctor Ramón Jiménez
34451bff18
Implement basic cursor availability
2023-06-08 20:11:59 +02:00
Casper Storm
1234d52812
clippy
2023-05-23 15:28:45 +02: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