From 61738ef24a6593b6557af238ed7ddb8ea6f93d85 Mon Sep 17 00:00:00 2001 From: DanS Date: Sat, 4 Jul 2026 12:34:13 -0500 Subject: [PATCH] feat(ui): float Transaction Details + Block Info dialogs (Phase 2 large-dialog example) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Convert two clean detail-view dialogs to the BlurFloat style (floating content on the blur, plain h6 heading, no glass card) — the "float for large" half of the plan, applied conservatively: keep each dialog's authored card width so its width-coupled content (absolute SameLine positions, GetWindowWidth math) is unchanged, and rely on the footer Close + outside-click for dismissal (the plain heading drops the title-bar close X, matching the portfolio modal). Auto-height preserved. A representative pair to GUI-review before rolling the treatment out to the other large dialogs (or reverting if the card-on-blur reads better). Co-Authored-By: Claude Opus 4.8 (1M context) --- src/ui/windows/block_info_dialog.cpp | 7 ++++++- src/ui/windows/transaction_details_dialog.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/ui/windows/block_info_dialog.cpp b/src/ui/windows/block_info_dialog.cpp index ab94e01..c2fc9b1 100644 --- a/src/ui/windows/block_info_dialog.cpp +++ b/src/ui/windows/block_info_dialog.cpp @@ -101,7 +101,12 @@ void BlockInfoDialog::render(App* app) auto hashBackLbl = S.label("dialogs.block-info", "hash-back-label"); auto closeBtn = S.button("dialogs.block-info", "close-button"); - if (material::BeginOverlayDialog(TR("block_info_title"), &s_open, win.width, 0.94f)) { + material::OverlayDialogSpec ov; + ov.title = TR("block_info_title"); ov.p_open = &s_open; + ov.style = material::OverlayStyle::BlurFloat; // floating content on the blur, plain heading + ov.cardWidth = win.width; // keep the authored width + ov.cardBottomViewportRatio = 0.94f; + if (material::BeginOverlayDialog(ov)) { auto* rpc = app->rpc(); const auto& state = app->getWalletState(); diff --git a/src/ui/windows/transaction_details_dialog.cpp b/src/ui/windows/transaction_details_dialog.cpp index 5faf712..1209002 100644 --- a/src/ui/windows/transaction_details_dialog.cpp +++ b/src/ui/windows/transaction_details_dialog.cpp @@ -45,7 +45,12 @@ void TransactionDetailsDialog::render(App* app) auto memoInput = S.input("dialogs.transaction-details", "memo-input"); auto bottomBtn = S.button("dialogs.transaction-details", "bottom-button"); - if (material::BeginOverlayDialog(TR("tx_details_title"), &s_open, win.width, 0.94f)) { + material::OverlayDialogSpec ov; + ov.title = TR("tx_details_title"); ov.p_open = &s_open; + ov.style = material::OverlayStyle::BlurFloat; // floating content on the blur, plain heading + ov.cardWidth = win.width; // keep the authored width (content is laid out to it) + ov.cardBottomViewportRatio = 0.94f; + if (material::BeginOverlayDialog(ov)) { const auto& tx = s_transaction; // Type indicator with color