Commit graph

445 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 Jiménez
b518e30610
Fix Scrollable::spacing not embedding the Scrollbar 2024-07-16 19:05:46 +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 Jiménez
3f480d3d18
Rename embed_* in Scrollable to simply spacing 2024-07-12 20:00:14 +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
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 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
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
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 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 Jiménez
3d99da805d
Implement Default for combo_box::State 2024-07-09 00:27:59 +02:00
PgBiel
76f5bc2cce
add SelectAll to TextEditor 2024-07-08 01:16:31 +02:00
Héctor Ramón Jiménez
88611d7653
Hide internal Task constructors 2024-07-05 01:13:28 +02:00
Vlad-Stefan Harbuz
39c21e9fc2 doc: remove extraneous comment 2024-07-02 14:06:55 +01:00
Héctor Ramón
368b15f708
Merge pull request #2330 from Gigas002/viewer_content_fit
Implement content_fit for viewer widget
2024-06-18 00:37:24 +02:00
Héctor Ramón Jiménez
6c1027af8d
Fix text_editor always capturing scroll events 2024-06-17 03:37:00 +02:00
Héctor Ramón
964ae95827
Merge pull request #2460 from Andrew-Schwartz/master
Add FromIterator for Row and Column
2024-06-16 22:54:46 +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
Andrew-Schwartz
620c3d3222 format 2024-06-13 14:46:56 -04:00
Andrew-Schwartz
65eb06c537 Add FromIterator for Row and Column 2024-06-12 13:01:04 -04:00
Andrew-Schwartz
1355f8d296 Revert "Add FromIterator for Row and Column"
This reverts commit 06c80c5bce.
2024-06-12 13:00:02 -04:00
Andrew-Schwartz
06c80c5bce Add FromIterator for Row and Column 2024-06-12 10:54:50 -04:00
Héctor Ramón
e6d0b3bda5
Merge pull request #2456 from iced-rs/window-id-in-event-subscriptions
Introduce `window::Id` to `Event` subscriptions
2024-06-11 20:22:44 +02:00
Héctor Ramón Jiménez
df85d85a6f
Allow dead_code in widget::lazy::cache 2024-06-11 20:07:06 +02:00
Héctor Ramón Jiménez
5d7dcf417c
Introduce subscription::Event
... and remove `PlatformSpecific` from `Event`
2024-06-11 19:41:05 +02:00
Héctor Ramón Jiménez
e400f972c1
Introduce window::Id to Event subscriptions
And remove `window::Id` from `Event` altogether.
2024-06-10 22:03:46 +02:00
PolyMeilex
e2b00f98a0
Allow for styling of the menu of a pick list 2024-06-08 02:09:10 +02:00
Héctor Ramón Jiménez
3312dc8080
Create jump and macos_command methods in keyboard::Modifiers 2024-05-31 16:23:09 +02:00
Héctor Ramón Jiménez
8cfa8149f5
Keep unary motion function in text_editor 2024-05-31 16:14:55 +02:00
BradySimon
bd48946b02
Add Command + ArrowLeft/Right input behavior for macos 2024-05-31 16:11:33 +02:00
Héctor Ramón Jiménez
d8ba6b0673
Merge branch 'master' into feat/text-macro 2024-05-23 13:29:45 +02:00
Héctor Ramón Jiménez
05f69f495e
Ask for explicit Length in center_* methods 2024-05-13 17:56:02 +02:00
gigas002
c95e296962 Make viewer widget inner naming and syntax closer to image widget 2024-05-10 01:31:23 +00:00
gigas002
22d55ccecb Run cargo fmt 2024-05-08 19:18:13 +09:00
gigas002
477887b387 Merge branch 'master' of https://github.com/iced-rs/iced into iced-rs-master 2024-05-08 19:16:06 +09:00
Héctor Ramón Jiménez
fa9e1d96ea
Introduce dynamic opacity support for Image and Svg 2024-05-03 13:25:58 +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
1cefe6be21
Merge pull request #2334 from DKolter/image-rotation
Adding feature: Image rotation
2024-05-03 07:31:34 +02:00
myuujiku
8efd32c51b Apply bounds check when grabbing image::Viewer 2024-05-02 21:18:47 +02:00
Héctor Ramón Jiménez
a57313b23e
Simplify image rotation API and its internals 2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
09a6bcfffc
Add Image rotation support
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-02 17:27:45 +02:00
Héctor Ramón Jiménez
aae8e4f5cf
Fix clippy lints for new 1.78 stable toolchain 2024-05-02 17:23:32 +02:00
Héctor Ramón Jiménez
b52c7bb610
Use an opaque Id type for image::Handle
Hashing pointers is a terrible idea.
2024-05-01 01:39:43 +02:00
Héctor Ramón Jiménez
b5b78d505e
Introduce canvas::Cache grouping
Caches with the same `Group` will share their text
atlas!
2024-04-30 07:57:54 +02:00
Héctor Ramón
d5bb6deb2f
Merge pull request #2408 from iced-rs/feature/hover-widget
`hover` widget
2024-04-27 11:53:11 +02:00