Commit graph

4960 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
ffb520fb37
Decouple caching from Paragraph API 2024-07-17 18:50:53 +02:00
Héctor Ramón
616689ca54
Update cosmic-text and resvg (#2416)
* Update `cosmic-text`, `glyphon`, and `resvg`

* Fix slow font fallback with `Shaping::Basic` in `cosmic-text`

* Update `cosmic-text` and `resvg`

* Update `cosmic-text`

* Fix `SelectAll` action in `editor`

* Fix some panics in `graphics::text::editor`

* Remove empty `if` statement in `tiny_skia::vector`

* Update `cosmic-text`, `glyphon`, and `rustc-hash`
2024-07-17 13:00:00 +02:00
Héctor Ramón Jiménez
b518e30610
Fix Scrollable::spacing not embedding the Scrollbar 2024-07-16 19:05:46 +02:00
Héctor Ramón Jiménez
24f7476823
Fix broken futures-core links in nightly docs 2024-07-16 16:34:29 +02:00
Héctor Ramón Jiménez
f0036400a1
Remove unnecessary derive in "Scaling Applications" docs 2024-07-16 16:15:43 +02:00
Héctor Ramón Jiménez
964182e4b8
Fix grammar in "Passive Subscriptions" docs 2024-07-16 16:12:41 +02:00
Héctor Ramón Jiménez
eb6673bf00
Finish "The Pocket Guide" 2024-07-16 15:41:28 +02:00
Héctor Ramón Jiménez
143f4c86ca
Draft "The Pocket Guide" for the API reference 2024-07-16 01:14:26 +02:00
Héctor Ramón Jiménez
bdf0430880
Make run_with take a FnOnce 2024-07-15 13:34:22 +02:00
Héctor Ramón Jiménez
950bfc07d4
Export operate constructor in advanced::widget 2024-07-14 23:00:11 +02:00
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