git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit2087d77d49e5f40cf9eb0c59c6c7615f3070de8a
parent8891a6d1fb
authorLucas Galante <[email protected]>
date2026-06-28 07:06
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();
         }