GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
Configure Backplate to dynamically fall back to page_low_color() by default
src/widget/container/backplate.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/widget/container/backplate.rs b/src/widget/container/backplate.rs
index f028f8e..c462dcd 100644
--- a/src/widget/container/backplate.rs
+++ b/src/widget/container/backplate.rs
@@ -89,7 +89,7 @@ impl Element for Backplate {
}
fn color(&self) -> [f32; 4] {
- let mut base_color = self.background_color.unwrap_or([0.0, 0.0, 0.0, 0.0]);
+ let mut base_color = self.background_color.unwrap_or_else(|| crate::color::page_low_color());
if base_color[3] > 0.001 {
base_color[3] = crate::color::active_backplate_opacity();
}