Commit graph

3945 commits

Author SHA1 Message Date
Bingus
781ef1f94c
Added support for custom shader widget for iced_wgpu backend. 2023-11-14 11:31:44 +01:00
Héctor Ramón
817f728687
Merge pull request #2135 from iced-rs/ci/deny-warnings
Deny warnings in `test` workflow
2023-11-12 03:43:40 +01:00
Héctor Ramón Jiménez
f98627a317
Add missing 'static lifetimes to constant slices 2023-11-12 03:40:32 +01:00
Héctor Ramón Jiménez
93416cbebd
Deny warnings in test workflow 2023-11-12 03:33:09 +01:00
Héctor Ramón
217cbce8a1
Merge pull request #2134 from iced-rs/fix/widget-crate
Fix standalone compilation of `iced_renderer` crate
2023-11-12 03:32:54 +01:00
Héctor Ramón Jiménez
9d5ff12063
Fix conditional compilation in iced_renderer 2023-11-12 03:22:43 +01:00
Héctor Ramón Jiménez
ae2d59ae96
Add check workflow to ensure iced_widget crate compiles 2023-11-12 03:17:02 +01:00
Héctor Ramón
178521e812
Merge pull request #1894 from Remmirad/texture_filtering
Add texture filtering options
2023-11-11 21:40:07 +01:00
Héctor Ramón Jiménez
9d560c8135
Fix unnecessary references in iced_wgpu::image 2023-11-11 07:27:38 +01:00
Héctor Ramón Jiménez
a5125d6fea
Refactor texture image filtering
- Support only `Linear` or `Nearest`
- Simplify `Layer` groups
- Move `FilterMethod` to `Image` and `image::Viewer`
2023-11-11 07:22:51 +01:00
Remmirad
75c9afc608
Remove debug traces 2023-11-11 07:21:52 +01:00
Remmirad
e5d3e75d82
fix design for wgpu backend 2023-11-11 07:21:52 +01:00
Remmirad
4b32a48880
Fix clippy + fmt 2023-11-11 07:21:51 +01:00
Remmirad
5759096a4c
Implement texture filtering options 2023-11-11 07:21:51 +01:00
Héctor Ramón Jiménez
ef015a5e72
Run sed with -i option in artifacts job 2023-11-11 04:46:11 +01:00
Héctor Ramón Jiménez
bb2f557d6a
Fix artifacts job in audit workflow 2023-11-11 04:36:45 +01:00
Héctor Ramón
3408ab111f
Merge pull request #1908 from alec-deason/bug/convert_text
Run convert_text on svg trees so text renders correctly
2023-11-11 04:16:17 +01:00
Héctor Ramón Jiménez
2aaaf2cd0c
Call convert_text on svg node before rendering
`tiny-skia` does not support text rendering, so we
convert the text nodes to path nodes prior to that.
2023-11-11 04:03:25 +01:00
Héctor Ramón
53f5f935e4
Merge pull request #2080 from dtzxporter/xxhash-3-speed
Migrate twox-hash -> xxhash-rust. Switch to Xxh3 for better performance.
2023-11-11 03:54:18 +01:00
Héctor Ramón Jiménez
107e842071
Remove unnecessary default-features attribute from xxhash-rust dependency 2023-11-11 03:43:50 +01:00
Héctor Ramón Jiménez
4b69c71d5b
Remove patch version from xxhash-rust dependency 2023-11-11 03:43:03 +01:00
dtzxporter
98e088e731
Migrate twox-hash -> xxhash_rust. Switch to Xxh3 for better performance.
xxhash-rust is more maintained, built against `::core`, so no workaround for wasm is necessary. Switch to Xxh3 for better performance, which shows when loading/hashing image buffers.
2023-11-11 03:40:22 +01:00
Héctor Ramón
751ea77c29
Merge pull request #2124 from iced-rs/disable-maximize-button
Disable maximize window button if `Settings::resizable` is `false`
2023-10-27 17:38:14 +02:00
Héctor Ramón
d731996342
Merge pull request #2123 from iced-rs/text-editor
`TextEditor` widget (or multi-line text input)
2023-10-27 17:36:54 +02:00
Héctor Ramón Jiménez
c8eca4e6bf
Improve TextEditor scroll interaction with a touchpad 2023-10-27 16:37:58 +02:00
Héctor Ramón Jiménez
c07315b84e
Disable maximize window button if Settings::resizable is false 2023-10-27 06:01:04 +02:00
Héctor Ramón Jiménez
3ec5ad4225
Use upstream repository for glyphon dependency 2023-10-27 06:00:28 +02:00
Héctor Ramón Jiménez
1b534bda53
Merge branch 'master' into text-editor 2023-10-27 05:27:37 +02:00
Héctor Ramón Jiménez
57f9024e89
Fix intra-doc broken links 2023-10-27 05:19:35 +02:00
Héctor Ramón Jiménez
e579d85530
Implement missing debug implementations in iced_widget 2023-10-27 05:08:06 +02:00
Héctor Ramón Jiménez
625cd745f3
Write documentation for the new text APIs 2023-10-27 05:04:14 +02:00
Héctor Ramón Jiménez
6582387579
Merge branch 'master' into text-editor 2023-10-27 03:58:45 +02:00
Héctor Ramón
8e6f131a06
Merge pull request #2122 from iced-rs/update-wgpu
Update `wgpu` to `0.18` and `cosmic-text` to `0.10`
2023-10-27 03:41:16 +02:00
Héctor Ramón Jiménez
a00ebcde3d
Remove unnecessary into_iter call in iced_graphics 2023-10-27 03:24:59 +02:00
Héctor Ramón Jiménez
86b877517f
Update wgpu to 0.18 and cosmic-text to 0.10 2023-10-27 03:24:06 +02:00
Héctor Ramón Jiménez
f1b1344d59
Run cargo update before cargo audit in audit workflow 2023-10-22 15:08:08 +02:00
Héctor Ramón
0770e7eaf8
Merge pull request #2000 from ids1024/perform
Fix `Command<T>::perform` to return a `Command<T>`
2023-10-19 00:59:01 +02:00
Héctor Ramón Jiménez
54e6d2b5fa
Fix lint in screenshot example 2023-10-18 17:49:19 -05:00
Ian Douglas Scott
e0233ebc3c
Fix Command<T>::perform to return a Command<T>
This seems like clearly the correct thing to do here. If the type bound
on `Command` isn't specified, it makes no difference, since the generic
is inferred in a way that works with either definition. But this is
important if `Command<T>` is aliased with a concrete type.
2023-10-18 17:34:16 -05:00
Héctor Ramón Jiménez
8cc19de254
Add text helper method for text_editor::Content 2023-09-22 06:00:51 +02:00
Héctor Ramón Jiménez
af21cf8249
Remove patch.crates-io section for cosmic-text in Cargo.toml 2023-09-22 05:55:27 +02:00
Héctor Ramón Jiménez
70e49df428
Fix selection clipping out of bounds in TextEditor 2023-09-22 05:50:31 +02:00
Héctor Ramón Jiménez
68d49459ce
Fix vertical scroll for TextEditor 2023-09-21 06:20:41 +02:00
Héctor Ramón Jiménez
7373dd856b
Scroll at least one line on macOS in TextEditor 2023-09-21 06:15:12 +02:00
Héctor Ramón Jiménez
da5dd2526a
Round ScrollDelta::Lines in TextEditor 2023-09-21 06:07:19 +02:00
Héctor Ramón Jiménez
25d47c3238
Remove rangemap patch in Cargo.toml 2023-09-21 06:05:46 +02:00
Héctor Ramón Jiménez
bc9bb28b1c
Fix cargo nitpick alias 2023-09-20 16:41:08 +02:00
Héctor Ramón Jiménez
f137d71e8f
Centralize clippy lints in .cargo/config.toml 2023-09-20 16:40:03 +02:00
Héctor Ramón Jiménez
b8ddd158da
Simplify map call in iced_wgpu::triangle 2023-09-20 16:27:54 +02:00
Héctor Ramón Jiménez
b277625546
Revert "Chore: Apply clippy map transformations"
This reverts commit c997aad85d.
2023-09-20 16:26:43 +02:00