, gr
let span = (y1 - y0).max(1e-3);
fill_polygon(p, shape, |q| top.lerp_to_gamma(bottom, ((q.y - y0) / span).clamp(0.0, 1.0)));
} else if let Some(f) = fill {
- let c = ctx.ink(f.ink, f.a);
+ let ink = match f.ink {
+ Ink::Black => Ink::Shadow,
+ ink => ink,
+ };
+ let c = ctx.ink(ink, f.a);
fill_polygon(p, shape, |_| c);
}
}
diff --git a/crates/ui-egui/src/ui_kit/preferences_small.rs b/crates/ui-egui/src/ui_kit/preferences_small.rs
index 23d8e0827c..f533071d32 100644
--- a/crates/ui-egui/src/ui_kit/preferences_small.rs
+++ b/crates/ui-egui/src/ui_kit/preferences_small.rs
@@ -2,6 +2,190 @@
use crate::theme::Tokens;
use egui::{Align, FontId, Layout, Rect, Sense, Stroke, Ui, pos2, vec2};
+const SETTINGS_PAGE: &str = "sc_settings_page";
+pub(super) const ROW_HELP: &str = "sc_settings_row_help";
+
+/// Opt-in page rhythm; other forms retain their existing spacing and heading sizes.
+pub(crate) fn settings_page