Commit graph

4267 commits

Author SHA1 Message Date
Cory Forsstrom
83140d6049
Remove interior mutability
Nested doesn't need to implement Overlay trait, it can be be used
mutably in user interface so we don't need interior mutability.
2023-06-14 10:43:24 +02:00
Cory Forsstrom
3e6f6eedcb
Use layout with children for nesting 2023-06-14 10:37:51 +02:00
Cory Forsstrom
12c623f35b
Cursor availability by layer 2023-06-14 10:15:52 +02:00
Cory Forsstrom
d4bb7c0b24
Remove unwraps in overlay::Nested and fix mouse_interaction 2023-06-14 10:08:48 +02:00
Cory Forsstrom
1ce047cdb3
Prioritize mouse interaction of deepest Overlay 2023-06-14 09:35:06 +02:00
Cory Forsstrom
f44d429283
Render nested in layer 2023-06-14 09:28:09 +02:00
Cory Forsstrom
f608056c50
Add nested picklist to modal example 2023-06-14 09:27:28 +02:00
Cory Forsstrom
0a56ffb5d6
Add nested overlay method to group & map 2023-06-14 09:25:57 +02:00
Cory Forsstrom
55dc3b5619
Introduce internal overlay::Nested for UserInterface 2023-06-14 09:25:30 +02:00
Héctor Ramón
329fbc7b21
Merge pull request #1910 from tarkah/fix/scrollable-scroll-wheel
Only scroll w/ wheel if over scrollable
2023-06-13 03:37:57 +02:00
Cory Forsstrom
38da953583
Only scroll w/ wheel if over scrollable 2023-06-12 13:15:11 -07:00
Jonathan Lindsey
fcf9062679 Make the subscription::channel function take a FnOnce closure instead of a Fn closure and remove Sync as a requirement for its output. 2023-06-10 21:52:26 -05:00
Héctor Ramón
60cd864d43
Merge pull request #1904 from iced-rs/cursor-availability
Cursor availability
2023-06-09 21:53:54 +02:00
Nick Senger
290b47f312 refactor: remove unnecessary canvas complexity 2023-06-09 11:03:52 -07:00
Nick Senger
9d69af10cc comment: fix typo 2023-06-08 20:09:10 -07:00
Héctor Ramón Jiménez
27639c4ce6
Fix mouse interactions in Scrollable 2023-06-08 21:03:24 +02:00
Héctor Ramón Jiménez
733c2bd9f5
Use mouse::Cursor in integration example 2023-06-08 20:45:48 +02:00
Héctor Ramón Jiménez
aba98e4965
Extend cursor availability to the shell level 2023-06-08 20:35:40 +02:00
Héctor Ramón Jiménez
57db196c3a
Increase width of controls in pane_grid example 2023-06-08 20:23:47 +02:00
Héctor Ramón Jiménez
5c8cfb411e
Take Rectangle by value in Cursor API 2023-06-08 20:16:46 +02:00
Héctor Ramón Jiménez
34451bff18
Implement basic cursor availability 2023-06-08 20:11:59 +02:00
Bingus
af099fa6d7
Added in check for web-colors. 2023-06-08 10:29:38 -07:00
Bingus
05e238e9ed
Adjusted offscreen pass to be a render pass vs compute for compat with web-colors flag. 2023-06-08 10:10:26 -07:00
Nick Senger
0148cfc82b fix: RedrawRequest::NextFrame -> RedrawRequest::At() 2023-06-08 07:51:32 -07:00
Nick Senger
56eacdb358 comment: cleanup imports 2023-06-08 07:47:57 -07:00
Nick Senger
204c9d6f52 fix: rotation in terms of duration 2023-06-07 16:48:11 -07:00
Nick Senger
2ebc923197 feat: use lyon for easing 2023-06-07 15:42:13 -07:00
Nick Senger
cdfb8b3068 feat: add progress indicators example 2023-06-07 11:57:49 -07:00
Bingus
677f564f08
Switched to packing using f16s to maintain acceptable precision. 2023-06-07 11:18:26 -07:00
Bingus
9554c78f3a
Updated color packing into u32 to consider incorrect web-colors. 2023-06-06 17:24:26 -07:00
Héctor Ramón Jiménez
226ce3d6c9
Implement explicit Color::into_u32 instead of Into trait 2023-06-06 16:46:23 -07:00
Bingus
ea7f2626b1
Optimized gradient data packing. 2023-06-06 16:46:20 -07:00
Héctor Ramón Jiménez
78c0189824
Fix width of crop labels in screenshot example (again) 2023-06-06 16:36:20 +02:00
Héctor Ramón Jiménez
38582873b7
Rearrange controls of the screenshot example 2023-06-06 16:32:14 +02:00
Héctor Ramón Jiménez
5b5000e3ae
Introduce on_press_maybe helper for Button 2023-06-06 16:18:20 +02:00
Héctor Ramón Jiménez
5324928044
Wrap Screenshot::bytes in an Arc and implement AsRef<[u8]> 2023-06-06 16:14:42 +02:00
Héctor Ramón Jiménez
7adfaa88a6
Avoid iced_image import in screenshot example 2023-06-06 16:05:46 +02:00
Héctor Ramón Jiménez
c1021c7175
Fix punctuation in screenshot example 2023-06-06 15:59:56 +02:00
Héctor Ramón Jiménez
cd15f8305a
Fix width of crop labels in screenshot example 2023-06-06 15:59:36 +02:00
Héctor Ramón Jiménez
8820583cc0
Create numeric_input helper in screenshot example 2023-06-06 15:51:32 +02:00
Héctor Ramón Jiménez
5ed9452877
Use Container::Box in screenshot example 2023-06-06 15:39:29 +02:00
Bingus
233196eb14
Added offscreen rendering support for wgpu & tiny-skia exposed with the window::screenshot command. 2023-06-06 15:37:30 +02:00
Héctor Ramón
c15f1b5f65
Merge pull request #1888 from iced-rs/web-colors
Introduce `web-colors` feature flag to enable "sRGB linear" blending
2023-06-03 03:04:38 +02:00
Héctor Ramón
b353767d2d
Merge pull request #1892 from casperstorm/feat/slider-rail-border-radius
Add `border_radius` to slider rail
2023-06-01 17:44:00 +02:00
Héctor Ramón Jiménez
66d4decc0c
Fix quad glitch when rounding borders of a Slider rail 2023-06-01 17:27:52 +02:00
Héctor Ramón Jiménez
ee0dd4c623
Change default styling of Slider to leverage rounded borders 2023-06-01 17:25:56 +02:00
Héctor Ramón
44748664c1
Merge pull request #1893 from iced-rs/fix/mesh-empty-scissor-rect
Fix empty scissor rectangle in `iced_wgpu::triangle` pipeline
2023-06-01 17:24:59 +02:00
Héctor Ramón Jiménez
166d350dfc
Fix empty scissor rectangle in iced_wgpu::triangle pipeline 2023-06-01 17:12:28 +02:00
Casper Storm
1e2965d542 only add border radius to the visible part 2023-06-01 13:30:48 +02:00
Casper Storm
9902e77816 Add border_radius to slider rail 2023-06-01 10:46:33 +02:00