Implement gradient borders

This commit is contained in:
Ivan Molodetskikh
2024-02-21 21:27:44 +04:00
parent 340bac0690
commit 48f0f6fb3c
16 changed files with 584 additions and 36 deletions
+2
View File
@@ -51,6 +51,8 @@ impl Layout {
width: 4,
active_color: Color::new(255, 163, 72, 255),
inactive_color: Color::new(50, 50, 50, 255),
active_gradient: None,
inactive_gradient: None,
},
..Default::default()
};
+7 -1
View File
@@ -104,7 +104,13 @@ impl TestCase for Tile {
let location = Point::from(((size.w - tile_size.w) / 2, (size.h - tile_size.h) / 2));
self.tile
.render(renderer, location, Scale::from(1.), true)
.render(
renderer,
location,
Scale::from(1.),
size.to_logical(1),
true,
)
.map(|elem| Box::new(elem) as _)
.collect()
}