Commit graph

53 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
800a73ddd7
Use new async || closure syntax 🎉 2025-02-21 02:01:42 +01:00
Héctor Ramón Jiménez
91af1c5ed6
Update all examples to Rust 2024 2025-02-21 01:37:14 +01:00
Héctor Ramón Jiménez
06ece6a8c3
Remove unneded let _ = in websocket example 2025-02-11 01:32:51 +01:00
Héctor Ramón Jiménez
f37d068af5
Rewrite websocket example using sipper 2025-02-11 01:27:51 +01:00
Héctor Ramón Jiménez
2b8b3fd413
Fix consistency of import ordering 2025-01-06 23:00:21 +01:00
Tommy Volk
0e8c3fe30f
chore: remove once_cell dependency 2025-01-06 22:56:48 +01:00
Héctor Ramón Jiménez
76737351ea
Re-export variants of Length and alignment types 2024-07-12 18:12:34 +02:00
Héctor Ramón Jiménez
f9dd5cbb09
Introduce helper methods for alignment for all widgets 2024-07-12 15:14:43 +02:00
Héctor Ramón Jiménez
e86920be5b
Remove load method from application and daemon
If you need to run a `Task` during boot, use
`run_with` instead!
2024-07-09 00:28:40 +02:00
Héctor Ramón Jiménez
8bc49cd886
Hide Subscription internals
.. and introduce `stream::channel` helper
2024-07-05 02:16:45 +02:00
Héctor Ramón Jiménez
341c9a3c12
Introduce daemon API and unify shell runtimes 2024-06-19 01:53:40 +02:00
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
4c658c41e9
Auto-focus text_input in websocket example 2024-05-03 09:25:47 +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
488cac7148
Avoid extra text allocations in websocket example 2024-04-02 09:29:16 +02:00
Héctor Ramón Jiménez
b8d5df2817
Reintroduce old text helper as value helper 2024-04-01 21:36:52 +02:00
Héctor Ramón Jiménez
1d83e59e8a
Specialize widget::text helper with custom IntoContent trait 2024-04-01 21:36:08 +02:00
Héctor Ramón Jiménez
acb9321296
Use Program API in websocket example 2024-03-17 18:40:27 +01:00
Héctor Ramón Jiménez
4130ae4be9
Simplify theming for Text widget 2024-03-04 19:32:13 +01:00
Héctor Ramón Jiménez
99a3f25c5f
Update async-tungstenite dependency in websocket example 2024-02-09 23:42:36 +01:00
Héctor Ramón Jiménez
11474bdc3e
Fix websocket example 2024-01-11 06:12:37 +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
dd249a1d11
Update async-tungstenite in websocket example 2023-12-11 10:57:48 +01:00
Héctor Ramón Jiménez
f8f1a86344
Fix clippy::manual_let_else 2023-09-20 05:30:08 +02:00
Héctor Ramón Jiménez
f468e25d0c
Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize
the versions of all the crates! Because of this, we
will skip the `0.11` version.
2023-09-04 13:08:17 +02:00
Héctor Ramón Jiménez
8830554e4d
Update vulnerable async-tungstenite dependency in websocket example 2023-08-23 21:01:44 +02: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
e6a93e960c
Rename on_change to on_input for TextInput 2023-04-12 04:19:45 +02:00
Dan Mishin
f10e936f00
Introduce disabled state for TextInput 2023-04-12 03:55:18 +02:00
Héctor Ramón Jiménez
0ed54346b0
Use Result::is_err in websocket example 2023-04-11 07:53:26 +02:00
Héctor Ramón Jiménez
5908205a62
Use 127.0.0.1 instead of localhost in websocket example 2023-04-11 07:48:30 +02:00
Héctor Ramón Jiménez
ae7e6b3d48
Implement subscription::channel and simplify unfold 2023-04-11 07:46:54 +02:00
Héctor Ramón Jiménez
aa4b5bb6b9
Merge branch 'master' into feature/software-renderer 2023-03-07 07:24:34 +01:00
Héctor Ramón Jiménez
f4cf488e0b
Remove generic Hasher and Event from subscription::Recipe 2023-03-05 04:15:10 +01:00
Héctor Ramón Jiménez
9e815cb749
Remove Fill variant for Alignment
Implementing this generically in our `flex` logic has an exponential
cost. Let's explore other options!
2023-02-27 16:54:28 +01:00
13r0ck
42b1bfe66d Fix: Clippy lint 'uninlined_format_args' 2023-01-27 14:02:48 -07:00
Héctor Ramón Jiménez
624a4ada79
Introduce RelativeOffset type in scrollable 2023-01-08 20:07:11 +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
743a7192b7
Remove patch version from once_cell dependency 2022-11-01 19:55:37 +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
Héctor Ramón
1923dbf7f0
Merge pull request #1393 from iced-rs/deprecate-stateful-widgets
Replace stateful widgets with the new `iced_pure` API
2022-08-06 00:32:57 +02:00
Héctor Ramón Jiménez
1b4f38c71f
Bump websocket example version to fix audit workflow 2022-08-04 03:59:21 +02:00
Héctor Ramón Jiménez
13dd1ca0a8
Implement scrollable::snap_to operation 2022-08-04 03:55:41 +02:00
Héctor Ramón Jiménez
a1c5f8839d
Use ToString for Text::new instead of Into<String> 2022-07-27 06:56:09 +02: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
1dd1a2f97f
Introduce StyleSheet for Text widget 2022-06-29 10:51:01 +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