Unify theme sizing and spacing on Base UI metrics
- Read only mode, accent, accessibility, and native window material from the OS. - Replace platform palettes, metrics, type ramps, borders, and elevations with unified tokens. - Align controls, overlays, and data rows with Base UI sizing.
This commit is contained in:
@@ -150,7 +150,6 @@ impl RenderOnce for Alert {
|
||||
let metrics = theme.sizes.resolve(Size::Medium);
|
||||
let icon_size = metrics.icon_size;
|
||||
let dense_icon_size = metrics.dense_icon_size;
|
||||
let caption_size = metrics.caption_size;
|
||||
|
||||
let content = v_flex()
|
||||
.flex_1()
|
||||
@@ -171,7 +170,7 @@ impl RenderOnce for Alert {
|
||||
};
|
||||
alert.child(
|
||||
div()
|
||||
.text_size(caption_size)
|
||||
.text_size(metrics.text_size)
|
||||
.text_color(color)
|
||||
.child(message),
|
||||
)
|
||||
@@ -189,11 +188,7 @@ impl RenderOnce for Alert {
|
||||
match self.presentation {
|
||||
AlertStyle::Overlay => {
|
||||
let surface = theme.colors.surface;
|
||||
let border = if theme.borders.overlays {
|
||||
theme.colors.border
|
||||
} else {
|
||||
surface
|
||||
};
|
||||
let border = theme.colors.border;
|
||||
|
||||
div()
|
||||
.id(self.id.clone())
|
||||
|
||||
Reference in New Issue
Block a user