diff --git a/src/ui/material/draw_helpers.h b/src/ui/material/draw_helpers.h index f3222a9..f285f13 100644 --- a/src/ui/material/draw_helpers.h +++ b/src/ui/material/draw_helpers.h @@ -1298,7 +1298,10 @@ inline bool BeginOverlayDialog(const OverlayDialogSpec& spec) return childVisible; } -// Legacy positional overload — forwards to the spec impl with GlassCard defaults (byte-identical). +// Positional overload — the default look for the app's dialogs: a card (auto-height, so small +// dialogs stay small) on the live-blur backdrop. The card renders opaque via the sole-consumer +// fallback (glass would thrash the single-slot blur cache against the radius-64 backdrop). A dialog +// that wants the old opaque scrim (no blur) can pass a spec with blurBackdrop = false. inline bool BeginOverlayDialog(const char* title, bool* p_open, float cardWidth = 460.0f, float scrimOpacity = 0.92f, float cardBottomViewportRatio = 0.85f, const char* idSuffix = nullptr) @@ -1306,6 +1309,7 @@ inline bool BeginOverlayDialog(const char* title, bool* p_open, float cardWidth OverlayDialogSpec s; s.title = title; s.p_open = p_open; s.cardWidth = cardWidth; s.scrimOpacity = scrimOpacity; s.cardBottomViewportRatio = cardBottomViewportRatio; s.idSuffix = idSuffix; + s.blurBackdrop = true; return BeginOverlayDialog(s); }