Commit graph

3925 commits

Author SHA1 Message Date
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
Héctor Ramón Jiménez
76873921af
Fix build workflow in GitHub CI 2023-09-20 15:56:05 +02:00
Héctor Ramón
2f7ff1471d
Merge pull request #2096 from iced-rs/fix/some-more-lints
Fix some `clippy::pedantic` lints
2023-09-20 15:52:41 +02:00
Héctor Ramón Jiménez
33d780f691
Run cargo fmt 2023-09-20 05:37:20 +02:00
Héctor Ramón Jiménez
432d9f5f97
Fix clippy::unused_async 2023-09-20 05:36:11 +02:00
Héctor Ramón Jiménez
f8f1a86344
Fix clippy::manual_let_else 2023-09-20 05:30:08 +02:00
Héctor Ramón Jiménez
1019d1e518
Fix clippy::filter_map_next 2023-09-20 05:23:15 +02:00
Héctor Ramón Jiménez
14ba939e67
Fix clippy::unreadable_literal 2023-09-20 05:19:24 +02:00
Héctor Ramón Jiménez
1e4bade53a
Fix clippy::redundant-closure-for-method-calls 2023-09-20 05:07:34 +02:00
Héctor Ramón Jiménez
caed50b277
Fix clippy::match-wildcard-for-single-variants 2023-09-20 05:03:25 +02:00
Héctor Ramón Jiménez
42ed90bc6f
Fix clippy::default_trait_access 2023-09-20 04:51:08 +02:00
Héctor Ramón Jiménez
6c386e90a1
Fix clippy::trivially-copy-pass-by-ref 2023-09-20 04:33:48 +02:00
Héctor Ramón Jiménez
34f07b6027
Fix clippy::semicolon_if_nothing_returned 2023-09-20 04:11:52 +02:00
Héctor Ramón Jiménez
9991052ce5
Create cargo lint alias 2023-09-20 04:07:20 +02:00
Héctor Ramón Jiménez
29fb4eab87
Scroll TextEditor only if cursor.is_over(bounds) 2023-09-20 01:23:50 +02:00
Héctor Ramón Jiménez
ff78e97ad7
Introduce more themes to iced_highlighter 2023-09-20 01:21:42 +02:00
Héctor Ramón Jiménez
93d6f748f6
Fix clippy lints in iced_highlighter 2023-09-20 01:13:36 +02:00
Héctor Ramón Jiménez
be340a8cd8
Fix gamma correction for colored glyphs in iced_wgpu 2023-09-19 23:00:20 +02:00
Héctor Ramón Jiménez
9af0a27e67
Draw colored glyphs in iced_tiny_skia 2023-09-19 22:28:28 +02:00
Héctor Ramón Jiménez
a9ee8f62fd
Reuse syntaxes and themes lazily in iced_highlighter 2023-09-19 21:57:09 +02:00
Héctor Ramón Jiménez
d9fbecf0d8
Remove syntect dependency from editor example 2023-09-19 20:58:15 +02:00