file manager
git clone https://git.lucas.co/cce-files.git
Use system color configuration instead of hardcoded green theme
src/main.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 705da62..e14df49 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -347,8 +347,6 @@ impl Application for FilesystemApp {
let save_mode = args.iter().any(|arg| arg == "--save");
let select_mode = save_mode || args.iter().any(|arg| arg == "--select" || arg == "--select-dir");
- // Use signature green theme for the content background of the paginator
- clear_ui::color::set_page_low_color([0.10, 0.165, 0.11, 1.0]);
clear_ui::scale::set_scale_factor(1.0);
let browse = pages::browse::BrowseState::default();
@@ -601,7 +599,7 @@ impl Application for FilesystemApp {
}
fn clear_color(&self) -> [f32; 4] {
- let mut color = [0.10, 0.165, 0.11, 1.0];
+ let mut color = clear_ui::color::page_low_color();
if let Some(opacity) = clear_ui::color::read_opacity_if_configured() {
color[3] = opacity;
}