Commit graph

4670 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
ee86aea7f2
Use Lch to choose white text when not readable in theme::palette 2024-04-07 19:32:49 +02:00
Héctor Ramón Jiménez
efa75607ba
Revert "Merge pull request #2376 from Davidster/fix_palette_readable_color_contrast"
This reverts commit 63042354fc, reversing
changes made to 31d1d5fecb.
2024-04-07 18:56:11 +02:00
Héctor Ramón
0a61bcf24c
Merge pull request #2379 from Zaubentrucker/bugfix/nix-shell-pkgconfig
Use `pkg-config` instead `pkgconfig`
2024-04-07 14:20:12 +02:00
Frederik Menke
9ff62bd173 Use pkg-config instead pkgconfig 2024-04-07 13:32:53 +02:00
Héctor Ramón Jiménez
1c241d1150
Install missing dependencies in lint workflow 2024-04-07 13:04:53 +02:00
Héctor Ramón Jiménez
8475cd7b25
Run lint workflow in ubuntu-latest
`macOS-latest` seems to abort the build randomly
for some reason.
2024-04-07 13:00:40 +02:00
Héctor Ramón
5905e7c882
Merge pull request #2377 from iced-rs/cargo-lints
Use built-in `[lints]` table in `Cargo.toml`
2024-04-07 12:51:18 +02:00
Héctor Ramón Jiménez
5cd98f069d
Use built-in [lints] table in Cargo.toml 2024-04-07 12:42:12 +02:00
Héctor Ramón Jiménez
a865b38002
Add a simple wgpu benchmark using criterion 2024-04-07 11:49:42 +02:00
Héctor Ramón
63042354fc
Merge pull request #2376 from Davidster/fix_palette_readable_color_contrast
Add stronger guarantee of readability/contrast for palette background/text color pairs
2024-04-07 08:36:59 +02:00
David Huculak
c45c79b5d6 add stronger guarantee of readability/contrast for palette background/text color pairs 2024-04-07 02:20:44 -04:00
Aaron McGuire
31d1d5fecb
Check is_secure before a copy/cut from TextInput (#2366)
* Check is_secure before copy/cut on text_input

* run cargo fmt
2024-04-02 08:46:35 +00:00
Héctor Ramón
b17f890482
Merge pull request #2358 from bungoboingo/text-editor-font-size
Some text_editor QoL
2024-04-02 10:12:07 +02:00
Héctor Ramón Jiménez
99a904112c
Implement IntoFragment for Fragment 2024-04-02 10:09:13 +02:00
Héctor Ramón
27312187f3
Merge pull request #2364 from blazra/combobox-menu-fix
combo_box: Do not draw empty menu overlay
2024-04-02 09:49:36 +02:00
Héctor Ramón
6c75836f12
Merge pull request #2363 from iced-rs/specialize-text-helper
Specialize `widget::text` helper
2024-04-02 09:42:50 +02:00
Héctor Ramón Jiménez
488cac7148
Avoid extra text allocations in websocket example 2024-04-02 09:29:16 +02:00
Héctor Ramón Jiménez
dee43d5f66
Implement IntoFragment for usize and isize 2024-04-02 09:24:22 +02:00
Héctor Ramón Jiménez
34f799aa3d
Rename text::IntoContent to IntoFragment 2024-04-01 21:48:47 +02:00
Radovan Blažek
8c08cce6ff combo_box: Do not draw empty menu overlay
Fixes #2311
2024-04-01 21:38:58 +02:00
Héctor Ramón Jiménez
b8d5df2817
Reintroduce old text helper as value helper 2024-04-01 21:36:52 +02:00
Héctor Ramón Jiménez
1d83e59e8a
Specialize widget::text helper with custom IntoContent trait 2024-04-01 21:36:08 +02:00
Héctor Ramón
c30b4b0a1c
Merge pull request #2362 from iced-rs/size-hint-for-row-columns
Use `Iterator::size_hint` to initialize `Column` and `Row` capacity
2024-04-01 17:14:39 +02:00
Héctor Ramón Jiménez
db4b03a659
Use Iterator::size_hint to initialize Column and Row capacity 2024-04-01 16:08:42 +02:00
Héctor Ramón Jiménez
b40db569a2
Fix wasm_bindgen backend in iced_futures 2024-04-01 12:02:14 +02:00
Héctor Ramón Jiménez
f5bcfec821
Use rustc-hash for most of our HashMap and HashSet instances 2024-04-01 12:00:15 +02:00
Héctor Ramón
14ed71e09b
Merge pull request #2360 from iced-rs/avoid-fill-text-allocation
Use generic `Content` in `Text` to avoid reallocation in `fill_text`
2024-04-01 11:42:11 +02:00
Héctor Ramón Jiménez
6216c513d5
Use generic Content in Text to avoid reallocation in fill_text 2024-04-01 11:30:01 +02:00
Héctor Ramón
c7a4fad4a2
Merge pull request #2357 from iced-rs/wgpu/use-staging-belt
Use a `StagingBelt` in `iced_wgpu` for regular buffer uploads
2024-03-30 23:49:26 +01:00
Héctor Ramón Jiménez
4c74bebc70
Update glyphon for instanced rendering 2024-03-30 16:02:38 +01:00
Héctor Ramón Jiménez
faa53647cc
Replace xxhash-rust with rustc-hash 2024-03-30 15:57:50 +01:00
Héctor Ramón Jiménez
35af0aa84f
Fix batched writes logic in iced_wgpu::buffer 2024-03-30 13:51:22 +01:00
Bingus
385a4490fb
Expose line_height & text_size fields for the text_editor widget 2024-03-29 16:58:11 -07:00
Héctor Ramón Jiménez
d11e271d26
Update glyphon with more performance improvements
See:
  - https://github.com/grovesNL/glyphon/pull/90
  - https://github.com/grovesNL/glyphon/pull/91
2024-03-30 00:22:30 +01:00
Héctor Ramón Jiménez
5f1eb43161
Split big Buffer writes into multiple chunks 2024-03-29 14:29:31 +01:00
Héctor Ramón Jiménez
0a97b9e37a
Add documentation to Backend::recall in iced_wgpu 2024-03-29 09:57:11 +01:00
Héctor Ramón Jiménez
2bb53ad6e7
Use a StagingBelt in iced_wgpu for regular buffer uploads 2024-03-29 04:04:14 +01:00
Héctor Ramón
5071e3d231
Merge pull request #2354 from Koranir/custom-shadow-fix
Fix quad shadows
2024-03-27 21:49:22 +01:00
Héctor Ramón Jiménez
1df1cf82f4
Derive Debug for qr_code::Data in iced_widget 2024-03-26 04:22:06 +01:00
Héctor Ramón Jiménez
a8ceb9469b
Propagate advanced feature to iced_core 2024-03-26 04:21:02 +01:00
Daniel Yoon
39f57a258e Make tiny-skia equivalent 2024-03-26 13:02:04 +11:00
Daniel Yoon
8c401be207 Update solid.wgsl 2024-03-26 11:50:11 +11:00
Héctor Ramón
eae4065300
Merge pull request #2350 from iced-rs/theming-revolutions
Theming Revolutions
2024-03-25 22:21:22 +01:00
Héctor Ramón Jiménez
74373cb086
Make defaults of composite widgets configurable 2024-03-25 22:12:47 +01:00
Héctor Ramón
a2a8381a49
Merge pull request #2351 from iced-rs/custom-renderer-injection
Type-Driven Renderer Fallback
2024-03-25 21:36:44 +01:00
Héctor Ramón Jiménez
6a4f5ac208
Remove redundant text::Renderer bound in program 2024-03-24 08:45:11 +01:00
Héctor Ramón Jiménez
4f5b63f1f4
Reintroduce backend selection through ICED_BACKEND env var 2024-03-24 08:04:28 +01:00
Héctor Ramón Jiménez
f0ae9a0c38
Use Catalog approach for all widgets 2024-03-24 05:03:09 +01:00
Héctor Ramón Jiménez
e657dc2ecd
Fine-tune Catalog approach for button, checkbox, and svg 2024-03-24 02:08:20 +01:00
Héctor Ramón Jiménez
999ad2d288
Try catalog theming approach with Button 2024-03-23 19:23:08 +01:00