Commit graph

3485 commits

Author SHA1 Message Date
Cory Forsstrom
4de6ee6fa1
Cursor availability during on_event 2023-06-14 10:47:31 +02:00
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
Héctor Ramón
60cd864d43
Merge pull request #1904 from iced-rs/cursor-availability
Cursor availability
2023-06-09 21:53:54 +02: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
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
Héctor Ramón
ce64dcbfd4
Merge pull request #1890 from iced-rs/fix/responsive-layout-invalidation
Invalidate `Responsive` layout when size changes without a `view` call
2023-06-01 05:17:02 +02:00
Héctor Ramón Jiménez
0b504bec8a
Invalidate Responsive layout when size changes without a view call 2023-06-01 04:59:49 +02:00
Héctor Ramón Jiménez
b5fc0f4a3a
Use consistent color strategy in glyphon 2023-06-01 03:10:02 +02:00
Héctor Ramón Jiménez
c528f2129e
Use proper gamma correction mode in image::Atlas::grow 2023-05-31 21:45:12 +02:00
Héctor Ramón Jiménez
f1b259a28f
Avoid gamma correction when web-colors is enabled for images 2023-05-31 21:42:39 +02:00
Héctor Ramón Jiménez
faa7627ea4
Introduce web-colors feature flag to enable sRGB linear blending
This is how browsers perform color management. They treat
gamma-corrected sRGB colors as if they were linear RGB.

Correctness aside, this mode is introduced for legacy reasons. Most
UI/UX tooling uses this color management as well, and many have created
an intuition about how color should behave from interacting with a
browser.

This feature flag should facilitate application development with `iced`
in those cases.

More details: https://webcolorisstillbroken.com/
2023-05-31 21:31:58 +02:00
Héctor Ramón
b5f102c558
Merge pull request #1883 from iced-rs/update/glyphon
Skip missing glyphs instead of panicking in `glyphon`
2023-05-30 17:07:24 +02:00
Héctor Ramón
9253f7663d
Merge pull request #1873 from bungoboingo/fix/bg-gradient-layering
[Fix] Quads of different background types not ordered
2023-05-30 01:47:31 +02:00
Héctor Ramón
8ff2e0178f
Merge pull request #1859 from RGBCube/patch-1
Add Nix instructions to README
2023-05-30 01:42:18 +02:00
Héctor Ramón Jiménez
c319f5113b
Move Pipeline struct definition after Layer in quad submodules 2023-05-30 01:35:06 +02:00
Héctor Ramón Jiménez
ef547469fd
Improve boundaries between quad submodules in iced_wgpu 2023-05-30 01:33:50 +02:00
Héctor Ramón Jiménez
5fdc5affce
Rename quad_order variable to kind in quad::Pipeline::render 2023-05-30 01:17:03 +02:00
Héctor Ramón Jiménez
9659e6a848
Improve consistency of match branches in quad::Batch::add 2023-05-30 01:16:30 +02:00
Héctor Ramón Jiménez
cd7d33aa8e
Simplify order match statement in quad::Batch::add 2023-05-30 01:14:41 +02:00
Héctor Ramón Jiménez
6d650e7f99
Rename quad::Order to quad::Kind 2023-05-30 01:08:35 +02:00
Héctor Ramón Jiménez
fe9da174ca
Move layer::quad types to quad module
Not sure why I split these to begin with!
2023-05-30 01:08:34 +02:00
Bingus
eb6c663420
Adjusted Quads struct to be opaque quad::Layer. 2023-05-29 12:24:35 -07:00
Bingus
3f141459a6
Fixed issue where quads of different types were not ordered. 2023-05-29 12:14:11 -07:00
Héctor Ramón
75110b9c0e
Merge pull request #1871 from bungoboingo/fix/bg-gradient
[Fix] Make gradient pack fn public for iced_graphics::Gradient
2023-05-29 21:09:17 +02:00
Héctor Ramón Jiménez
8ca7b884c0
Make Packed fully opaque
... by only allowing direct conversion from our `Gradient` types
2023-05-29 20:56:51 +02:00
Héctor Ramón Jiménez
556f3e89d3
Skip missing glyphs instead of panicking in glyphon 2023-05-29 20:47:47 +02:00
Bingus
902e333148
Changed gradient::Packed to be repr(C) for direct gpu upload. 2023-05-26 10:13:18 -07:00
Héctor Ramón
fcb1b45436
Merge pull request #1875 from clarkmoody/palette-0.7
Upgrade `palette` dependency
2023-05-26 19:02:29 +02:00