git.lucas.co / cce-designer
graphic design tool
git clone https://git.lucas.co/cce-designer.git

commitbccfef77e580dd32e8494498bd8549bbfe6e6f10
parentc9aa9e8a70
authorLucas Galante <lsgalante12@gmail.com>
date2026-09-29 17:44
refactor: drop uniform_background, which the graph no longer has

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

 CLAUDE.md  | 7 ++++---
 src/app.rs | 4 ----
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/CLAUDE.md b/CLAUDE.md
index d99ce47..511a9bd 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -1804,9 +1804,10 @@ spec / shininess / curvature live as `relief.spec` / `.shininess` /
 (since 2026-09-29): its cells are whatever it is painted on — the pane
 plate, or the scene with the plate off — and `style.surface.graph` sets
 only the lines (`grid_color`, `line_width`), their `opacity`, and `blur`.
-Until then the graph filled itself with `cell_color` (this app hard-codes
-`uniform_background` true, which chose it) and drew its lines in
-`gap_color`; both keys are retired, reported by path at load and not read.
+Until then the graph filled itself with `cell_color` (chosen by a
+`uniform_background` flag this app hard-coded true) and drew its lines in
+`gap_color`; all three keys are retired, reported by path at load and not
+read.
 The next section is about dropping the pane plate entirely.
 The params widget alone also reads `style.surface.param.backdrop_compression`.
 The rules live in cce-ui's CLAUDE.md ("There is one roll width", "The
diff --git a/src/app.rs b/src/app.rs
index 13393e9..a20768c 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -2250,7 +2250,6 @@ pub struct State {
     /// fading). None once fully faded. Advanced in [`State::tick_frame`],
     /// drawn by the CONTENT branch in render.rs.
     pub drop_glow: Option<DropGlow>,
-    pub uniform_background: bool,
     pub network_opacity: f32,
     /// Node-domain opacity (style.surface.graph.node.opacity) — independent of
     /// the pane's network_opacity; fades node bodies/wires/ports and node text.
@@ -6635,7 +6634,6 @@ pub(crate) fn geometry_to_spreadsheet_data(geom: &Detail) -> (Vec<String>, Vec<V
             // the cell tint): the checkerboard grout is off by design; the
             // drop-target glow (render.rs) carries the only cell highlight.
             drop_glow: None,
-            uniform_background: true,
             network_opacity: 0.95,
             node_opacity: 1.0,
             node_compression: None,
@@ -6979,7 +6977,6 @@ pub(crate) fn geometry_to_spreadsheet_data(geom: &Detail) -> (Vec<String>, Vec<V
         graph.set_grid_origin(active_node_area_x + pan_x, active_node_area_y + pan_y);
         graph.set_grid_snap_enabled(grid_snap_enabled);
         if let Some(graph) = self.slots.content.as_any_mut().downcast_mut::<cce_ui::widget::Graph>() {
-            graph.set_uniform_background(self.uniform_background);
             graph.set_network_opacity(self.network_opacity);
             graph.set_node_opacity(self.node_opacity);
             graph.set_grid_color(self.graph_grid_color);
@@ -7004,7 +7001,6 @@ pub(crate) fn geometry_to_spreadsheet_data(geom: &Detail) -> (Vec<String>, Vec<V
             g2.set_grid_snap_enabled(grid_snap_enabled);
         }
         if let Some(g2) = self.slots.content2.as_any_mut().downcast_mut::<cce_ui::widget::Graph>() {
-            g2.set_uniform_background(self.uniform_background);
             g2.set_network_opacity(self.network_opacity);
             g2.set_node_opacity(self.node_opacity);
             g2.set_grid_color(self.graph_grid_color);