mirror of
https://github.com/Dummi26/musicdb.git
synced 2025-12-26 00:16:32 +01:00
change idle screen for musicdb-client, library search now defaults to something smarter and more intuitive
This commit is contained in:
@@ -1142,3 +1142,17 @@ impl GuiCover {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn morph_rect(a: &Rectangle, b: &Rectangle, p: f32) -> Rectangle {
|
||||
let q = 1.0 - p;
|
||||
Rectangle::from_tuples(
|
||||
(
|
||||
a.top_left().x * q + b.top_left().x * p,
|
||||
a.top_left().y * q + b.top_left().y * p,
|
||||
),
|
||||
(
|
||||
a.bottom_right().x * q + b.bottom_right().x * p,
|
||||
a.bottom_right().y * q + b.bottom_right().y * p,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user