Commit graph

41 commits

Author SHA1 Message Date
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
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
Nick Senger
042a294448 Revert "fix: process component overlay events together with those of the original element"
This reverts commit aa09bd4a98.
2021-12-17 08:36:05 -08:00
Nick Senger
aa09bd4a98 fix: process component overlay events together with those of the original element 2021-12-13 16:52:31 -08:00
Héctor Ramón Jiménez
48b2264bc6
Simplify component implementation in iced_lazy 2021-12-13 17:46:39 +07:00
Nick Senger
a92307890f feat: enable overlay in component 2021-12-10 09:53:44 -08:00
Nick Senger
4a54d4dfc5
Fix Widget::height for Component 2021-12-08 15:33:25 -08:00
Héctor Ramón Jiménez
bbd9355450
Introduce Shell type in iced_native
Widgets now can invalidate the current layout of the application on demand.
2021-11-29 16:22:01 +07:00
Héctor Ramón Jiménez
f7792d89d6
Hide Box allocation in component::view
... we may be able to avoid it with generics in the future.
2021-11-29 15:04:13 +07:00
Héctor Ramón Jiménez
010b62b9ee
Draft component example 🎉 2021-11-29 15:04:13 +07:00
Héctor Ramón Jiménez
bffa7203df
Create iced_lazy and draft Component trait 2021-11-29 15:04:12 +07:00