git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit5c474aaf9c3bbbce7a603d33692ae0ab93c63ea2
parentb36587fe2f
authorLucas Galante <[email protected]>
date2026-07-22 15:09
style: steeper rocker tilt

FACE_TILT 0.25 -> 0.5: roughly doubles the face wash contrast under
the default light (on ~15% shade, off ~8% light at bevel_depth 0.15).

Co-Authored-By: Claude Fable 5 <[email protected]>

 src/widget/input/checkbox.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/widget/input/checkbox.rs b/src/widget/input/checkbox.rs
index 88b3c56..0823d16 100644
--- a/src/widget/input/checkbox.rs
+++ b/src/widget/input/checkbox.rs
@@ -301,7 +301,7 @@ impl Toggle {
     /// shader2d's `PLATE_AMBIENT` / `flat_shade` — keep the three in sync.
     pub fn face_light(&self, top_half: bool) -> [f32; 4] {
         const AMBIENT: f32 = 0.55; // shader2d PLATE_AMBIENT
-        const FACE_TILT: f32 = 0.25; // the bent plate's slope, as dh over dy
+        const FACE_TILT: f32 = 0.5; // the rocker plate's slope, as dh over dy
         let az = crate::layout::light_source_position();
         let el = std::f32::consts::FRAC_PI_4; // plate_light's elevation
         let (ly, lz) = (-az.sin() * el.cos(), el.sin());