summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1519 from iced-rs/customizable-themeLibravatar Héctor Ramón2022-11-0934-327/+583
|\ | | | | Built-in `Theme` customization
| * Fix redundant references in `slider`Libravatar Héctor Ramón Jiménez2022-11-091-3/+3
| |
| * Use `derive(Default)` for `theme` typesLibravatar Héctor Ramón Jiménez2022-11-091-50/+16
| |
| * Introduce `Custom` variants for every style in the built-in `Theme`Libravatar Héctor Ramón Jiménez2022-11-0934-286/+576
|/
* Merge pull request #1518 from bungoboingo/fix/old_glLibravatar Héctor Ramón2022-11-085-19/+22
|\ | | | | Fixed issues with old GL versions ( <= 2.1 )
| * Fixed issues with old GL versions ( <= 2.1 )Libravatar bungoboingo2022-11-085-19/+22
|/
* Merge pull request #1504 from tarkah/feat/pane-grid-maximizeLibravatar Héctor Ramón2022-11-083-86/+213
|\ | | | | Add pane maximize / restore for `PaneGrid`
| * Couple layout & content to avoid desyncLibravatar Cory Forsstrom2022-11-082-68/+55
| |
| * Add pub method for getting maximized valueLibravatar Cory Forsstrom2022-11-031-0/+7
| |
| * Remove maximized when split occursLibravatar Cory Forsstrom2022-11-031-0/+1
| |
| * Fix doc linksLibravatar tarkah2022-11-021-2/+8
| |
| * Add state::Scoped & rename Elements as ContentsLibravatar tarkah2022-11-022-94/+100
| |
| * Fix tests & lintsLibravatar tarkah2022-11-021-5/+6
| |
| * Disable drag when maximizedLibravatar Cory Forsstrom2022-11-021-2/+18
| |
| * Update pane_grid example w/ maximize / restoreLibravatar Cory Forsstrom2022-11-021-5/+35
| |
| * Add maximize / restore to PaneGridLibravatar Cory Forsstrom2022-11-022-55/+128
| |
* | 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
| | | | |