From 1407178c794c7688ff663f46095cb7c4eb24276f Mon Sep 17 00:00:00 2001 From: clover caruso Date: Sun, 11 Oct 2026 18:27:44 -0700 Subject: [PATCH] fix(mobile): adapt authored ink to dark page paper Supply the page paper to the existing renderer color adaptation, matching desktop rendering while preserving authored colors. fixes #132 Assisted-by: gpt-6.1-sol --- crates/mobile/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/mobile/src/lib.rs b/crates/mobile/src/lib.rs index 344f4195d1d832d81f63a6008f01e6c45b808d2a..ff21f881ae8eb2aa11b183d9c21b8b6452e5fb1f 100644 --- a/crates/mobile/src/lib.rs +++ b/crates/mobile/src/lib.rs @@ -887,7 +887,10 @@ impl View { &target, [presentation.config.width, presentation.config.height], paper.color, - &[canvas.page.viewport.layer(&primitives)], + &[draw::Layer { + backdrop: Some(paper.color), + ..canvas.page.viewport.layer(&primitives) + }], ) .map_err(|error| format!("Page drawing failed: {error:?}"))?; renderer.queue().present(frame); -- 2.54.0