Héctor Ramón Jiménez
1816c985fa
Fix clippy lints for Rust 1.68
2023-03-14 11:11:17 +01:00
Héctor Ramón Jiménez
1475f5fa58
Update resvg in iced_graphics
2023-02-25 15:04:40 +01:00
Héctor Ramón Jiménez
0d1656937b
Bump versions 🎉
2023-02-18 12:04:40 +01:00
Héctor Ramón Jiménez
3320ac1126
Use f32 for Padding
2023-02-17 16:09:49 +01:00
Héctor Ramón Jiménez
570600ce51
Use Pixels for Text::size
2023-02-17 15:47:51 +01:00
Héctor Ramón Jiménez
7b8b01f560
Use f32 in Length::Units and rename it to Fixed
2023-02-17 15:40:17 +01:00
sushigiri
c7d8467c46
Accept FnOnce instead of Fn in canvas cache draw
...
Use FnOnce in `draw` function signature instead of `Fn`, permitting the
use of iterators and other one-time functions.
2023-02-06 09:05:07 -07:00
13r0ck
e6092e81a4
Fix: Clippy lint 'needless_lifetimes'
2023-01-27 13:50:52 -07:00
Héctor Ramón Jiménez
9fe46de13f
Bump versions 🎉
2023-01-14 01:10:28 +01:00
Cory Forsstrom
e8aee70a69
Fix lint
2023-01-04 10:17:40 -08:00
Cory Forsstrom
ff49a95eca
Make location copy
2023-01-04 09:52:42 -08:00
rpitasky
9bcb0574db
Minor docs typo
...
"Romve" -> "Remove"
2022-12-29 14:19:04 -05:00
Héctor Ramón Jiménez
4c61f12768
Bump versions 🎉
2022-12-07 04:44:20 +01:00
Héctor Ramón Jiménez
a2f71f42ba
Rename Fill to ColorFilter in graphics::image::vector
2022-12-06 04:42:25 +01:00
Héctor Ramón Jiménez
b205a66347
Remove appearance from Handle
...
... and pass it directly to `Renderer::draw` instead.
2022-12-06 04:34:00 +01:00
Michael Aaron Murphy
75ae0de9bd
feat: SVG styling with icon fill color
2022-12-06 03:59:53 +01:00
Héctor Ramón Jiménez
4029a1cdaa
Merge branch 'master' into non-uniform-border-radius-for-quads
2022-12-02 18:53:21 +01:00
Héctor Ramón Jiménez
94988bb8f2
Implement From traits for Style in canvas
2022-11-28 19:31:26 +01:00
Héctor Ramón Jiménez
33c3c0c0aa
Group all solid triangles independently of color
2022-11-16 09:24:16 +01:00
bungoboingo
365f37a3ae
Added conditional configurations for WASM target for gradients & storage buffers, since storage buffers are not supported on wgpu WASM target at the moment.
2022-11-10 15:25:54 -08:00
Héctor Ramón Jiménez
b0e8bafb6c
Bump versions 🎉
2022-11-10 01:20:11 +01:00
Héctor Ramón Jiménez
1480ab2030
Fix broken documentation links
2022-11-10 00:10:53 +01:00
Héctor Ramón Jiménez
676d8efe03
Rename QuadBorderRadius to BorderRadius
2022-11-08 04:59:34 +01:00
Ian Douglas Scott
a250aab958
Don't convert svg to BGRA before passing to shader
...
Now that the shader is using RGBA, this incorrectly swaps the
components.
2022-11-04 23:25:01 -07:00
Héctor Ramón Jiménez
078cadfed0
Update image dependency to 0.24
2022-11-05 03:47:08 +01:00
Héctor Ramón Jiménez
7a24b4ba69
Replace texture_store and store with storage
2022-11-05 03:39:59 +01:00
Héctor Ramón Jiménez
438f97a6d0
Use RGBA texture for image and svg pipelines
2022-11-05 03:20:00 +01:00
Héctor Ramón Jiménez
8ce8d374b1
Refactor some image traits a bit
...
- Use `Size<u32>` were applicable.
- Rename `TextureStore` to `image::Storage`.
- Rename `TextureStoreEntry` to `image::storage::Entry`.
- Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
2022-11-05 03:19:38 +01:00
Ian Douglas Scott
2c7c42ee93
Move image/svg handling into iced_graphics
...
The `TextureStore` trait is implemented by the atlas, and can also be
implemented in the glow renderer or in a software renderer.
The API here may be improved in the future, but API stability is
presumably not a huge issue since these types will only be used by
renderer backends.
2022-11-05 03:19:37 +01:00
Robert Krahn
c0596179bd
non uniform border radius for quads
2022-11-03 22:48:26 +01:00
Héctor Ramón Jiménez
68cddd6468
Remove unnecessary pub(crate) in widget::canvas::frame
2022-11-03 06:05:06 +01:00
Héctor Ramón Jiménez
4ef778aff3
Refactor imports of widget::canvas::frame in iced_graphics
2022-11-03 06:01:34 +01:00
Héctor Ramón Jiménez
75b05ed42d
Move re-export in widget::canvas in iced_graphics
2022-11-03 06:00:32 +01:00
Héctor Ramón Jiménez
a8c3b2ddf7
Fix documentation example of Canvas
...
... so it makes sense when seen from the `iced` crate.
2022-11-03 05:59:13 +01:00
Héctor Ramón Jiménez
e9e2657791
Refactor imports in widget::canvas in iced_graphics
2022-11-03 05:57:22 +01:00
Héctor Ramón Jiménez
84d1b79fef
Move mesh::Style to triangle and reuse it in fill and stroke
2022-11-03 05:50:53 +01:00
Héctor Ramón Jiménez
e0bb707f1e
Export Gradient in iced_graphics root
2022-11-03 05:24:51 +01:00
Héctor Ramón Jiménez
0b806235f6
Remove blank line if layer::mesh in iced_graphics
2022-11-03 05:23:43 +01:00
Héctor Ramón Jiménez
610dae4877
Refactor exports in graphics::layer
2022-11-03 05:22:58 +01:00
Héctor Ramón Jiménez
d8045e2dc3
Move Position and Location to gradient module
2022-11-03 05:15:32 +01:00
Héctor Ramón Jiménez
921c94162e
Merge branch 'master' into fear/linear-gradients
2022-11-03 05:09:07 +01:00
Héctor Ramón Jiménez
7e22e2d452
Fix lints by clippy
2022-11-03 04:53:27 +01:00
Héctor Ramón Jiménez
b957453404
Run cargo fmt
2022-11-03 04:35:16 +01:00
Héctor Ramón Jiménez
20a0577034
Reuse last buffer in Frame if mesh_style matches
2022-11-03 04:33:54 +01:00
Wyatt Herkamp
0a12590b6f
Update wgpu to 0.14 and wgpu_glyph to 0.18
2022-11-01 19:20:23 +01:00
bungoboingo
d53e262425
Documentation changes
2022-10-19 10:13:07 -07:00
bungoboingo
ab311c9375
Changed gradient builder to be more clear about what caused certain errors.
2022-10-18 17:45:47 -07:00
bungoboingo
c4565759e4
Cleaned up namespaces re: PR comments.
2022-10-18 15:18:37 -07:00
Bingus
aabc4e87b5
Merge branch 'master' into fear/linear-gradients
2022-10-07 16:58:45 -07:00
shan
7a124476b1
Jumped the gun on pushing; one more readability update :P
2022-10-07 16:57:29 -07:00