Héctor Ramón Jiménez
0c65936664
Update glyphon and cosmic-text
2023-06-16 15:50:03 +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 Jiménez
166d350dfc
Fix empty scissor rectangle in iced_wgpu::triangle pipeline
2023-06-01 17:12:28 +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 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 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
Bingus
413526ad09
Created "Packed" data structure for gradient data.
2023-05-25 10:49:26 -07:00
Bingus
a395e78596
Made gradient pack public for iced_graphics::gradient mod for use with GradientVertex2D.
2023-05-24 13:08:59 -07:00
Benoît du Garreau
dee8ede5be
Update glam to 0.24
2023-05-22 17:23:42 +02:00
Héctor Ramón
cc5d11f1a6
Merge pull request #1846 from bungoboingo/feat/background-gradients
...
[Feature] Gradients for Backgrounds
2023-05-19 04:37:58 +02:00
Héctor Ramón Jiménez
9d25f98f0f
Reduce INITIAL_INSTANCES in wgpu::quad to 2_000
2023-05-19 04:07:53 +02:00
Héctor Ramón Jiménez
c888d0679b
Fix inconsistent pub use in wgpu::layer
2023-05-19 04:04:16 +02:00
Héctor Ramón Jiménez
e267e075cc
Avoid redundant buffer::Buffer import
2023-05-19 04:02:18 +02:00
Héctor Ramón Jiménez
f557b810f5
Keep image pipeline decoupled from quad in iced_wgpu
2023-05-19 03:59:58 +02:00
Héctor Ramón Jiménez
59663d2e45
Avoid packing gradient data for every vertex in iced_wgpu
2023-05-19 03:37:36 +02:00
Héctor Ramón Jiménez
4c1a082f04
Remove Builder abstractions for gradients
2023-05-19 03:32:21 +02:00
Héctor Ramón Jiménez
0ef5ab6c84
Remove dbg! leftovers in image::atlas
2023-05-11 20:19:37 +02:00
Héctor Ramón Jiménez
f02f0c01ea
Fix race condition when growing an image::Atlas
2023-05-11 20:18:36 +02:00
Bingus
6551a0b2ab
Added support for gradients as background variants + other optimizations.
2023-05-11 11:13:44 -07:00
Héctor Ramón Jiménez
cf434236e7
Enable doc_auto_cfg when generating documentation
2023-05-11 17:28:51 +02:00
Héctor Ramón Jiménez
de638f44a5
Write missing documentation in iced_wgpu
2023-05-11 15:37:56 +02:00
Héctor Ramón Jiménez
9a8b30d7e9
Clip text that exceeds section bounds in iced_wgpu
2023-05-08 16:41:42 +02:00
Héctor Ramón Jiménez
c6d9221ee4
Round paragraph position until we implement subpixel glyph positioning
2023-05-08 16:20:05 +02:00
Héctor Ramón Jiménez
91ef07e6eb
Warn about unsupported primitives in iced_wgpu
2023-05-08 14:51:53 +02:00
Héctor Ramón Jiménez
c189ef62a6
Use LineHeight::default in iced_wgpu::layer
2023-05-08 14:46:56 +02:00
Héctor Ramón Jiménez
9499a8f9e6
Support configurable LineHeight in text widgets
2023-05-04 18:39:31 +02:00
Héctor Ramón Jiménez
8e8808f0e1
Merge branch 'master' into advanced-text
2023-05-02 06:40:48 +02:00
Héctor Ramón Jiménez
edf3432bf5
Update glyphon and cosmic-text
2023-05-02 01:02:33 +02:00
Héctor Ramón Jiménez
4bd290afe7
Introduce text::Shaping enum and replace magic boolean
2023-05-02 01:02:32 +02:00
Héctor Ramón Jiménez
33b5a90019
Make basic text shaping the default shaping strategy
2023-05-02 01:02:13 +02:00
Héctor Ramón Jiménez
200a29c069
Fix unused import in triangle pipeline for Wasm target in iced_wgpu
2023-04-27 15:17:45 +02:00
Héctor Ramón Jiménez
d953d12c38
Fix incorrect wgpu version for Wasm builds in iced_wgpu
2023-04-26 16:48:41 +02:00
Héctor Ramón Jiménez
9c63eb7df5
Update tiny-skia and resvg
2023-04-26 16:46:27 +02:00
Héctor Ramón Jiménez
cc20baad6f
Use find(..) instead of filter(..).next()
2023-04-21 21:46:02 +02:00
Héctor Ramón Jiménez
3f0c226b74
Use point-free notation
2023-04-21 21:36:30 +02:00
David Huculak
cbb2ba38fa
remove unused import
2023-04-20 21:38:52 -04:00