structured data editor
git clone https://git.lucas.co/cce-data-editor.git
feat: render via the single paint path by default (Phase 3)
display_list() returns the scene::painter DisplayList unconditionally; cce-data-editor now renders through the Phase 3 single paint path by default (tree rows/separators, JSON pane, chrome, splitter verified). CCE_LEGACY_PAINT falls back to the legacy renderer.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
src/main.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 59467bd..d57fd1b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1522,8 +1522,8 @@ impl Application for DataEditorApp {
}
fn display_list(&mut self) -> Option<cce_ui::scene::paint::DisplayList> {
- // Opt-in A/B for the Phase 3 single paint path (CCE_PAINT_WALK). Off by default.
- if std::env::var("CCE_PAINT_WALK").is_err() {
+ // Phase 3: render via the single paint path by default. Set CCE_LEGACY_PAINT to fall back.
+ if std::env::var("CCE_LEGACY_PAINT").is_ok() {
return None;
}
let root: *mut (dyn cce_ui::widget::Element + 'static) = self.root_window.as_ptr_mut();