Commit graph

3673 commits

Author SHA1 Message Date
Cory Forsstrom
4f066b516b Add scrollable alignment option 2023-07-04 10:43:12 -07:00
Héctor Ramón
a057f8811b
Merge pull request #1938 from iced-rs/text-cache-modes
Text cache modes
2023-06-30 19:10:41 +02:00
Héctor Ramón Jiménez
d666e739cd
Trim text measurements only before layout 2023-06-29 18:23:11 +02:00
Héctor Ramón Jiménez
cdce03cf7f
Revert "Remove layout method from core::Renderer trait"
This reverts commit 2128472c2a.
2023-06-29 18:17:18 +02:00
Héctor Ramón Jiménez
98febd9a42
Introduce Mode for text::Cache and trim only when switching modes 2023-06-29 17:54:54 +02:00
Héctor Ramón
949eca3eb8
Merge pull request #1913 from Drakulix/feature/runtime-state-operate
runtime: Handle widget operations in `program::State` helper
2023-06-29 10:23:52 +02:00
Héctor Ramón Jiménez
af4d65c428
Keep imports consistent in program::state 2023-06-29 08:15:30 +02:00
Héctor Ramón Jiménez
ae2709f2c4
Take Box instead of reference in State::operate 2023-06-29 08:14:44 +02:00
Austin M. Reppert
0cc85c7820
Add touch support for toggler. (#1935)
* Add touch support for toggler.

* Fix formatting.

* Fix consistency of imports in `iced_widget::toggler`

---------

Co-authored-by: Austin M. Reppert <austinmreppert@protonmail.com>
Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2023-06-29 06:14:21 +00:00
Héctor Ramón
c6b583113d
Merge pull request #1932 from iced-rs/generic-graphics-primitive
Backend-specific primitives
2023-06-29 08:09:45 +02:00
Héctor Ramón Jiménez
6921564c9f
Write missing docs in iced_graphics and iced_wgpu 2023-06-29 07:55:52 +02:00
Héctor Ramón Jiménez
fa5650cfd1
Decouple Mesh primitives from main Primitive type 2023-06-29 07:48:03 +02:00
Héctor Ramón Jiménez
2128472c2a
Remove layout method from core::Renderer trait 2023-06-29 07:18:24 +02:00
Héctor Ramón Jiménez
0ae1baa37b
Introduce custom backend-specific primitives 2023-06-29 07:18:20 +02:00
Victoria Brekenfeld
4b831a917d runtime: Add operate method to program::State 2023-06-28 18:51:14 +02:00
Héctor Ramón
8d65e40a11
Merge pull request #1934 from iced-rs/reuse-text-cache-entries
Reuse entries in `text::Cache`
2023-06-28 01:40:53 +02:00
Héctor Ramón Jiménez
00859c25f5
Retain text measurements as long as original entries 2023-06-28 01:27:09 +02:00
Héctor Ramón Jiménez
975eebfc62
Retain measurements for text entries even if not directly used 2023-06-28 00:51:40 +02:00
Héctor Ramón Jiménez
c8d79a5cd9
Fix needless borrow in iced_wgpu and iced_tiny_skia 2023-06-28 00:45:41 +02:00
Héctor Ramón Jiménez
73dca5e323
Reuse entries in text::Cache in iced_tiny_skia 2023-06-28 00:44:23 +02:00
Héctor Ramón Jiménez
78ad365db2
Reuse entries in text::Cache in iced_wgpu 2023-06-28 00:35:37 +02:00
Héctor Ramón Jiménez
af62ec1c87
Fix loading_spinners example 2023-06-28 00:11:41 +02:00
Héctor Ramón
9d83718fbe
Merge pull request #1878 from AustinMReppert/master
Minor Scrollable Improvements
2023-06-27 23:16:54 +02:00
Héctor Ramón
2d2ed4048c
Merge pull request #1902 from nicksenger/loading-spinners
Example loading spinners
2023-06-27 23:12:09 +02:00
Héctor Ramón Jiménez
1c26440f0b
Use Option::filter instead of and_then in scrollable 2023-06-27 23:04:50 +02:00
Héctor Ramón Jiménez
412e15b170
Require a Direction when computing State::offset in scrollable 2023-06-27 23:04:49 +02:00
Héctor Ramón Jiménez
493571695a
Rename ScrollbarProperties to Direction in scrollable 2023-06-27 23:04:49 +02:00
Austin M. Reppert
fa04f40524
Make vertical scroll properties optional
Co-Authored-By: Austin M. Reppert <austinmreppert@gmail.com>
2023-06-27 23:03:29 +02:00
Héctor Ramón
f63a9d1a79
Merge pull request #1843 from wash2/fix-tiny-skia-quad
fix: quad rendering including border only inside of the bounds
2023-06-27 22:19:49 +02:00
Héctor Ramón
c7332c1522
Merge pull request #1885 from bungoboingo/gradient-packing-optimization
Small gradient optimization
2023-06-27 22:10:17 +02:00
Héctor Ramón Jiménez
2f886b0e4e
Fix import consistency in iced_tiny_skia 2023-06-27 22:06:32 +02:00
Héctor Ramón Jiménez
bf7d636ebf
Draw border path for quad only if it has a border in iced_tiny_skia 2023-06-27 22:05:49 +02:00
Héctor Ramón
f6966268bb
Merge pull request #1845 from bungoboingo/feat/offscreen-rendering
Feat: Offscreen Rendering & Screenshots
2023-06-27 20:37:19 +02:00
Héctor Ramón Jiménez
5b6e205e99
Simplify offscreen API as color module in iced_wgpu 2023-06-27 20:26:13 +02:00
Héctor Ramón Jiménez
5ae726e02c
Move Screenshot inside window module 2023-06-27 19:41:03 +02:00
Héctor Ramón
ef18ecf4ef
Merge pull request #1921 from iced-rs/subpixel-glyph-positioning
Subpixel glyph positioning and layout linearity
2023-06-26 19:17:34 +02:00
Héctor Ramón
75bd55c1f0
Merge pull request #1931 from GyulyVGC/patch-1
Minor grammar correction
2023-06-25 12:39:22 +02:00
Giuliano Bellini
3136669c7f
Update BUG-REPORT.yml 2023-06-25 10:47:48 +02:00
Héctor Ramón
d9581f4e7e
Merge pull request #1929 from tarkah/update/winit
Update winit
2023-06-23 18:25:41 +02:00
Cory Forsstrom
a047588ae8
Update winit 2023-06-23 08:21:30 -07:00
Héctor Ramón
105e52ab59
Merge pull request #1928 from tarkah/fix/vendored-build
Fix iced build when using vendored dependencies
2023-06-23 13:35:28 +02:00
Cory Forsstrom
8152513bf8
Provide access to font from each crate 2023-06-22 20:18:38 -07:00
Yiğit Özdemir
b394c84b37
Add FetchSize command - apply the changes discussed at #water-cooler 2023-06-22 18:28:32 +03:00
Héctor Ramón Jiménez
ef87ff1e8a
Clear text caches after a font is loaded 2023-06-21 21:47:29 +02:00
Yiğit Özdemir
21a71b753d
Add command to retrieve window size 2023-06-21 19:43:20 +03:00
Héctor Ramón Jiménez
b38f7d2837
Center Submit button vertically in styling example 2023-06-21 18:07:26 +02:00
Héctor Ramón
59bb5a99aa
Merge pull request #1925 from iced-rs/update/ouroboros
Update `ouroboros` dependency
2023-06-21 02:13:11 +02:00
Héctor Ramón
b4ab444b00
Merge pull request #1924 from iced-rs/fix/nested-overlay-translation
Fix `translation` in `layout` of `Nested` overlay
2023-06-21 01:57:10 +02:00
Héctor Ramón Jiménez
3a5519d012
Update ouroboros dependency 2023-06-21 01:56:27 +02:00
Héctor Ramón Jiménez
716bf09923
Fix translation in layout of Nested overlay 2023-06-21 01:43:25 +02:00