GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
graph: cell_corner_radius is pure geometry — no display gating
The show_network_grid/uniform_background guard returned 0 whenever the
cell tiles were hidden, silently squaring every OTHER consumer of the
cell corner language — the designer's empty-cell cursor and drop-target
glow read this radius, and those exist regardless of tile rendering.
Degenerate-grid guard stays.
Co-Authored-By: Claude Fable 5 <[email protected]>
src/widget/display/graph.rs | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/widget/display/graph.rs b/src/widget/display/graph.rs
index 8fae672..52969f8 100644
--- a/src/widget/display/graph.rs
+++ b/src/widget/display/graph.rs
@@ -342,9 +342,11 @@ impl Graph {
/// read as miniatures of the desktop's. Clamped to a quarter sweep;
/// 0 when the grid is off or degenerate.
pub fn cell_corner_radius(&self) -> f32 {
- if !self.show_network_grid || self.uniform_background {
- return 0.0;
- }
+ // Pure cell GEOMETRY — no display gating: hosts read this for
+ // anything cell-shaped (the empty-cell cursor, drop-target
+ // highlights), which exist whether or not the cell tiles render.
+ // Gating on show_network_grid/uniform_background silently squared
+ // those consumers whenever the tiles were hidden.
if self.grid_size_x <= 0.0 || self.grid_size_y <= 0.0 {
return 0.0;
}