feat(security): match the lock-screen card to the dialog cards
GUI review showed the lock card was a flat light SurfaceVariant panel that stood out against the dark glass cards of the other modals. Draw it with the same GlassPanelSpec (rounding 16, fill 35, border 50) that BeginOverlayDialog uses, so it renders as the same opaque-dark glass card on the blur backdrop. Visual only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -808,8 +808,14 @@ void App::renderLockScreen() {
|
||||
ImVec2 cardMin(cardX, cardY);
|
||||
ImVec2 cardMax(cardX + cardW, cardY + cardH);
|
||||
|
||||
ImU32 cardBg = ui::material::SurfaceVariant();
|
||||
dl->AddRectFilled(cardMin, cardMax, cardBg, 16.0f);
|
||||
// Match the dialog cards: the same glass panel BeginOverlayDialog draws (renders opaque-dark on
|
||||
// the blur via the sole-consumer fallback), instead of a flat light SurfaceVariant fill.
|
||||
GlassPanelSpec cardGlass;
|
||||
cardGlass.rounding = 16.0f;
|
||||
cardGlass.fillAlpha = 35;
|
||||
cardGlass.borderAlpha = 50;
|
||||
cardGlass.borderWidth = 1.0f;
|
||||
DrawGlassPanel(dl, cardMin, cardMax, cardGlass);
|
||||
|
||||
float cy = cardY + 24.0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user