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

commit121d682dab6562f6c221c534fc80f74bc97858ff
parent3ef47f956f
authorLucas Galante <[email protected]>
date2026-06-21 08:32
feat: inherit scrollinglist entry background and highlight colors in file browser

 src/pages/browse.rs | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/pages/browse.rs b/src/pages/browse.rs
index 88ec903..31c9341 100644
--- a/src/pages/browse.rs
+++ b/src/pages/browse.rs
@@ -161,12 +161,8 @@ pub fn view(state: &mut BrowseState, cx: f32, cy: f32, cw: f32, ch: f32, select_
     let text_fg = cce_ui::color::TEXT_FG;
     let accent_fg = cce_ui::color::TEXT_ACCENT;
 
-    let selected_bg = {
-        let mut bg = cce_ui::color::highlight_primary_color();
-        bg[3] = 0.8;
-        bg
-    };
-    let row_bg = [1.0, 1.0, 1.0, 0.04];
+    let selected_bg = cce_ui::color::scrollinglist_entry_highlight_color();
+    let row_bg = cce_ui::color::scrollinglist_entry_bg_color();
 
     let gap = 12.0;
     let margin = 12.0;