Commit graph

4950 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
fd0abe18d0
Implement application::Update for () 2024-07-14 22:51:52 +02:00
Héctor Ramón Jiménez
d9a29f5176
Remove Vector::UNIT constant 2024-07-13 13:41:00 +02:00
Héctor Ramón Jiménez
5e6d994199
Add default and base stylings to text widget 2024-07-13 13:26:37 +02:00
Héctor Ramón
a3d9cf2a64
Merge pull request #2505 from iced-rs/window-resize-events
Add `resize_events` subscription to `window` module
2024-07-13 13:01:56 +02:00
Héctor Ramón Jiménez
a108b2eebe
Add resize_events subscription to window module 2024-07-13 12:53:06 +02:00
Héctor Ramón Jiménez
1eabd38219
Set default width of toggler widget to Shrink 2024-07-13 00:19:33 +02:00
Héctor Ramón
8cadd3b994
Merge pull request #2504 from iced-rs/view-ergonomics
Improved `view` ergonomics
2024-07-12 21:40:46 +02:00
Héctor Ramón Jiménez
3f480d3d18
Rename embed_* in Scrollable to simply spacing 2024-07-12 20:00:14 +02:00
Héctor Ramón Jiménez
2513213e89
Add directional border::Radius helpers 2024-07-12 19:35:01 +02:00
Héctor Ramón Jiménez
ab392cee94
Improve Border ergonomics 2024-07-12 19:10:52 +02:00
Héctor Ramón Jiménez
7c3341760d
Improve Padding ergonomics
We expose free functions for creating a `Padding`
and methods with the same name to modify its fields.
2024-07-12 18:43:25 +02:00
Héctor Ramón Jiménez
915c926c28
Fix inconsistent align_* methods in Container 2024-07-12 18:18:04 +02: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
be06060117
Merge pull request #2503 from iced-rs/task-abort-on-drop
Add `abort_on_drop` to `task::Handle`
2024-07-12 13:12:46 +02:00
Héctor Ramón Jiménez
c1c9789720
Add abort_on_drop to task::Handle
You may not want to worry about aborting tasks manually.
2024-07-12 13:02:19 +02:00
Héctor Ramón
65ea5fac68
Merge pull request #2502 from iced-rs/button-on-press-with
Add `on_press_with` method for `Button`
2024-07-12 12:21:45 +02:00
Héctor Ramón Jiménez
97e35f7d37
Add on_press_with method for Button
This allows using a closure to produce the message
only when the `Button` is actually pressed. Useful
when generating the message may be expensive.
2024-07-12 12:10:43 +02:00
Héctor Ramón Jiménez
1c1bee6fd8
Finish window::open only when window fully opens
... and run initial `Task` after `window::open` for
applications. This fixes certain race conditions.
2024-07-11 10:44:44 +02:00
Héctor Ramón Jiménez
8c110c1be9
Make window visible after surface creation in iced_winit 2024-07-11 10:21:45 +02:00
Héctor Ramón
c63a81f683
Merge pull request #2269 from dtzxporter/scrollbar-disabled
Add a configuration to scrollable to always show the scrollbar. Adds a disabled style for scrollbar.
2024-07-11 08:19:27 +02:00
Héctor Ramón Jiménez
8e9099cdd3
Fix broken doc links in widget::scrollable 2024-07-11 08:11:19 +02:00
Héctor Ramón Jiménez
8ae4e09db9
Add support for embedded scrollbars for scrollable
Co-authored-by: dtzxporter <dtzxporter@users.noreply.github.com>
2024-07-11 08:00:58 +02:00
Héctor Ramón
3c55e07668
Merge pull request #2500 from iced-rs/builtin-text-styles
Add some built-in text styles for each `Palette` color
2024-07-11 05:11:34 +02:00
Héctor Ramón Jiménez
03e8078f42
Add some built-in text styles for each Palette color 2024-07-11 04:57:40 +02:00
Héctor Ramón
aaab9865c4
Merge pull request #2488 from vladh/remove-scrollable-comment
doc: remove extraneous comment
2024-07-11 04:52:03 +02:00
Héctor Ramón
12bebba684
Merge pull request #2499 from iced-rs/scrollable-alignment-helpers
Add `align_x` and `align_y` helpers to `Scrollable`
2024-07-11 04:50:11 +02:00
Héctor Ramón
e3726df698
Merge pull request #2498 from iced-rs/iced-widget
Add `iced` widget helper to display the iced logo ☄️
2024-07-11 04:43:48 +02:00
Héctor Ramón Jiménez
bec3ca56c3
Add align_x and align_y helpers to Scrollable 2024-07-11 04:37:03 +02:00
Héctor Ramón Jiménez
5e6c9eeb7e
Add iced widget helper to display the iced logo ☄️ 2024-07-11 04:33:19 +02:00
Héctor Ramón
d894434237
Merge pull request #2497 from iced-rs/stream-try-channel
Introduce `stream::try_channel` helper
2024-07-11 04:18:32 +02:00
Héctor Ramón Jiménez
4ce2a207a6
Introduce stream::try_channel helper 2024-07-11 04:08:40 +02:00
Héctor Ramón
70f44a6e26
Merge pull request #2496 from iced-rs/abortable-tasks
Abortable `Task`
2024-07-10 15:42:38 +02:00
Héctor Ramón Jiménez
47f9554a82
Introduce Task::abortable 🎉 2024-07-10 14:44:54 +02:00
Héctor Ramón Jiménez
8efe161e3d
Move docs of future and stream in Task 2024-07-10 14:24:52 +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
3d99da805d
Implement Default for combo_box::State 2024-07-09 00:27:59 +02:00
Héctor Ramón
acf6daff46
Merge pull request #2321 from PgBiel/select-all
Add "Select All" functionality on Ctrl+A to TextEditor
2024-07-08 01:25:41 +02:00
PgBiel
76f5bc2cce
add SelectAll to TextEditor 2024-07-08 01:16:31 +02:00
Héctor Ramón Jiménez
23d9497e7f
Allow future in stream::channel to return 2024-07-08 01:13:22 +02:00
Héctor Ramón
978327f9e7
Merge pull request #2493 from iced-rs/hide-subscription-internals
Hide `Subscription` internals
2024-07-05 02:34:39 +02:00
Héctor Ramón Jiménez
c9e0ed7ca4
Expose from_recipe and into_recipes in advanced::subscription 2024-07-05 02:22:56 +02:00
Héctor Ramón Jiménez
0cf096273a
Fix wasm_bindgen backend in iced_futures 2024-07-05 02:19:17 +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
e50aa03edc
Merge pull request #2492 from iced-rs/hide-internal-task-constructors
Hide internal `Task` constructors
2024-07-05 01:24:10 +02:00
Héctor Ramón Jiménez
88611d7653
Hide internal Task constructors 2024-07-05 01:13:28 +02:00
Héctor Ramón Jiménez
2b19471d1c
Simplify subscription::channel example 2024-07-02 19:01:40 +02:00
Vlad-Stefan Harbuz
39c21e9fc2 doc: remove extraneous comment 2024-07-02 14:06:55 +01:00
Héctor Ramón
4687bf7f14
Merge pull request #2485 from vladh/add-quad-border-doc
doc: clarify Quad border alignment
2024-06-30 22:57:14 +02:00
Héctor Ramón
f31d1a4dbc
Merge pull request #2487 from vladh/fix-reconcile-typo
doc: fix "Reconciles" typo
2024-06-30 22:56:44 +02:00