summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1494 from tarkah/fix/paddingLibravatar Héctor Ramón2022-11-085-14/+60
|\ | | | | Constrain padding to resolved inner / outer widget sizes
| * Remove redundant `std::convert` namespace in `padding`Libravatar Héctor Ramón Jiménez2022-11-081-3/+3
| |
| * Cast to `u16` first then divide by `2` in `Padding::fit`Libravatar Héctor Ramón Jiménez2022-11-081-4/+4
| |
| * Rearrange `layout` code to improve readabilityLibravatar Héctor Ramón Jiménez2022-11-083-8/+2
| |
| * Rename `Padding::constrain` to `fit`Libravatar Héctor Ramón Jiménez2022-11-084-5/+5
| |
| * Fix text input paddingLibravatar Cory Forsstrom2022-10-271-3/+9
| |
| * Constrain padding to inner & outer sizesLibravatar Cory Forsstrom2022-10-274-7/+53
| |
* | Merge pull request #1505 from ids1024/weak-dep-featureLibravatar Héctor Ramón2022-11-081-4/+1
|\ \ | | | | | | Combine `glow_default_system_font` and `default_system_font` features
| * | Combine `glow_default_system_font` and `default_system_font` featuresLibravatar Ian Douglas Scott2022-11-031-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently "weak dependency features" have been stable since Rust 1.60.0, allowing a feature to enable a feature of a dependency only if that dependency is enabled elsewhere. So having a separate feature for this with glow is unnecessary now. Also remove the `resolver` setting which is redundant on edition 2021.
* | | Merge pull request #1507 from ids1024/rgba-svgLibravatar Héctor Ramón2022-11-051-9/+2
|\ \ \ | | | | | | | | Don't convert svg to BGRA before passing to shader
| * | | Don't convert svg to BGRA before passing to shaderLibravatar Ian Douglas Scott2022-11-041-9/+2
|/ / / | | | | | | | | | | | | Now that the shader is using RGBA, this incorrectly swaps the components.
* | | Merge pull request #1485 from ids1024/glow-imageLibravatar Héctor Ramón2022-11-0529-267/+750
|\ \ \ | | | | | | | | Glow image rendering support; move image/svg code to iced_graphics
| * | | Update `image` dependency to `0.24`Libravatar Héctor Ramón Jiménez2022-11-052-2/+2
| | | |
| * | | Replace `texture_store` and `store` with `storage`Libravatar Héctor Ramón Jiménez2022-11-052-9/+9
| | | |
| * | | Remove redundant features in `iced_wgpu` and `iced_glow`Libravatar Héctor Ramón Jiménez2022-11-058-37/+35
| | | |
| * | | Remove unnecessary dependencies from `iced_glow`Libravatar Héctor Ramón Jiménez2022-11-051-2/+0
| | | |
| * | | Use RGBA texture for `image` and `svg` pipelinesLibravatar Héctor Ramón Jiménez2022-11-054-9/+9
| | | |
| * | | Refactor some `image` traits a bitLibravatar Héctor Ramón Jiménez2022-11-0520-127/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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`.
| * | | Add image/svg support to `iced_glow`Libravatar Ian Douglas Scott2022-11-058-8/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/iced-rs/iced/issues/674 Uses image/svg support in `iced_graphics`. The is not currently using an atlas, and uses one texture/draw per image. This should be good enough for now; supporting images with glow is better than not supporting them, and if something else performs better, that improvement can be made without any change to the public API.
| * | | Move image/svg handling into `iced_graphics`Libravatar Ian Douglas Scott2022-11-0510-191/+281
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #1453 from ids1024/cowLibravatar Héctor Ramón2022-11-052-8/+14
|\ \ \ | | | | | | | | Use `Cow<'static, [u8]>` in image/svg, add constructors taking &[u8]`
| * | | Unify methods by leveraging `Into<Cow>` in `image` and `svg`Libravatar Héctor Ramón Jiménez2022-11-052-32/+7
| | | |
| * | | Use `Cow<'static, [u8]>` in image/svg, add constructors taking &[u8]`Libravatar Ian Douglas Scott2022-10-032-6/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should resolve https://github.com/iced-rs/iced/issues/580 by providing a way to use an image included with `include_bytes!` without needing to copy it to a `Vec` to create an image handle. It would be nice if these methods could also be `const`, but that isn't possible due to the hashing being done. This is technically a breaking change since `Handle::data()` is public. But if that is used, it's most likely in used somewhere that only relies on the type derefing to `&[u8]`.
* | | | Merge pull request #1443 from traxys/div_canvasLibravatar Héctor Ramón2022-11-055-7/+38
|\ \ \ \ | |_|/ / |/| | | Allow to replace an element instead of append to body for web rendering
| * | | Allow providing a DOM identifier as a `target` for WasmLibravatar Héctor Ramón Jiménez2022-11-055-8/+34
| | | |
| * | | Allow to replace an element instead of append to bodyLibravatar traxys2022-11-051-3/+8
|/ / /
* | | Merge pull request #1448 from bungoboingo/fear/linear-gradientsLibravatar Héctor Ramón2022-11-0347-971/+2234
|\ \ \ | | | | | | | | Add linear gradient support to canvas widget
| * | | Refactor imports of `triangle` modules in `iced_glow` and `iced_wgpu`Libravatar Héctor Ramón Jiménez2022-11-032-14/+13
| | | |
| * | | Remove unnecessary `pub(crate)` in `widget::canvas::frame`Libravatar Héctor Ramón Jiménez2022-11-031-5/+2
| | | |
| * | | Refactor imports of `widget::canvas::frame` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-7/+7
| | | |
| * | | Move re-export in `widget::canvas` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-1/+1
| | | |
| * | | Fix documentation example of `Canvas`Libravatar Héctor Ramón Jiménez2022-11-031-5/+9
| | | | | | | | | | | | | | | | ... so it makes sense when seen from the `iced` crate.
| * | | Refactor imports in `widget::canvas` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-4/+3
| | | |
| * | | Move `mesh::Style` to `triangle` and reuse it in `fill` and `stroke`Libravatar Héctor Ramón Jiménez2022-11-0310-98/+72
| | | |
| * | | Export `Gradient` in `iced_graphics` rootLibravatar Héctor Ramón Jiménez2022-11-031-0/+1
| | | |
| * | | Remove blank line if `layer::mesh` in `iced_graphics`Libravatar Héctor Ramón Jiménez2022-11-031-1/+0
| | | |
| * | | Refactor exports in `graphics::layer`Libravatar Héctor Ramón Jiménez2022-11-031-5/+7
| | | |
| * | | Refactor imports in `solar_system` exampleLibravatar Héctor Ramón Jiménez2022-11-031-11/+12
| | | |
| * | | Move `Position` and `Location` to `gradient` moduleLibravatar Héctor Ramón Jiménez2022-11-032-90/+92
| | | |
| * | | Merge branch 'master' into fear/linear-gradientsLibravatar Héctor Ramón Jiménez2022-11-0326-62/+799
| |\ \ \
| * | | | Reuse last set pipeline for `triangle` in `iced_wgpu`Libravatar Héctor Ramón Jiménez2022-11-033-2/+33
| | | | |
| * | | | Rename `buffers` module to `buffer`Libravatar Héctor Ramón Jiménez2022-11-037-66/+66
| | | | | | | | | | | | | | | | | | | | ... and move `StaticBuffer` to nested `static` module
| * | | | Fix lints by `clippy`Libravatar Héctor Ramón Jiménez2022-11-039-28/+20
| | | | |
| * | | | Fix `multitouch` exampleLibravatar Héctor Ramón Jiménez2022-11-031-2/+3
| | | | |
| * | | | Convert colors to linear RGB in `gradient` pipelinesLibravatar Héctor Ramón Jiménez2022-11-032-12/+13
| | | | |
| * | | | Convert colors to linear RGB before uploading in `solid` pipelinesLibravatar Héctor Ramón Jiménez2022-11-032-5/+9
| | | | |
| * | | | Run `cargo fmt`Libravatar Héctor Ramón Jiménez2022-11-0317-110/+98
| | | | |
| * | | | Reuse last buffer in `Frame` if `mesh_style` matchesLibravatar Héctor Ramón Jiménez2022-11-034-42/+53
| | | | |
| * | | | Documentation changesLibravatar bungoboingo2022-10-191-1/+4
| | | | |
| * | | | Updated syntax for color stop iteration re: PR comments.Libravatar bungoboingo2022-10-181-2/+1
| | | | |