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

commit804d2e09722a1388fdc7bc8d093ad2ea06580274
parentf65a573f12
authorLucas Galante <[email protected]>
date2026-08-25 13:11
chore: root_plate_* — cce-ui 7a-2 caller migration

Mechanical rename onto cce-ui's canonical root-plate getters
(cce-ui@c8e0ab3, RFC Phase 7a); behavior unchanged, same config slots.

 src/main.rs         | 16 ++++++++--------
 src/pages/browse.rs |  2 +-
 src/preview_pane.rs |  2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index ec75e46..bb20eaa 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -458,7 +458,7 @@ impl FilesystemApp {
         let has_sidebar = false;
         let sidebar_w = if has_sidebar { self.paginator.sidebar_w() } else { 0.0 };
         // DE-wide plate rim padding (style.surface.backplate.padding).
-        let pad = cce_ui::layout::backplate_padding();
+        let pad = cce_ui::layout::root_plate_padding();
         let browse_x = if has_sidebar { sidebar_w + pad + 1.0 } else { pad };
         let usable_w = self.width as f32 - sidebar_w - (if has_sidebar { 1.0 } else { 0.0 }) - 2.0 * pad;
         let content_y = pad;
@@ -598,7 +598,7 @@ impl FilesystemApp {
         // content region, so it goes into window_pc: page content (pc) is clipped
         // to the viewport and would swallow the bar entirely.
         if self.select_mode {
-            let bar_y = self.height as f32 - select_bar_h - cce_ui::layout::backplate_padding();
+            let bar_y = self.height as f32 - select_bar_h - cce_ui::layout::root_plate_padding();
             // Divider line — under control_relief the bar is a band carved into the
             // plate (see display_list), so the flat line is the fallback only.
             if !cce_ui::layout::control_relief() {
@@ -1068,9 +1068,9 @@ impl Application for FilesystemApp {
                 hovered: None,
             },
             open_with_dialog: None,
-            browse_split: SplitPane::new(0.49, 100.0, 100.0, cce_ui::layout::backplate_gap()),
-            network_split: SplitPane::new(0.49, 100.0, 100.0, cce_ui::layout::backplate_gap()),
-            space_split: SplitPane::new(0.49, 100.0, 100.0, cce_ui::layout::backplate_gap()),
+            browse_split: SplitPane::new(0.49, 100.0, 100.0, cce_ui::layout::root_plate_gap()),
+            network_split: SplitPane::new(0.49, 100.0, 100.0, cce_ui::layout::root_plate_gap()),
+            space_split: SplitPane::new(0.49, 100.0, 100.0, cce_ui::layout::root_plate_gap()),
             last_space_click_time: std::time::Instant::now(),
             last_space_path: None,
             last_click_time: std::time::Instant::now(),
@@ -1348,9 +1348,9 @@ impl Application for FilesystemApp {
         // surface reads as a physical plate rather than a flat fill.
         let mut plate = cce_ui::color::page_low_color();
         if plate[3] > 0.001 {
-            plate[3] = cce_ui::color::active_backplate_opacity();
+            plate[3] = cce_ui::color::root_plate_opacity();
         }
-        let radius = cce_ui::color::backplate_corner_radius().max(0.0);
+        let radius = cce_ui::color::root_plate_corner_radius().max(0.0);
         pc.plate(
             Rect { x: 0.0, y: 0.0, width: fw, height: fh },
             (radius, radius, radius, radius),
@@ -1370,7 +1370,7 @@ impl Application for FilesystemApp {
         if cce_ui::layout::control_relief() {
             let wall = cce_ui::layout::bar_wall_width();
             if self.select_mode {
-                let band_h = SELECT_BAR_H + cce_ui::layout::backplate_padding();
+                let band_h = SELECT_BAR_H + cce_ui::layout::root_plate_padding();
                 pc.recess_edges(
                     Rect { x: 0.0, y: fh - band_h, width: fw, height: band_h },
                     (0.0, 0.0, 0.0, 0.0),
diff --git a/src/pages/browse.rs b/src/pages/browse.rs
index 497e64e..dab3def 100644
--- a/src/pages/browse.rs
+++ b/src/pages/browse.rs
@@ -188,7 +188,7 @@ pub fn view(state: &mut BrowseState, view_dropdown: &mut cce_ui::widget::Adapted
     // The pane rect already sits backplate_padding off the plate rim — no
     // second inset here, or the list lands 16+12 from the edge while apps
     // that place content at the pane rect (cce-data-editor's tree) sit at 16.
-    let gap = cce_ui::layout::backplate_gap();
+    let gap = cce_ui::layout::root_plate_gap();
     let margin = 0.0;
     let mut layout = ColumnLayout::new(gap);
     let client_x = cx + margin;
diff --git a/src/preview_pane.rs b/src/preview_pane.rs
index fbee607..ebd0e36 100644
--- a/src/preview_pane.rs
+++ b/src/preview_pane.rs
@@ -273,7 +273,7 @@ impl PreviewPane {
         // 2. Bottom pane: Details Section. The visible gap between the wells
         // is exactly backplate_gap — the same separator width as everywhere
         // else on the plate (it was a hardcoded 12+7=19px before).
-        let details_top = cy + half_h + cce_ui::layout::backplate_gap();
+        let details_top = cy + half_h + cce_ui::layout::root_plate_gap();
         let icon = if self.is_dir { "📁" } else { "📄" };
 
         let details = [