Commit graph

396 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
aaf396256e
Merge branch 'master' into beacon 2024-05-09 12:32:25 +02: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
Héctor Ramón Jiménez
05c9077581
Propagate mouse movement and button releases unconditionally in hover 2024-04-27 11:28:43 +02:00
Héctor Ramón Jiménez
9c0f2dc9a5
Fix top layer clipping in hover widget 2024-04-27 11:21:18 +02:00
Héctor Ramón Jiménez
c58155a971
Set proper size boundaries for limits in Stack::layout 2024-04-27 06:20:41 +02:00
Héctor Ramón Jiménez
95ac45e33d
Fix ambiguous link in documentation of hover helper 2024-04-27 06:19:25 +02:00
Héctor Ramón Jiménez
40dff6b23d
Fix overlay behavior in hover widget 2024-04-27 06:16:57 +02:00
Héctor Ramón Jiménez
bb9244107c
Respect width and height properties when Stack is empty 2024-04-27 06:08:30 +02:00
Héctor Ramón Jiménez
23ef6547ad
Introduce hover widget 2024-04-27 06:06:13 +02:00
Héctor Ramón Jiménez
73088a6fc1
Fix out of bounds caret in TextEditor in some circumstances 2024-04-26 15:17:35 +02:00
Héctor Ramón Jiménez
6d4155a548
Fix Shift scrolling for scrollable on macOS
Apparently, macOS inverts the scrolling axes automatically now.
Was this a thing before, or did an update just break user space?
2024-04-26 01:44:03 +02:00
Héctor Ramón Jiménez
eb49567791
Capture scrollbar events in a scrollable before content events 2024-04-26 01:19:49 +02:00
Héctor Ramón Jiménez
4cd45643d7
Introduce opaque widget helper 2024-04-25 06:05:37 +02:00
Héctor Ramón Jiménez
9492da11d9
Use Limits::resolve in Stack widget 2024-04-25 02:27:01 +02:00
Héctor Ramón Jiménez
99434b3ecf
Fix documentation of stack module 2024-04-25 01:47:07 +02:00
Héctor Ramón Jiménez
0c74d26456
Implement Stack widget
It can be used to stack elements on top of each other!
2024-04-25 01:39:34 +02:00
Daniel
fdcec03197
Don't consume unused scroll events (#2397)
* Initial Commit

* Update scrollable.rs

* Use `let _ = ` instead of `_ =` for consistency

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-04-23 00:45:44 +00:00
Héctor Ramón Jiménez
67e181ce7b
Fix clip bounds with nested scrollable widgets 2024-04-23 02:29:48 +02:00
mtkennerly
f962c6ce06
Allow checking whether a TextEditor is focused 2024-04-15 08:41:29 -04:00
Héctor Ramón Jiménez
d922b47815
Reintroduce support for custom primitives in iced_wgpu 2024-04-08 15:04:35 +02:00
Héctor Ramón Jiménez
13289dbd19
Merge branch 'master' into wgpu/better-architecture 2024-04-07 14:06:52 +02:00
Héctor Ramón Jiménez
5cd98f069d
Use built-in [lints] table in Cargo.toml 2024-04-07 12:42:12 +02:00
Héctor Ramón Jiménez
6d3e1d835e
Decouple caching from layering and simplify everything 2024-04-05 23:59:21 +02:00
Héctor Ramón Jiménez
394e599c3a
Fix layer transformations 2024-04-05 00:40:39 +02:00
Héctor Ramón Jiménez
b05e61f5c8
Redesign iced_wgpu layering architecture 2024-04-03 21:07:54 +02:00
Aaron McGuire
31d1d5fecb
Check is_secure before a copy/cut from TextInput (#2366)
* Check is_secure before copy/cut on text_input

* run cargo fmt
2024-04-02 08:46:35 +00:00
Héctor Ramón
b17f890482
Merge pull request #2358 from bungoboingo/text-editor-font-size
Some text_editor QoL
2024-04-02 10:12:07 +02:00
Héctor Ramón
27312187f3
Merge pull request #2364 from blazra/combobox-menu-fix
combo_box: Do not draw empty menu overlay
2024-04-02 09:49:36 +02:00
Héctor Ramón Jiménez
34f799aa3d
Rename text::IntoContent to IntoFragment 2024-04-01 21:48:47 +02:00
Radovan Blažek
8c08cce6ff combo_box: Do not draw empty menu overlay
Fixes #2311
2024-04-01 21:38:58 +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
db4b03a659
Use Iterator::size_hint to initialize Column and Row capacity 2024-04-01 16:08:42 +02:00
Héctor Ramón Jiménez
f5bcfec821
Use rustc-hash for most of our HashMap and HashSet instances 2024-04-01 12:00:15 +02:00
Héctor Ramón Jiménez
6216c513d5
Use generic Content in Text to avoid reallocation in fill_text 2024-04-01 11:30:01 +02:00
Bingus
385a4490fb
Expose line_height & text_size fields for the text_editor widget 2024-03-29 16:58:11 -07:00
Héctor Ramón Jiménez
1df1cf82f4
Derive Debug for qr_code::Data in iced_widget 2024-03-26 04:22:06 +01:00
Héctor Ramón
eae4065300
Merge pull request #2350 from iced-rs/theming-revolutions
Theming Revolutions
2024-03-25 22:21:22 +01:00
Héctor Ramón Jiménez
74373cb086
Make defaults of composite widgets configurable 2024-03-25 22:12:47 +01:00
Héctor Ramón
a2a8381a49
Merge pull request #2351 from iced-rs/custom-renderer-injection
Type-Driven Renderer Fallback
2024-03-25 21:36:44 +01:00
Héctor Ramón Jiménez
f0ae9a0c38
Use Catalog approach for all widgets 2024-03-24 05:03:09 +01:00