git.lucas.co / cce-files
file manager
git clone https://git.lucas.co/cce-files.git

commit074a531c328c8af66c913822b773bdd16f856d2d
parent7182e59b69
authorLucas Galante <[email protected]>
date2026-06-18 14:56
Migrate configuration from TOML to JSON

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

diff --git a/src/main.rs b/src/main.rs
index 0a66289..40cf1dc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -133,7 +133,9 @@ impl FilesystemApp {
         // Update root window size, background color, opacity, corner radius
         self.root_window.set_rect(0.0, 0.0, self.width as f32, self.height as f32);
         let mut bg_color = cce_ui::color::page_low_color();
-        bg_color[3] = 1.0;
+        if let Some(opacity) = cce_ui::color::read_opacity_if_configured() {
+            bg_color[3] = opacity;
+        }
         self.root_window.background_color = Some(bg_color);
         self.root_window.radius = 12.0;