mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 13:23:00 +00:00
Previously, the software renderer only supported linear gradients, with radial gradients falling back to solid colors. This commit adds full radial gradient rendering support. Rename gradient-related types for clarity: - GradientCommand → LinearGradientCommand - gradients → linear_gradients - draw_gradient_line → draw_linear_gradient - process_gradient → process_linear_gradient * tests: Add comprehensive screenshot tests for radial gradients Add test cases for radial gradients including: - Basic radial gradient with transparency overlay - Multiple color stops with specific percentages - Gradient stops beyond 100% range - Overlapping transparent gradients with alpha blending - Multiple stops at same position for sharp color transitions - Edge case with invisible stop at 0% ROTATION_THRESHOLD set to 600 due to imprecision in gradient calculations during rotation transformations. |
||
|---|---|---|
| .. | ||
| fonts | ||
| draw_functions.rs | ||
| fixed.rs | ||
| fonts.rs | ||
| minimal_software_window.rs | ||
| scene.rs | ||
| target_pixel_buffer.rs | ||