Commit graph

7 commits

Author SHA1 Message Date
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
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
7a24b4ba69
Replace texture_store and store with storage 2022-11-05 03:39:59 +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
Renamed from wgpu/src/image/vector.rs (Browse further)