git.lucas.co / cce-status-interface
status bar
git clone https://git.lucas.co/cce-status-interface.git

commit6a41a5e3c3c7ef80ca4cc7a6a0287668c995ac31
parent3a2433f005
authorLucas Galante <[email protected]>
date2026-06-27 12:35
Fix status box backplate backdrop blur effect

 src/main.rs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index 4f57a03..65f2892 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2902,7 +2902,12 @@ fn read_status_box_background_color_from_config() -> Option<[f32; 4]> {
 
     let opacity = read_status_box_opacity_from_config();
     let blur = read_status_box_blur_from_config();
-    color[3] = opacity * (1.0 - blur);
+    
+    // Scale RGB by (1.0 - blur) to apply tint factor while keeping alpha as full opacity for the blur shader
+    color[0] *= 1.0 - blur;
+    color[1] *= 1.0 - blur;
+    color[2] *= 1.0 - blur;
+    color[3] = opacity;
 
     Some(color)
 }