Commit graph

59 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
b0e8bafb6c
Bump versions 🎉 2022-11-10 01:20:11 +01:00
Héctor Ramón Jiménez
1cdc1fcd06
Rename iced_lazy::Cached to Lazy 🎉 2022-11-03 02:46:31 +01:00
Héctor Ramón Jiménez
54f9ab7d5f
Implement Widget::operate for lazy::Cached 2022-11-03 02:30:41 +01:00
Héctor Ramón Jiménez
b5d33b0370
Diff children only when hash differs in lazy::Cached 2022-11-03 02:28:54 +01:00
Nick Senger
459d32b984
lint 2022-11-03 02:23:19 +01:00
Nick Senger
7138141811
feat: implement Cached widget 2022-11-03 02:23:19 +01:00
Héctor Ramón Jiménez
3e82ab069e
Fix latest clippy lints 2022-09-23 17:51:42 +02:00
tarkah
a4d5b82768 Impl operate for Component widget 2022-08-07 14:46:28 -07:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API 2022-07-27 06:49:20 +02:00
Héctor Ramón Jiménez
2065a40f64
Fix clippy lints for all crates and features
... and check those in CI as well!
2022-07-09 18:43:05 +02:00
Héctor Ramón Jiménez
2f76a10a1d
Fix further clippy lints
... and explicitly annotate crates as well.
2022-07-09 18:03:59 +02:00
Héctor Ramón Jiménez
fa55dff61d
Merge branch 'master' into theming 2022-07-08 19:31:45 +02:00
Héctor Ramón Jiménez
e6e3eff876
Bump versions 🎉 2022-07-01 04:03:24 +02:00
Héctor Ramón Jiménez
9330a83775
Fix Widget::tag implementation of pure::Canvas
Using `P::State` can cause a panic if the `Canvas` has `()` as
`P::State` and replaces a stateless widget in a future `view` call.
2022-07-01 03:37:28 +02:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02:00
Nick Senger
ea389ac34c
remove rebuild of component overlay from on_event 2022-05-13 12:38:16 -07:00
Héctor Ramón Jiménez
4c98de0a53
Revert "fix: prevent building overlay with stale layout"
This reverts commit 3be8f6e989.
2022-05-13 18:45:03 +02:00
Nick Senger
3be8f6e989
fix: prevent building overlay with stale layout 2022-05-10 17:23:30 -07:00
Héctor Ramón Jiménez
d23026d2dd
Bump versions 🎉 2022-05-02 22:07:53 +02:00
Héctor Ramón Jiménez
84c28a73e2
Indicate feature-flagged modules in documentation 2022-05-02 21:01:25 +02:00
Héctor Ramón Jiménez
6fe6daa64f
Add html_logo_url to iced_core and iced_lazy 2022-05-02 20:33:10 +02:00
Nick Senger
7b539479cf
fix: panic when using pure component in pure responsive 2022-04-25 16:40:34 -07:00
Héctor Ramón
a33e320521
Merge pull request #1308 from nicksenger/fix/pure-component-overlay
fix: tree node passed in `component::OverlayInstance::on_event`
2022-04-19 19:55:00 +07:00
Nick Senger
0e78929603
fix: tree node passed in component::OverlayInstance::on_event 2022-04-18 10:45:23 -07:00
Nick Senger
2858c8aa68
fix: diffing issue with pure stateless components 2022-04-18 09:02:40 -07:00
Nick Senger
572dcaff81
fix: diff widget tree after local event processing in Component 2022-04-17 11:53:59 -07:00
Nick Senger
d23ed0c4e8
fix: overlay 2022-04-06 17:25:57 -07:00
Nick Senger
e4178c8e4f
fix: nested components 2022-04-06 13:16:23 -07:00
Héctor Ramón Jiménez
d7100fd259
Export widget modules in iced_pure
... and fix collisions with the new `helpers`
2022-03-16 17:37:19 +07:00
Héctor Ramón Jiménez
9f27969d14
Fix incorrect layout in Widget::overlay for pure::Responsive 2022-03-14 17:44:25 +07:00
Héctor Ramón Jiménez
b50e208f31
Implement pure::Responsive in iced_lazy 2022-03-07 18:04:13 +07:00
Héctor Ramón Jiménez
9fd66c820d
Introduce rebuild_element helper in lazy::pure::Component 2022-03-07 16:39:04 +07:00
Héctor Ramón Jiménez
fa3bd4280e
Initialize lazy::pure::Component view properly
... during `children` and `diff` in the `Widget` implementation
2022-03-07 16:35:17 +07:00
Héctor Ramón Jiménez
c35496d80f
Merge branch 'master' into virtual-widgets 2022-03-07 15:29:43 +07:00
Héctor Ramón Jiménez
1313c94e3b
Remove hash_layout method from Widget trait 2022-02-23 21:31:54 +07:00
Nick Senger
a12a92c266
fix: overlay layout for Responsive 2022-02-22 23:38:32 +07:00
Héctor Ramón Jiménez
da45b6c162
Implement pure::Component in iced_lazy 2022-02-17 19:08:54 +07:00
Héctor Ramón
5a1638add8
Merge pull request #1206 from iced-rs/fix/responsive-window-resize
Invalidate widget tree in `Responsive` after a `window::Event::Resized`
2022-01-20 22:12:08 +07:00
Héctor Ramón Jiménez
a1311bcc5e
Remove position abbreviation in Component 2022-01-20 13:50:42 +07:00
Héctor Ramón Jiménez
0e475b008f
Invalidate widget tree in Responsive after a window::Event::Resized
This is a pessimistic approach! Ideally, we should be able to recreate
only the contents of the `Responsive` widget in `Widget::layout`, but
given `view` is impure we have to trigger a brand new `view` call.

The persistent widget tree should make this easier.
2022-01-20 13:43:45 +07:00
cossonleo
41bd984d6b component overlay position fix 2022-01-20 11:35:45 +08:00
Héctor Ramón Jiménez
a3744ec97a
Recompute layout of Responsive contents when size changes 2022-01-20 04:09:46 +07:00
Héctor Ramón Jiménez
f6c436aec1
Write docs for responsive in iced_lazy 2022-01-12 11:48:49 +07:00
Héctor Ramón Jiménez
241e123c9b
Write documentation for component in iced_lazy 2022-01-12 11:39:54 +07:00
Héctor Ramón Jiménez
870d651f35
Implement Widget::overlay for Responsive widget 2022-01-12 11:15:05 +07:00
Héctor Ramón Jiménez
5a03cac7e7
Remove superfluous generic type in iced_lazy::Cache 2022-01-11 14:55:48 +07:00
Héctor Ramón Jiménez
810e086728
Introduce Renderer argument to mouse_interaction and on_event 2022-01-11 14:12:28 +07:00
Héctor Ramón Jiménez
6ab4611a6e
Invalidate widget tree from Responsive widget
... by introducing a new `invalidate_widgets` method to `Shell`
2022-01-11 13:47:43 +07:00
Nick Senger
85e92d9e22
fix: nested component layout invalidation 2021-12-24 11:14:30 -08:00
Nick Senger
44c0d75953 fix: drop remaining component overlay events if closed during event batch processing 2021-12-17 08:46:56 -08:00