Commit graph

81 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
5cd98f069d
Use built-in [lints] table in Cargo.toml 2024-04-07 12:42:12 +02:00
Daniel Yoon
39f57a258e Make tiny-skia equivalent 2024-03-26 13:02:04 +11:00
Héctor Ramón Jiménez
441e9237cd
Rename compositor::Renderer to Default 2024-03-22 19:35:19 +01:00
Héctor Ramón Jiménez
4f2f40c68b
Fix standalone compilation of iced_widget crate 2024-03-22 05:41:15 +01:00
Héctor Ramón Jiménez
1f13a91361
Make iced_tiny_skia optional with a tiny-skia feature 2024-03-22 05:27:31 +01:00
Héctor Ramón Jiménez
3645d34d6a
Implement composable, type-safe renderer fallback 2024-03-21 22:27:17 +01:00
Héctor Ramón Jiménez
331cfc1102
Fix iced_tiny_skia clipping line strokes 2024-02-22 17:35:28 +01:00
Héctor Ramón Jiménez
c6cf2bc521
Fix clipping of text in iced_tiny_skia 2024-02-11 04:03:01 +01:00
Héctor Ramón Jiménez
f4d6648601
Introduce with_transformation to Renderer trait 2024-02-02 02:24:45 +01:00
Héctor Ramón Jiménez
a6e91d13d5
Allow only uniform scaling in Transformation 2024-02-02 01:57:03 +01:00
Héctor Ramón Jiménez
5467c19c80
Replace Primitive::Translate with Transform 2024-02-02 01:53:23 +01:00
Josh Megnauth
cdc42d6464
Assert dimensions of quads are normal in iced_tiny_skia 2024-01-31 21:06:20 +01:00
Héctor Ramón Jiménez
25f182f933
Introduce Border struct analogous to Shadow 2024-01-20 13:29:25 +01:00
Héctor Ramón Jiménez
4d502012b3
Skip transparent shadows in iced_tiny_skia 2024-01-20 12:39:52 +01:00
Héctor Ramón Jiménez
370b2f6df7
Use Default implementation of renderer::Quad 2024-01-20 12:25:07 +01:00
Héctor Ramón Jiménez
b7b457a575
Make shadow optional in renderer::Quad 2024-01-20 12:11:18 +01:00
Nick Senger
cc906c83cd
feat: quad shadows 2024-01-20 11:59:37 +01:00
Héctor Ramón Jiménez
acee3b030b
Fix paths with negative coordinates in iced_tiny_skia 2024-01-17 15:31:29 +01:00
Héctor Ramón Jiménez
603832e66c
Introduce RawText to Primitive in iced_graphics
This should allow users to directly render a
`cosmic_text::Buffer`.
2023-12-05 02:19:17 +01:00
Héctor Ramón Jiménez
b526ce4958
Rename viewport to clip_bounds 2023-12-02 15:56:28 +01:00
Héctor Ramón Jiménez
936d480267
Clip text to viewport bounds instead of layout bounds 2023-12-01 16:04:27 +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
Héctor Ramón Jiménez
6582387579
Merge branch 'master' into text-editor 2023-10-27 03:58:45 +02:00
Yuri Astrakhan
3d6b9637c3 Chore: Inline format args for ease of reading
A minor cleanup to inline all simple cases of format arguments. Makes the format strings just a bit easier to read.
2023-09-19 01:32:56 -04:00
Héctor Ramón Jiménez
6448429103
Draft Editor API and TextEditor widget 2023-09-12 14:51:00 +02:00
Héctor Ramón Jiménez
346af3f8b0
Make FontSystem global and simplify Paragraph API 2023-09-11 02:47:24 +02:00
Héctor Ramón Jiménez
8129e2c208
Implement draw_paragraph in iced_tiny_skia 2023-09-03 08:08:27 +02:00
Héctor Ramón Jiménez
ed3454301e
Implement explicit text caching in the widget state tree 2023-08-30 04:31:21 +02:00
Alec Deason
af386fd0a3
Upgrade resvg to 0.34 and tiny_skia to 0.10 2023-07-12 08:59:07 +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
0ae1baa37b
Introduce custom backend-specific primitives 2023-06-29 07:18:20 +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
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 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 Jiménez
5bc7cbf5bc
Use subpixel glyph positioning and layout linearity
... for offsetting and scaling text
2023-06-20 06:50:36 +02:00
Héctor Ramón
cc5d11f1a6
Merge pull request #1846 from bungoboingo/feat/background-gradients
[Feature] Gradients for Backgrounds
2023-05-19 04:37:58 +02:00
Héctor Ramón Jiménez
ccf7d1994f
Fix needless borrow in tiny_skia::backend 2023-05-19 04:05:31 +02:00
Héctor Ramón Jiménez
49353bc4ea
Inline into_gradient in tiny_skia::backend
... since it's not really reused anywhere else.
2023-05-19 03:53:23 +02:00
Héctor Ramón Jiménez
4c1a082f04
Remove Builder abstractions for gradients 2023-05-19 03:32:21 +02:00
Ashley Wulber
a3f32ad201
fix: when clearing damaged surface with background color blend mode should be Source only 2023-05-15 13:40:52 -04:00
Ashley Wulber
102c78abd8
fix: tiny-skia quad handle case where border_radius < border_width / 2.0 2023-05-11 19:21:36 -04:00
Bingus
6551a0b2ab
Added support for gradients as background variants + other optimizations. 2023-05-11 11:13:44 -07:00
Ashley Wulber
5ee26cc8ec
fix: don't offset fill of quad 2023-05-11 12:25:43 -04:00
Ashley Wulber
46fc5a7992
fix: quad rendering including border only inside of the bounds 2023-05-10 17:48:21 -04:00
Ashley Wulber
75439ff96e
fix: border radius typo 2023-05-09 16:37:01 -04:00
Héctor Ramón Jiménez
2bc4880d00
Warn about unsupported primitives in iced_tiny_skia 2023-05-08 14:51:06 +02:00
Héctor Ramón Jiménez
9499a8f9e6
Support configurable LineHeight in text widgets 2023-05-04 18:39:31 +02:00
Héctor Ramón Jiménez
4bd290afe7
Introduce text::Shaping enum and replace magic boolean 2023-05-02 01:02:32 +02:00
Héctor Ramón Jiménez
33b5a90019
Make basic text shaping the default shaping strategy 2023-05-02 01:02:13 +02:00