Commit graph

6319 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
3881d68b7e
Round translation to integral units in scrollable 2025-05-28 20:51:01 +02:00
Héctor Ramón Jiménez
5929b26722
Apply snap distance to Mesh primitives in iced_wgpu 2025-05-28 20:47:23 +02:00
Héctor Ramón Jiménez
f929a20d29
Change From<str> for Selector to Text in iced_test 2025-05-28 03:25:39 +02:00
Héctor
03326b955b
Merge pull request #2962 from iced-rs/fix/blurry-quads
Consistent primitive pixel snapping in `iced_wgpu`
2025-05-28 02:55:20 +02:00
Héctor Ramón Jiménez
1d9e812e0a
Update styling test snapshots 2025-05-28 02:43:58 +02:00
Craig Watson
7eb371729b Remove unnecessary bound 2025-05-27 08:40:34 -07:00
Héctor Ramón Jiménez
15aa94c0f1
Try to align quad and image primitives in iced_wgpu 2025-05-26 23:59:15 +02:00
Héctor Ramón Jiménez
3aedbd5844
Snap quad primitives to the pixel grid (once again!)
Let's hope this approach handles common cases better.
2025-05-25 21:27:00 +02:00
Craig Watson
15230cbee3 implement Debug for Task 2025-05-23 12:16:29 -07:00
Héctor Ramón Jiménez
7c5a4bc465
Fix right padding in toggler when no label is present
Fixes #2942
2025-05-17 19:04:29 +02:00
Héctor Ramón Jiménez
5de7bc83bd
Implement Clone for text_editor::Content 2025-05-16 01:09:53 +02:00
Héctor Ramón Jiménez
9a7ea88d55
Fix clippy lints for Rust 1.87 2025-05-15 20:52:27 +02:00
Héctor Ramón Jiménez
204c4773d5
Add expand method to image widget 2025-05-15 20:38:28 +02:00
Héctor Ramón Jiménez
bb78f1f336
Fix overlay flickering when layout is invalidated 2025-05-15 17:21:58 +02:00
Héctor Ramón Jiménez
6155100767
Allow Overlay::overlay to borrow Layout 2025-05-15 16:32:49 +02:00
Héctor
346ce61b5d
Merge pull request #2944 from iced-rs/generic-pop-key
Generic key for `pop` widget
2025-05-15 14:51:09 +02:00
Héctor Ramón Jiménez
d39022432c
Remove unnecessary into calls in application 2025-05-13 22:33:44 +02:00
Héctor Ramón Jiménez
8c87f67d6d
Remove some indirection in application traits
Skill issue, though.
2025-05-13 22:31:37 +02:00
Héctor Ramón Jiménez
0290364936
Use Key trait to remove Cow in pop widget 2025-05-13 16:42:38 +02:00
Héctor Ramón Jiménez
508ad512d6
Make key in pop widget generic 2025-05-13 15:10:44 +02:00
Héctor
3a3a02beef
Merge pull request #2925 from iced-rs/fix/quad-shader-blending
Fix `quad` shader blending
2025-05-12 19:09:25 +02:00
Héctor Ramón Jiménez
098bd1b8a4
Use premultiplied colors in triangle pipelines 2025-05-12 18:41:34 +02:00
Héctor Ramón Jiménez
df37d6f9bc
Replace blend with mix equivalent in quad shaders 2025-05-12 18:11:51 +02:00
Héctor Ramón Jiménez
9ac4c9f13d
Define premultiply helper for quad shaders 2025-05-12 18:09:48 +02:00
Héctor Ramón Jiménez
469261e5a6
Replace mix calls with proper alpha blending in quad shaders 2025-05-12 18:09:48 +02:00
Héctor Ramón Jiménez
7a97773f17
Update compatible comet revision in devtools 2025-05-06 04:22:01 +02:00
Héctor Ramón Jiménez
8338435429
Group primitive timings in Present span 2025-05-06 04:17:06 +02:00
Héctor
e6da449c92
Merge pull request #2919 from bungoboingo/hack/fix-gl-cubemap-detection
[Fix] GL backend interpreting atlas texture as cube map vs 2d tex array when atlas layer depth == 6
2025-05-04 22:56:03 +02:00
Héctor Ramón Jiménez
c5502f799a
Add devtools crates to document workflow 2025-05-04 22:50:39 +02:00
Héctor Ramón Jiménez
2d2888ee03
Store wgpu::Backend in image::Atlas 2025-05-04 22:46:51 +02:00
Héctor Ramón Jiménez
fcff94fca3
Make Attach struct public in devtools 2025-05-04 22:39:23 +02:00
dtzxporter
ad30dea69b Copy vsync setting. 2025-05-04 14:26:49 -04:00
dtzxporter
5dcab9bf3a Expose setting to disable vsync if requested.
- This improves rendering performance on windows 10x and doesn't result in noticeable tearing. The user can decide if they want it anyways.
2025-05-04 14:25:16 -04:00
Héctor Ramón Jiménez
6bf709e03e
Make anchoring explicit and improve reusability of text pipelines 2025-05-04 03:54:42 +02:00
Héctor Ramón Jiménez
d643bd5ba2
Add content method to plain::Paragraph 2025-05-04 00:38:51 +02:00
Héctor Ramón Jiménez
fe95b26d53
Fix missing inverse transformations in float widget 2025-05-04 00:36:56 +02:00
Héctor Ramón Jiménez
6a1f99e99d
Fix unaligned checkmark in checkbox 2025-05-03 22:29:14 +02:00
Héctor Ramón Jiménez
f031b99196
Return change flag in paragraph::Plain::update 2025-05-03 05:53:19 +02:00
Héctor
9b710a9aa8
Merge pull request #2922 from iced-rs/feature/smart-embedded-scrollbar
Smart Scrollbars
2025-05-03 04:36:10 +02:00
Héctor Ramón Jiménez
7e4c02b3f6
Set is_scrollbar_visible to true by default
This should optimize the worst layout case—when
scrollables with a lot of content are first shown.
2025-05-03 04:24:07 +02:00
Héctor Ramón Jiménez
f78a87c409
Show embedded scrollbars only when necessary in scrollable 2025-05-03 04:15:18 +02:00
Héctor Ramón Jiménez
7a81e638a3
Remove unnecessary redraw request in mouse_area 2025-05-03 00:51:18 +02:00
Héctor Ramón Jiménez
301aac794b
Decouple mouse::Interaction from UserInterface::draw 2025-05-02 23:11:47 +02:00
Héctor Ramón Jiménez
87afd5b79d
Fix mouse_interaction implementation for float 2025-05-02 22:41:22 +02:00
Héctor
89ba5f9ed8
Merge pull request #2921 from alex-ds13/overlay-interaction-outside-bounds
fix: allow overlay mouse interaction outside its bounds
2025-05-02 22:39:38 +02:00
Héctor Ramón Jiménez
9e934fe2a7
Remove now redundant Overlay::is_over
The `mouse_interaction` method can be properly used
now to encode hover status with the `None` and `Idle`
variants.
2025-05-02 21:23:17 +02:00
Héctor Ramón Jiménez
a87fead83f
Fix naive string indexing in debug 2025-05-02 19:53:44 +02:00
alex-ds13
a01beefa84 fix: allow overlay mouse interaction outside its bounds 2025-05-02 15:51:01 +01:00
Shan
16703ccdef
Hack to fix GL-specific backend issue where if image atlas grows to a layer depth of 6, GL interprets the texture as a cube map vs a 2d texture array 2025-05-01 09:10:53 -07:00
Héctor Ramón Jiménez
aa2a50110d
Fix inconsistency in pane_grid 2025-05-01 17:12:14 +02:00