qml: audit the design system and adopt shared components #1052

Manually merged
pseudoramdom merged 19 commits from design-system-audit into qt6 2026-11-13 19:00:23 +00:00 AGit
pseudoramdom commented 2026-10-26 22:58:28 +00:00 (Migrated from github.com)

Audit the design system and check whether UI elements use the shared theme, components and patterns.

  • Colors: call sites use semantic roles instead of hues and neutral steps, so adding a theme only means adding a palette file.

    • The theme is saved as a global palette ID, and the old per-network dark setting migrates to it on first run.
  • Tokens: spacing, corner radii, icon and image sizes, and animation durations and easing come from Theme instead of literals, so the same kind of element looks and moves the same everywhere.

  • Motion: animations have full, reduced and off modes.

    • Reduced motion removes movement and keeps short fades and color changes.
    • -test-motion=off makes animations instant, so the QML suite runs about three times faster and doesn't wait on transitions.
  • Accessibility: new settings in Display > Accessibility and controls that work with screen readers and the keyboard.

    • Reduce motion follows the platform setting and can be turned on in the app.
    • Text size has seven steps from 85% to 130%. Every text role scales its size and line height, and the choice is saved globally.
    • Controls expose the names, roles and states screen readers expect; decorative items are skipped.
    • Every control shows keyboard focus, Tab reaches every interactive control, and multi-line fields can be left with Tab.
Screenshot 2026-10-26 at 3 54 58 PM
  • Dialogs and alerts: every modal is built on a shared DialogPopup.

    • DialogPopup owns the overlay, surface, transitions, height cap, focus handling and Escape and outside-press behavior.
  • Components: overlapping controls are merged into one each.

  • Settings layout: settings pages use NavigationSplitView, so on narrow windows the sidebar becomes a list that pushes each page.

  • Docs: design.md states the principles, layout, components, accessibility and file structure the app follows, and AGENTS.md points agents to it before UI work.

  • Cleanup: unused components, legacy settings pages and icon aliases are removed.

Audit the design system and check whether UI elements use the shared theme, components and patterns. * **Colors**: call sites use semantic roles instead of hues and neutral steps, so adding a theme only means adding a palette file. * The theme is saved as a global palette ID, and the old per-network dark setting migrates to it on first run. * **Tokens**: spacing, corner radii, icon and image sizes, and animation durations and easing come from Theme instead of literals, so the same kind of element looks and moves the same everywhere. * **Motion**: animations have full, reduced and off modes. * Reduced motion removes movement and keeps short fades and color changes. * `-test-motion=off` makes animations instant, so the QML suite runs about three times faster and doesn't wait on transitions. * **Accessibility**: new settings in `Display > Accessibility` and controls that work with screen readers and the keyboard. * Reduce motion follows the platform setting and can be turned on in the app. * Text size has seven steps from 85% to 130%. Every text role scales its size and line height, and the choice is saved globally. * Controls expose the names, roles and states screen readers expect; decorative items are skipped. * Every control shows keyboard focus, Tab reaches every interactive control, and multi-line fields can be left with Tab. <img width="901" height="221" alt="Screenshot 2026-10-26 at 3 54 58 PM" src="https://git.fish.foo/attachments/6fe35c13-17cf-4b4d-ba9c-2b98c4135953" /> * **Dialogs and alerts**: every modal is built on a shared DialogPopup. * DialogPopup owns the overlay, surface, transitions, height cap, focus handling and Escape and outside-press behavior. * **Components**: overlapping controls are merged into one each. * **Settings layout**: settings pages use NavigationSplitView, so on narrow windows the sidebar becomes a list that pushes each page. * **Docs**: `design.md` states the principles, layout, components, accessibility and file structure the app follows, and `AGENTS.md` points agents to it before UI work. * **Cleanup**: unused components, legacy settings pages and icon aliases are removed.
pseudoramdom commented 2026-10-27 19:49:06 +00:00 (Migrated from github.com)

More comprehensive showcase of the design system.

Screenshot 2026-10-27 at 10 13 00 AM Screenshot 2026-10-27 at 10 13 11 AM Screenshot 2026-10-27 at 10 13 16 AM Screenshot 2026-10-27 at 10 13 20 AM
More comprehensive showcase of the design system. <img width="1607" height="1522" alt="Screenshot 2026-10-27 at 10 13 00 AM" src="https://git.fish.foo/attachments/1ce7f459-7d6c-452b-983c-c1216865d3d0" /> <img width="1607" height="1522" alt="Screenshot 2026-10-27 at 10 13 11 AM" src="https://git.fish.foo/attachments/93fa0d0e-9a8f-41bb-b0a1-635a8f7d24db" /> <img width="1607" height="1522" alt="Screenshot 2026-10-27 at 10 13 16 AM" src="https://git.fish.foo/attachments/9b03033f-b341-4094-8880-d9cd83e30336" /> <img width="1607" height="1522" alt="Screenshot 2026-10-27 at 10 13 20 AM" src="https://git.fish.foo/attachments/7fb57fdf-8739-4017-9057-1d4a564b5601" />
pseudoramdom commented 2026-10-27 22:58:37 +00:00 (Migrated from github.com)

Added a commit for qml: add a setting to hide amounts cc @johnny9
Screenshot 2026-10-27 at 3 51 49 PM
Screenshot 2026-10-27 at 3 51 29 PM
Screenshot 2026-10-27 at 3 58 01 PM
Screenshot 2026-10-27 at 3 58 05 PM

Added a commit for `qml: add a setting to hide amounts` cc @johnny9 <img width="1589" height="1160" alt="Screenshot 2026-10-27 at 3 51 49 PM" src="https://git.fish.foo/attachments/fd6df931-1b1a-46d8-97d6-d14f8628590f" /> <img width="1589" height="1160" alt="Screenshot 2026-10-27 at 3 51 29 PM" src="https://git.fish.foo/attachments/7c6839ba-36e6-41d0-8f90-73253f38ff82" /> <img width="880" height="279" alt="Screenshot 2026-10-27 at 3 58 01 PM" src="https://git.fish.foo/attachments/09451989-72ec-4bee-a231-48576a8f96ee" /> <img width="257" height="353" alt="Screenshot 2026-10-27 at 3 58 05 PM" src="https://git.fish.foo/attachments/501b10ac-6a82-44a5-9e2d-2e73374583b5" />
epicleafies (Migrated from github.com) reviewed 2026-10-29 02:15:05 +00:00
epicleafies (Migrated from github.com) left a comment

Concept ACK github.com/bitcoin-core/gui-qml@04e01e462d

The redesign looks good overall and the consolidation of the components is appreciated. Two things blocking, both inline: flow nodes draw the amount over the title (TransactionFlowNode.qml), and 10 commits can't open the main window on Qt 6.4 (DesignSystemFields.qml). The rest are inline suggestions, mostly gaps in the new Hide amounts, Text size, Reduce motion and accessibility work.

Commit-level notes:

  • 1bf3b1cc45, 034a1a87a2 and b312ca811e carry behavior changes their subjects don't mention: the in-window startup error, the new confirmations before deleting a payment request and opening external links, the move to NavigationSplitView, the QR copy/save failure alerts, and the binding-loop fixes. Splitting those out, and moving Hide amounts and the startup error into their own PRs, would make review and bisect easier.
  • 643f9ab912 and b2a027986b use a refactor: prefix; the rest of the history for these files uses qml:.
  • The icon cleanup leaves 14 now-unused SVG sources in qml/res/src/ (add-wallet-dark, arrow-down, arrow-up, blockclock-icon, circle-file, circle-green-check, green-check, pending-dark, pending-light, plus-big-filled, qr-code, singlesig-wallet, triangle-down, triangle-up).

Testing out the new design guidelines in my next PR, will follow up on that when it's done.

Tested on Linux with Qt 6.4.2: ctest and the functional suite pass (2 skips for missing legacy binaries). macOS and Windows not tested.

Concept ACK https://github.com/bitcoin-core/gui-qml/commit/04e01e462ddc828a46e6395a90d3885db943a343 The redesign looks good overall and the consolidation of the components is appreciated. Two things blocking, both inline: flow nodes draw the amount over the title (TransactionFlowNode.qml), and 10 commits can't open the main window on Qt 6.4 (DesignSystemFields.qml). The rest are inline suggestions, mostly gaps in the new Hide amounts, Text size, Reduce motion and accessibility work. Commit-level notes: - 1bf3b1cc45, 034a1a87a2 and b312ca811e carry behavior changes their subjects don't mention: the in-window startup error, the new confirmations before deleting a payment request and opening external links, the move to NavigationSplitView, the QR copy/save failure alerts, and the binding-loop fixes. Splitting those out, and moving Hide amounts and the startup error into their own PRs, would make review and bisect easier. - 643f9ab912 and b2a027986b use a `refactor:` prefix; the rest of the history for these files uses `qml:`. - The icon cleanup leaves 14 now-unused SVG sources in `qml/res/src/` (add-wallet-dark, arrow-down, arrow-up, blockclock-icon, circle-file, circle-green-check, green-check, pending-dark, pending-light, plus-big-filled, qr-code, singlesig-wallet, triangle-down, triangle-up). Testing out the new design guidelines in my next PR, will follow up on that when it's done. Tested on Linux with Qt 6.4.2: ctest and the functional suite pass (2 skips for missing legacy binaries). macOS and Windows not tested.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Nit: The 04e01e462d body says AGENTS.md lists the build and test commands, but it only has the UI checklist. Also, is the repo root intended for design.md? The other project docs are in doc/.

Nit: The 04e01e462d body says AGENTS.md lists the build and test commands, but it only has the UI checklist. Also, is the repo root intended for design.md? The other project docs are in `doc/`.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (tests): This nested event loop on the startup path has no test. A functional test that triggers an InitError during pre-init onboarding (e.g. a locked datadir) and checks the alert shows the message, and that Close or closing the window exits, would cover it.

Suggestion (tests): This nested event loop on the startup path has no test. A functional test that triggers an InitError during pre-init onboarding (e.g. a locked datadir) and checks the alert shows the message, and that Close or closing the window exits, would cover it.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (Reduce motion): The estimating pulse is gated on decorativeLoops, but the dial sweep isn't: this BlockClockDial uses the C++ default animateDial (true), and MiniBlockClock.qml's animateDial has no motion check either. Both clocks keep sweeping with Reduce motion on, very visibly in the header while connecting. && Theme.motion.decorativeLoops on both. A frame-diff sweep found nothing else still moving.

Suggestion (Reduce motion): The estimating pulse is gated on `decorativeLoops`, but the dial sweep isn't: this `BlockClockDial` uses the C++ default `animateDial` (true), and `MiniBlockClock.qml`'s `animateDial` has no motion check either. Both clocks keep sweeping with Reduce motion on, very visibly in the header while connecting. `&& Theme.motion.decorativeLoops` on both. A frame-diff sweep found nothing else still moving.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Text size): These fixed delegate heights clip the date line on labelled coins. Similar fixed sizes elsewhere at 130%: the header wallet badge (48 px, content needs 53, so the balance spills out of its hover/checked background), "Check devi…" on External signer (ExternalSignerSettingsPage.qml:132), the debug log time column, and the Activity date chips and weekday names.

Suggestion (Text size): These fixed delegate heights clip the date line on labelled coins. Similar fixed sizes elsewhere at 130%: the header wallet badge (48 px, content needs 53, so the balance spills out of its hover/checked background), "Check devi…" on External signer (`ExternalSignerSettingsPage.qml:132`), the debug log time column, and the Activity date chips and weekday names.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion: The URL is in a message that wraps only at word boundaries, so an explorer URL (https://mempool.space/tx/<txid>) is clipped on both sides at every text size. WrapAtWordBoundaryOrAnywhere, or the URL on its own anywhere-wrapping line.

Suggestion: The URL is in a message that wraps only at word boundaries, so an explorer URL (`https://mempool.space/tx/<txid>`) is clipped on both sides at every text size. `WrapAtWordBoundaryOrAnywhere`, or the URL on its own anywhere-wrapping line.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Nit: now that captionStrong really renders Semi Bold on Qt 6.4, "Back" looks noticeably heavier than its thin caret.

Nit: now that captionStrong really renders Semi Bold on Qt 6.4, "Back" looks noticeably heavier than its thin caret.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Nit: only "Copy QR code" has an icon in this menu.

Nit: only "Copy QR code" has an icon in this menu.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Hide amounts): Transaction details mask the amount, but the payment request opened from the flow diagram shows the received amount here, and the requested amount field further down too. hidesAmount: true on this TransactionSummary, and decide whether the saved request amount should be masked while not being edited.

Suggestion (Hide amounts): Transaction details mask the amount, but the payment request opened from the flow diagram shows the received amount here, and the requested amount field further down too. `hidesAmount: true` on this TransactionSummary, and decide whether the saved request amount should be masked while not being edited.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion: Add that payments to this address will still arrive in the wallet but won't be linked to a request. That's what removeReceiveRequest does (I paid a deleted request's address and it shows as an ordinary transaction), and it's the first thing users will wonder.

Suggestion: Add that payments to this address will still arrive in the wallet but won't be linked to a request. That's what `removeReceiveRequest` does (I paid a deleted request's address and it shows as an ordinary transaction), and it's the first thing users will wonder.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion: At a 1280x720 window this dialog is capped below 800 px and its content (search, filters, the list's 120 px minimum, the summary card) doesn't fit, so the footer is drawn over the summary and hides the Change value. Let the list shrink further or make the body scroll.

Suggestion: At a 1280x720 window this dialog is capped below 800 px and its content (search, filters, the list's 120 px minimum, the summary card) doesn't fit, so the footer is drawn over the summary and hides the Change value. Let the list shrink further or make the body scroll.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (keyboard): Tab reaches rows below the fold but this page's ScrollView (line 46) doesn't follow, so the focused row stays off screen (same in the Activity list); arrow-scrolling can also hide it under the sticky header. OnboardingView.qml's ensureFocusedItemVisible would work here. May predate the PR, but it undercuts "Tab reaches every interactive control".

Suggestion (keyboard): Tab reaches rows below the fold but this page's ScrollView (line 46) doesn't follow, so the focused row stays off screen (same in the Activity list); arrow-scrolling can also hide it under the sticky header. `OnboardingView.qml`'s `ensureFocusedItemVisible` would work here. May predate the PR, but it undercuts "Tab reaches every interactive control".
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Hide amounts): The fee is masked but the fee rate and virtual size aren't, and fee = rate × vsize. Also this hardcodes the mask, so screen readers read ten "asterisk operator" symbols instead of "Hidden amount". A ValueRow with amountValue and hidesAmount fixes both.

Suggestion (Hide amounts): The fee is masked but the fee rate and virtual size aren't, and fee = rate × vsize. Also this hardcodes the mask, so screen readers read ten "asterisk operator" symbols instead of "Hidden amount". A ValueRow with `amountValue` and `hidesAmount` fixes both.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Nit (Hide amounts): The raw transaction hex stays visible and encodes every output value. Blank or collapse it while hidden.

Nit (Hide amounts): The raw transaction hex stays visible and encodes every output value. Blank or collapse it while hidden.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Nit (Hide amounts): The ribbons stay proportional to the hidden amounts, so relative sizes still show. Equal widths while hidden, if that matters.

Nit (Hide amounts): The ribbons stay proportional to the hidden amounts, so relative sizes still show. Equal widths while hidden, if that matters.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Blocker: this label ends up at x: 0 in the RowLayout and is drawn over the title (wallet name / "Block reward") on every details page, amounts shown or hidden, both palettes, every text size, Wayland and offscreen, and it persists. The PR base lays the same node out at x: 219. Bisect points at cde36b4349, where this and the title switched from font: to textStyle:. Toggling Hide amounts while the page is open re-lays it out until the page is reopened, so the first layout pass never positions it.

Repro: regtest, create a wallet, mine 101 blocks, open any transaction. A tst_transactionflow check that transactionFlowAmountWide.x is past the title's right edge would catch it offscreen.

Blocker: this label ends up at `x: 0` in the RowLayout and is drawn over the title (wallet name / "Block reward") on every details page, amounts shown or hidden, both palettes, every text size, Wayland and offscreen, and it persists. The PR base lays the same node out at `x: 219`. Bisect points at cde36b4349, where this and the title switched from `font:` to `textStyle:`. Toggling Hide amounts while the page is open re-lays it out until the page is reopened, so the first layout pass never positions it. Repro: regtest, create a wallet, mine 101 blocks, open any transaction. A `tst_transactionflow` check that `transactionFlowAmountWide.x` is past the title's right edge would catch it offscreen.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Nit (contrast): controlBorder (neutral4) is 1.61:1 in light and 2.80:1 in dark against the card, still below the 3:1 non-text contrast minimum for the unchecked box. The light retune already moved neutral4 from #DEDEDE to #C4C4C4; one more step, or a dedicated control-border value, would clear it.

Nit (contrast): `controlBorder` (neutral4) is 1.61:1 in light and 2.80:1 in dark against the card, still below the 3:1 non-text contrast minimum for the unchecked box. The light retune already moved neutral4 from #DEDEDE to #C4C4C4; one more step, or a dedicated control-border value, would clear it.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (keyboard): When the opener is gone (creating a payment request changes the page behind the modal), this returns early and focus ends on the window root with no ring. Fall back to the current page's first focusable control. Related: menus open on Space with no item focused, and Down on their button scrolls the page instead of opening them.

Suggestion (keyboard): When the opener is gone (creating a payment request changes the page behind the modal), this returns early and focus ends on the window root with no ring. Fall back to the current page's first focusable control. Related: menus open on Space with no item focused, and Down on their button scrolls the page instead of opening them.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Question (keyboard): After switching settings pages or tabs, keyboard focus comes back where it was on that page instead of starting fresh. Intended? The usual convention is that focus stays on the activated sidebar item or tab and the next Tab enters the new page at its first control.

Question (keyboard): After switching settings pages or tabs, keyboard focus comes back where it was on that page instead of starting fresh. Intended? The usual convention is that focus stays on the activated sidebar item or tab and the next Tab enters the new page at its first control.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (root cause, accessibility): On Qt 6.4 this role is replaced once accessibility is active; the AT-SPI tree shows the Activity/Send/Receive tabs and the header buttons as check boxes. Qt Quick Controls reset a checkable Button's role (a minimal repro on 6.4.2 does the same, while a TabButton reads as a page tab and an ItemDelegate as a list item). Same for SegmentedPicker's segments and container. tst_designsystem reads the QML property with accessibility off, so it passes. Basing these on TabButton / ItemDelegate and testing roles with accessibility active would make them land.

Suggestion (root cause, accessibility): On Qt 6.4 this role is replaced once accessibility is active; the AT-SPI tree shows the Activity/Send/Receive tabs and the header buttons as check boxes. Qt Quick Controls reset a checkable `Button`'s role (a minimal repro on 6.4.2 does the same, while a `TabButton` reads as a page tab and an `ItemDelegate` as a list item). Same for SegmentedPicker's segments and container. `tst_designsystem` reads the QML property with accessibility off, so it passes. Basing these on `TabButton` / `ItemDelegate` and testing roles with accessibility active would make them land.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (keyboard): Buttons activate on Space but not Enter/Return (among the shared controls only SearchBar handles Return). Buttons usually take both; adding Return/Enter to the shared buttons would fit the keyboard work in 1282622ff0.

Suggestion (keyboard): Buttons activate on Space but not Enter/Return (among the shared controls only SearchBar handles Return). Buttons usually take both; adding Return/Enter to the shared buttons would fit the keyboard work in 1282622ff0.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (keyboard): pressed also goes true while a handle processes a key press, so the first arrow key sets pointerFocus and the focus ring disappears. Set it from a pointer-only source (e.g. a TapHandler).

Suggestion (keyboard): `pressed` also goes true while a handle processes a key press, so the first arrow key sets `pointerFocus` and the focus ring disappears. Set it from a pointer-only source (e.g. a TapHandler).
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (keyboard): With arrows moving the selection this behaves as a tab list, but each segment is still its own Tab stop. activeFocusOnTab: checked on the segments leaves one stop per picker.

Suggestion (keyboard): With arrows moving the selection this behaves as a tab list, but each segment is still its own Tab stop. `activeFocusOnTab: checked` on the segments leaves one stop per picker.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Nit (contrast): The unfilled track is nearly invisible on the card (about 1.1:1 against it in both palettes).

Nit (contrast): The unfilled track is nearly invisible on the card (about 1.1:1 against it in both palettes).
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion: QAPP_APP_NAME_DEFAULT is also mainnet's per-chain settings name, so palette, text size and reduce motion live in mainnet's file: -resetguisettings on mainnet clears them for every chain, on testnet/signet it doesn't. A dedicated settings name and typed properties instead of open value/setValue would make the scope explicit and keep QML from writing arbitrary mainnet keys such as strDataDir. At minimum this comment should say so.

Suggestion: `QAPP_APP_NAME_DEFAULT` is also mainnet's per-chain settings name, so palette, text size and reduce motion live in mainnet's file: `-resetguisettings` on mainnet clears them for every chain, on testnet/signet it doesn't. A dedicated settings name and typed properties instead of open `value`/`setValue` would make the scope explicit and keep QML from writing arbitrary mainnet keys such as `strDataDir`. At minimum this comment should say so.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (security): startupErrorAlert uses AlertPopup's default Text.AutoText, so an init error embedding a wallet name, path or config value with markup renders as rich text. The Widgets GUI forces plain text here; messageTextFormat: Text.PlainText on this and initErrorPopup.

Suggestion (security): `startupErrorAlert` uses AlertPopup's default `Text.AutoText`, so an init error embedding a wallet name, path or config value with markup renders as rich text. The Widgets GUI forces plain text here; `messageTextFormat: Text.PlainText` on this and `initErrorPopup`.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Hide amounts, i18n): "Mask your balance and activity amounts" doesn't match what's masked yet; see the other Hide amounts comments. Either cover those or narrow this. Also, the new strings in this file ("Hide amounts", "Accessibility", "Text size", "Default", "Reduce motion", this description) have no //: translator comments; "Default" is ambiguous without one.

Suggestion (Hide amounts, i18n): "Mask your balance and activity amounts" doesn't match what's masked yet; see the other Hide amounts comments. Either cover those or narrow this. Also, the new strings in this file ("Hide amounts", "Accessibility", "Text size", "Default", "Reduce motion", this description) have no `//:` translator comments; "Default" is ambiguous without one.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Hide amounts): Ctrl+Shift+M is only discoverable from View > Hide Amounts in the native menu bar, which doesn't exist on Windows or most Linux desktops. Showing the shortcut in this row would fix it for this setting (more generally the app will need somewhere to find shortcuts without a native menu bar).

Suggestion (Hide amounts): Ctrl+Shift+M is only discoverable from View > Hide Amounts in the native menu bar, which doesn't exist on Windows or most Linux desktops. Showing the shortcut in this row would fix it for this setting (more generally the app will need somewhere to find shortcuts without a native menu bar).
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Text size): The value runs over indexes 0 to 6, so screen readers announce the step index (AT-SPI shows value=3 [0..0]: no minimum/maximum, unlike the RangeSlider handles), and sighted users never see the current size. An Accessible.description with qsTr("%1%").arg(Math.round(Theme.textScale * 100)), the same percentage shown next to the slider, and min/max on Slider would fix that. The ticks are evenly spaced although the steps are 5% below Default and 10% above; the spacing could follow the size change. Home/End/Page Up/Page Down do nothing.

Suggestion (Text size): The value runs over indexes 0 to 6, so screen readers announce the step index (AT-SPI shows `value=3 [0..0]`: no minimum/maximum, unlike the RangeSlider handles), and sighted users never see the current size. An `Accessible.description` with `qsTr("%1%").arg(Math.round(Theme.textScale * 100))`, the same percentage shown next to the slider, and min/max on Slider would fix that. The ticks are evenly spaced although the steps are 5% below Default and 10% above; the spacing could follow the size change. Home/End/Page Up/Page Down do nothing.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:53 +00:00

Suggestion (Reduce motion): When the platform already asks for reduced motion, MotionPreference.mode is "reduced" and preferredMode() returns it regardless, so this switch shows off while motion is reduced and turning it on changes nothing. Checked and disabled with "Following your system setting" would match. Minor: the Light/Dark switch still cross-fades the whole window under reduced motion; fine by the usual norms, but an instant switch might be preferable.

Suggestion (Reduce motion): When the platform already asks for reduced motion, `MotionPreference.mode` is "reduced" and `preferredMode()` returns it regardless, so this switch shows off while motion is reduced and turning it on changes nothing. Checked and disabled with "Following your system setting" would match. Minor: the Light/Dark switch still cross-fades the whole window under reduced motion; fine by the usual norms, but an instant switch might be preferable.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Nit (Text size): This button needs 148 px and elides to "Check devi…".

Nit (Text size): This button needs 148 px and elides to "Check devi…".
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Blocker: from a240d4a758 through 2ef4a9314e this file declared property BitcoinAmount sampleAmount: BitcoinAmount { satoshi: 150000 }, which Qt 6.4.2 rejects (Invalid property assignment: unsupported type "qlonglong"). The design page is reachable from DisplaySettingsPage, so MainWindow.qml fails to load and the app exits 1 at startup on those 10 commits. This assignment, added in b312ca811e, is the fix; folding it into a240d4a758 keeps every commit runnable on the 6.4 floor.

Blocker: from a240d4a758 through 2ef4a9314e this file declared `property BitcoinAmount sampleAmount: BitcoinAmount { satoshi: 150000 }`, which Qt 6.4.2 rejects (`Invalid property assignment: unsupported type "qlonglong"`). The design page is reachable from DisplaySettingsPage, so `MainWindow.qml` fails to load and the app exits 1 at startup on those 10 commits. This assignment, added in b312ca811e, is the fix; folding it into a240d4a758 keeps every commit runnable on the 6.4 floor.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Hide amounts): The Pending section header shows the real pending total (e.g. -0.98400141 ₿) above masked rows. A BitcoinAmountDisplayLabel with hidesAmount: true, keeping the objectName and colors, would match.

Suggestion (Hide amounts): The Pending section header shows the real pending total (e.g. `-0.98400141 ₿`) above masked rows. A `BitcoinAmountDisplayLabel` with `hidesAmount: true`, keeping the objectName and colors, would match.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Hide amounts): The Amount filter shows the real min/max range (and the range slider's accessible values), which gives away the largest transaction. Same in View coins (CoinsList.qml:384). Mask while hidden.

Suggestion (Hide amounts): The Amount filter shows the real min/max range (and the range slider's accessible values), which gives away the largest transaction. Same in View coins (`CoinsList.qml:384`). Mask while hidden.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Hide amounts): The address list (and the amount row in AddressDetails.qml) shows the amount per address, including ₿ 0 on unused ones. hidesAmount: true here and there, and stop sizing the amount column from the real text.

Suggestion (Hide amounts): The address list (and the amount row in `AddressDetails.qml`) shows the amount per address, including `₿ 0` on unused ones. `hidesAmount: true` here and there, and stop sizing the amount column from the real text.
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Question (Hide amounts): The header balance is masked but one click on Send shows the full spendable balance here. Keeping recipient, fee and total visible makes sense; is "Available" intended too?

Question (Hide amounts): The header balance is masked but one click on Send shows the full spendable balance here. Keeping recipient, fee and total visible makes sense; is "Available" intended too?
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Question (Hide amounts): These fee rows stay unmasked. That fits the "amounts being chosen" reasoning for Send, but the commit doesn't name Speed up; intended?

Question (Hide amounts): These fee rows stay unmasked. That fits the "amounts being chosen" reasoning for Send, but the commit doesn't name Speed up; intended?
epicleafies (Migrated from github.com) commented 2026-10-29 01:18:52 +00:00

Suggestion (Text size): This acknowledgement wraps to two lines but the row keeps a single-line height, so it runs into the Set password button. Size the CheckBox row from its wrapped text.

Suggestion (Text size): This acknowledgement wraps to two lines but the row keeps a single-line height, so it runs into the Set password button. Size the CheckBox row from its wrapped text.
pseudoramdom (Migrated from github.com) reviewed 2026-10-29 17:21:50 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-29 17:21:50 +00:00

Gah, I remove the build & test commands since it was redundant. I forgot to remove it from the commit body. I'll remove it.

Gah, I remove the build & test commands since it was redundant. I forgot to remove it from the commit body. I'll remove it.
johnny9 (Migrated from github.com) reviewed 2026-10-29 18:01:27 +00:00
johnny9 (Migrated from github.com) left a comment

Confirmed two Hide amounts gaps at 04e01e462d:

  1. The Activity pending total remains visible while the transaction rows are masked. This confirms the existing pending-total comment. In a funded regtest wallet, enabling Hide amounts and sending an unconfirmed payment left -1.23458199 BTC visible in the Pending header. Use BitcoinAmountDisplayLabel with hidesAmount: true and extend the pending-balance test to check masking.

  2. Expanded transaction actions still expose amounts to screen readers. childRow.Accessible.description includes modelData.amount even while the visible label is masked. A Qt accessibility probe returns the address followed by 0.00060000 BTC. Apply the hideAmounts check to child descriptions too, using "Hidden amount", and add an accessibility assertion for an expanded transaction.

The exact-head Qt 6.10 QML suite passes all 727 tests, but both focused privacy assertions fail.

Confirmed two Hide amounts gaps at 04e01e462ddc828a46e6395a90d3885db943a343: 1. The Activity pending total remains visible while the transaction rows are masked. This confirms the [existing pending-total comment](https://github.com/bitcoin-core/gui-qml/pull/1052#discussion_r4407763906). In a funded regtest wallet, enabling Hide amounts and sending an unconfirmed payment left `-1.23458199 BTC` visible in the Pending header. Use `BitcoinAmountDisplayLabel` with `hidesAmount: true` and extend the pending-balance test to check masking. 2. Expanded transaction actions still expose amounts to screen readers. [`childRow.Accessible.description`](https://github.com/bitcoin-core/gui-qml/blob/04e01e462ddc828a46e6395a90d3885db943a343/qml/pages/wallet/ActivityRow.qml#L255) includes `modelData.amount` even while the visible label is masked. A Qt accessibility probe returns the address followed by `0.00060000 BTC`. Apply the `hideAmounts` check to child descriptions too, using "Hidden amount", and add an accessibility assertion for an expanded transaction. The exact-head Qt 6.10 QML suite passes all 727 tests, but both focused privacy assertions fail.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 17:38:56 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 17:38:56 +00:00

I think this can stay as is. There's not much you can infer from proportional thickness.

I think this can stay as is. There's not much you can infer from proportional thickness.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 17:44:38 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 17:44:38 +00:00

IMO, Hide amounts is primarily intended to prevent shoulder surfers from reading values at a glance. Transaction hex isn’t readily interpretable in that situation.

The amounts can certainly be recovered by copying and decoding the full hex, but I consider that outside the protection this display setting is intended to provide.

IMO, Hide amounts is primarily intended to prevent shoulder surfers from reading values at a glance. Transaction hex isn’t readily interpretable in that situation. The amounts can certainly be recovered by copying and decoding the full hex, but I consider that outside the protection this display setting is intended to provide.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:30:48 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:30:48 +00:00

The row’s description now shows the shortcut. Agreed that we’ll need a general place to find shortcuts; I’ll leave that for later.

The row’s description now shows the shortcut. Agreed that we’ll need a general place to find shortcuts; I’ll leave that for later.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:31:09 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:31:09 +00:00

The masking now covers what the description says, so I’ve kept the wording. Added a translator comment for “Default”. The other labels are clear in the Display page’s context.

The masking now covers what the description says, so I’ve kept the wording. Added a translator comment for “Default”. The other labels are clear in the Display page’s context.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:31:37 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:31:37 +00:00

Done. The amount is masked in the address list and in AddressDetails, and the column is sized from the text actually shown.

Done. The amount is masked in the address list and in AddressDetails, and the column is sized from the text actually shown.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:31:54 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:31:54 +00:00

Done. The received amount is masked, and a saved request’s amount is masked except while you edit it.

Done. The received amount is masked, and a saved request’s amount is masked except while you edit it.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:32:29 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:32:29 +00:00

Done. It uses BitcoinAmountDisplayLabel with hidesAmount, with a test.

Done. It uses BitcoinAmountDisplayLabel with hidesAmount, with a test.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:32:45 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:32:45 +00:00

Done. The range label and the slider’s accessible values are hidden in Activity and in View coins.

Done. The range label and the slider’s accessible values are hidden in Activity and in View coins.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:32:57 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:32:57 +00:00

Done. Fee, fee rate, virtual size, size and weight are all masked, since any two of the last four give the fee away. Screen readers hear “Hidden amount” instead of the mask characters.

Done. Fee, fee rate, virtual size, size and weight are all masked, since any two of the last four give the fee away. Screen readers hear “Hidden amount” instead of the mask characters.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:33:29 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:33:29 +00:00

Yes, intended. Speed up follows the same rule as Send and transaction review: the old and new fees stay visible so you can check the extra cost before confirming.

Yes, intended. Speed up follows the same rule as Send and transaction review: the old and new fees stay visible so you can check the extra cost before confirming.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:34:25 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:34:25 +00:00

Intended. Send is where you choose an amount, so the spendable balance stays visible there, like the recipient, fee and total. The header balance is masked.

Intended. Send is where you choose an amount, so the spendable balance stays visible there, like the recipient, fee and total. The header balance is masked.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:35:04 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:35:04 +00:00

The slider now announces the percentage, shows it next to the track, exposes its minimum and maximum, and supports Home, End, Page Up and Page Down. I’ve kept the ticks evenly spaced, because each position is a preset rather than a point on a scale.

The slider now announces the percentage, shows it next to the track, exposes its minimum and maximum, and supports Home, End, Page Up and Page Down. I’ve kept the ticks evenly spaced, because each position is a preset rather than a point on a scale.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:35:12 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:35:12 +00:00

Done. A new sliderTrack role, checked in tst_themecontrast.

Done. A new sliderTrack role, checked in tst_themecontrast.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:35:28 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:35:28 +00:00

Fixed. The row now sizes from its wrapped text.

Fixed. The row now sizes from its wrapped text.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:35:51 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:35:51 +00:00

Done. Coin rows, the wallet badge, Check device, the debug log time column and the calendar’s day cells and weekday names now size from their content.

Done. Coin rows, the wallet badge, Check device, the debug log time column and the calendar’s day cells and weekday names now size from their content.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:36:25 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:36:25 +00:00

Thanks for tracking down the root cause. NavigationTab and the segments are now TabButtons in a TabBar, and the settings sidebar rows are ItemDelegates. The role tests now run with accessibility active and no longer skip.

Thanks for tracking down the root cause. NavigationTab and the segments are now TabButtons in a TabBar, and the settings sidebar rows are ItemDelegates. The role tests now run with accessibility active and no longer skip.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:37:15 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:37:15 +00:00

Done. Return and Enter activate any focused button, as Space does; check boxes, switches and radio buttons stay Space-only. In alerts, Return from a field runs the dialog’s single primary action, and never a destructive one.

Done. Return and Enter activate any focused button, as Space does; check boxes, switches and radio buttons stay Space-only. In alerts, Return from a field runs the dialog’s single primary action, and never a destructive one.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:38:08 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:38:08 +00:00

Intended for now. Coming back to a page puts focus where you left it, which helps when moving between two settings.

Intended for now. Coming back to a page puts focus where you left it, which helps when moving between two settings.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:39:00 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:39:00 +00:00

Shared preferences now live in their own settings store and migrate from mainnet’s file once. -resetguisettings on any network no longer clears them, and QML can’t write mainnet keys. I’ve left typed properties as a separate cleanup.

Shared preferences now live in their own settings store and migrate from mainnet’s file once. -resetguisettings on any network no longer clears them, and QML can’t write mainnet keys. I’ve left typed properties as a separate cleanup.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:39:26 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:39:26 +00:00

Done. Both startup error alerts show plain text, and the functional test puts markup in the datadir path to check it.

Done. Both startup error alerts show plain text, and the functional test puts markup in the datadir path to check it.
pseudoramdom (Migrated from github.com) reviewed 2026-10-30 19:39:32 +00:00
pseudoramdom (Migrated from github.com) commented 2026-10-30 19:39:32 +00:00

Done. qml_test_onboarding_startup.py locks the datadir during pre-init onboarding and checks that the alert shows the error and that both Close and closing the window exit.

Done. qml_test_onboarding_startup.py locks the datadir during pre-init onboarding and checks that the alert shows the error and that both Close and closing the window exit.
rreview commented 2026-11-02 21:33:20 +00:00 (Migrated from github.com)

1 additional verified finding in the Review report.

Earlier concerns remain unresolved; see the Run archive linked from the Review report.

🟠 Minor · Wallet password prompts retain the previous reveal state

After a user reveals a password once, reopening the same WalletPassphrasePopup leaves the next password visible as it is typed, without another reveal action.

Location: qml/components/WalletPassphrasePopup.qml:45 (head).

🟠 Minor · The GUI reset promise excludes the new appearance preferences

Although preserving appearance preferences is intentional, -resetguisettings still promises to reset all GUI settings while retaining the palette, text size and reduce-motion choice; the base theme was reset.

Location: qml/globalsettings.h:39 (head).

🟠 Minor · Compact settings routes load a hidden page

At compact widths, shell settings routes leave the requested page hidden; the only compact app path found is the debug mobile preview, so release impact is unconfirmed.

Location: qml/components/SettingsView.qml:148 (head).

🟠 Minor · Switch thumbs ignore reduced and off motion modes

OptionSwitch retains an ungated thumb animation, so switches still slide with Reduce motion enabled and animate asynchronously with -test-motion=off, contrary to the new motion contract.

Location: qml/controls/OptionSwitch.qml:40 (head).

🟠 Minor · Compact Wallet settings lack a Back route to the settings list

Below 640 px, opening Wallet settings switches the settings split view to its detail column and hides the sidebar and its Done button. Narrowing the view while Wallet is selected does the same; Wallet is the first section when wallets are enabled. The wallet page shows no Back button, so there is no way back to the settings list inside the app until the view is widened. Release desktop windows keep an 800 px minimum outside the debug Mobile preview, so this affects the mobile-mode node settings and the preview. Production impact on mobile is unconfirmed. In the base layout the sidebar was always visible.

Location: qml/components/SettingsPageContainer.qml:28 (head).

🔵 Suggestion · Busy alerts still permit enabled action clicks

An enabled AlertPopup action can still close and trigger while busy, although no current caller producing that state was found.

Location: qml/controls/AlertPopup.qml:90 (head).

Review coverage was incomplete.


Reviewed: e89a2bcd4624 · Review report

<!-- ralph-major:bitcoin-core/gui-qml --> [1 additional verified finding in the Review report](<https://review.fish.foo/report/gui/1052-e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a-2597-8.html>). Earlier concerns remain unresolved; see the Run archive linked from the Review report. **🟠 Minor · Wallet password prompts retain the previous reveal state** After a user reveals a password once, reopening the same WalletPassphrasePopup leaves the next password visible as it is typed, without another reveal action. Location: [qml/components/WalletPassphrasePopup.qml:45](<https://github.com/bitcoin-core/gui-qml/blob/e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a/qml/components/WalletPassphrasePopup.qml#L45>) (head). **🟠 Minor · The GUI reset promise excludes the new appearance preferences** Although preserving appearance preferences is intentional, `-resetguisettings` still promises to reset all GUI settings while retaining the palette, text size and reduce-motion choice; the base theme was reset. Location: [qml/globalsettings.h:39](<https://github.com/bitcoin-core/gui-qml/blob/e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a/qml/globalsettings.h#L39>) (head). **🟠 Minor · Compact settings routes load a hidden page** At compact widths, shell settings routes leave the requested page hidden; the only compact app path found is the debug mobile preview, so release impact is unconfirmed. Location: [qml/components/SettingsView.qml:148](<https://github.com/bitcoin-core/gui-qml/blob/e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a/qml/components/SettingsView.qml#L148>) (head). **🟠 Minor · Switch thumbs ignore reduced and off motion modes** OptionSwitch retains an ungated thumb animation, so switches still slide with Reduce motion enabled and animate asynchronously with `-test-motion=off`, contrary to the new motion contract. Location: [qml/controls/OptionSwitch.qml:40](<https://github.com/bitcoin-core/gui-qml/blob/e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a/qml/controls/OptionSwitch.qml#L40>) (head). **🟠 Minor · Compact Wallet settings lack a Back route to the settings list** Below 640 px, opening Wallet settings switches the settings split view to its detail column and hides the sidebar and its Done button. Narrowing the view while Wallet is selected does the same; Wallet is the first section when wallets are enabled. The wallet page shows no Back button, so there is no way back to the settings list inside the app until the view is widened. Release desktop windows keep an 800 px minimum outside the debug Mobile preview, so this affects the mobile-mode node settings and the preview. Production impact on mobile is unconfirmed. In the base layout the sidebar was always visible. Location: [qml/components/SettingsPageContainer.qml:28](<https://github.com/bitcoin-core/gui-qml/blob/e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a/qml/components/SettingsPageContainer.qml#L28>) (head). **🔵 Suggestion · Busy alerts still permit enabled action clicks** An enabled AlertPopup action can still close and trigger while busy, although no current caller producing that state was found. Location: [qml/controls/AlertPopup.qml:90](<https://github.com/bitcoin-core/gui-qml/blob/e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a/qml/controls/AlertPopup.qml#L90>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`e89a2bcd4624`](<https://github.com/bitcoin-core/gui-qml/commit/e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a>) · [Review report](<https://review.fish.foo/report/gui/1052-e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a-2597-8.html>)
epicleafies (Migrated from github.com) reviewed 2026-11-03 02:56:31 +00:00
epicleafies (Migrated from github.com) left a comment

Follow-up at c294974. The earlier blockers are fixed and there are no new ones. Two nits remain, restated inline, plus three small new comments. This review stems from working on top of this PR rather than another dedicated review round. I can follow up with another dedicated review if needed.

Follow-up at c294974. The earlier blockers are fixed and there are no new ones. Two nits remain, restated inline, plus three small new comments. This review stems from working on top of this PR rather than another dedicated review round. I can follow up with another dedicated review if needed.
epicleafies (Migrated from github.com) commented 2026-11-03 02:39:16 +00:00

Nit: LinkButton is a separate button, so it can't be inline in a sentence. #1060, which builds on this PR, changes this line to "standalone text actions and links" and adds a LinkText control for a link inside a sentence, so nothing is needed here unless you'd rather take the wording fix in this PR.

Nit: LinkButton is a separate button, so it can't be inline in a sentence. #1060, which builds on this PR, changes this line to "standalone text actions and links" and adds a `LinkText` control for a link inside a sentence, so nothing is needed here unless you'd rather take the wording fix in this PR.
epicleafies (Migrated from github.com) commented 2026-11-03 02:39:15 +00:00

Suggestion: the Add wallet flow doesn't follow this yet. On its pages Tab goes Back, the close button, the footer's primary button, and only then into the page's fields, before wrapping to Back. So a keyboard user reaches "Create wallet" before the name and password fields it acts on.

To reproduce: Add wallet, Regular, enter a name, turn encryption off and acknowledge the warning so "Create wallet" is enabled, then Tab from Back. The order is Back, close, Create wallet, wallet name, Encrypt, the acknowledgement switch, then Back again. I saw it at 04e01e4; WalletCreationFlow.qml and OnboardingView.qml haven't changed since.

This isn't introduced here: qt6 at 6cdad53 does the same. A plain OnboardingView in a StackView tabs through its content first and its footer last, so it looks like it comes from how WalletCreationFlow hosts its pages rather than from OnboardingView itself. Since this PR sets the rule, could it fix the flow, or note it as a known exception so it's tracked? A test that walks nextItemInFocusChain on the Regular wallet form would pin it down either way.

Suggestion: the Add wallet flow doesn't follow this yet. On its pages Tab goes Back, the close button, the footer's primary button, and only then into the page's fields, before wrapping to Back. So a keyboard user reaches "Create wallet" before the name and password fields it acts on. To reproduce: Add wallet, Regular, enter a name, turn encryption off and acknowledge the warning so "Create wallet" is enabled, then Tab from Back. The order is Back, close, Create wallet, wallet name, Encrypt, the acknowledgement switch, then Back again. I saw it at 04e01e4; `WalletCreationFlow.qml` and `OnboardingView.qml` haven't changed since. This isn't introduced here: qt6 at 6cdad53 does the same. A plain OnboardingView in a StackView tabs through its content first and its footer last, so it looks like it comes from how WalletCreationFlow hosts its pages rather than from OnboardingView itself. Since this PR sets the rule, could it fix the flow, or note it as a known exception so it's tracked? A test that walks `nextItemInFocusChain` on the Regular wallet form would pin it down either way.
epicleafies (Migrated from github.com) commented 2026-11-03 02:39:16 +00:00

Nit: still open from my earlier comment: "Back" in captionStrong looks noticeably heavier than its thin caret. Not blocking.

Nit: still open from my [earlier comment](https://github.com/bitcoin-core/gui-qml/pull/1052#discussion_r4407764035): "Back" in `captionStrong` looks noticeably heavier than its thin caret. Not blocking.
epicleafies (Migrated from github.com) commented 2026-11-03 02:39:16 +00:00

Nit: still open from my earlier comment, with a correction: both Copy items have the copy icon and the other three rows have none, so the menu mixes rows with and without icons. Icons on all five, or on none, would read more evenly.

Nit: still open from my [earlier comment](https://github.com/bitcoin-core/gui-qml/pull/1052#discussion_r4407764032), with a correction: both Copy items have the copy icon and the other three rows have none, so the menu mixes rows with and without icons. Icons on all five, or on none, would read more evenly.
epicleafies (Migrated from github.com) commented 2026-11-03 02:39:16 +00:00

Nit (contrast): in light, the close icon is neutral6 (#999999) on this surface2 circle, 2.46:1, under the 3:1 non-text minimum; CoreLight.qml already notes that neutral6 is under 3:1 on surface2. It's most visible at the top of the Add wallet dialog. Dark is fine (5.24:1). neutral7 would give 4.59:1 in light.

Nit (contrast): in light, the close icon is `neutral6` (#999999) on this `surface2` circle, 2.46:1, under the 3:1 non-text minimum; `CoreLight.qml` already notes that neutral6 is under 3:1 on surface2. It's most visible at the top of the Add wallet dialog. Dark is fine (5.24:1). `neutral7` would give 4.59:1 in light.
pseudoramdom (Migrated from github.com) reviewed 2026-11-03 19:00:37 +00:00
pseudoramdom (Migrated from github.com) commented 2026-11-03 19:00:37 +00:00

Fixed the focus order so the form fields come before the footer actions.

Fixed the focus order so the form fields come before the footer actions.
pseudoramdom (Migrated from github.com) reviewed 2026-11-03 19:00:51 +00:00
pseudoramdom (Migrated from github.com) commented 2026-11-03 19:00:51 +00:00

Changed the close icon to neutral7

Changed the close icon to neutral7
pseudoramdom (Migrated from github.com) reviewed 2026-11-03 19:01:19 +00:00
pseudoramdom (Migrated from github.com) commented 2026-11-03 19:01:19 +00:00

Updated the wording to “standalone text actions and links.”

Updated the wording to “standalone text actions and links.”
pseudoramdom (Migrated from github.com) reviewed 2026-11-03 19:02:03 +00:00
pseudoramdom (Migrated from github.com) commented 2026-11-03 19:02:03 +00:00

Removed the copy icons

Removed the copy icons
pseudoramdom (Migrated from github.com) reviewed 2026-11-03 19:02:31 +00:00
pseudoramdom (Migrated from github.com) commented 2026-11-03 19:02:31 +00:00

Changed the Back label to caption and switched the caret to its SVG asset.

Changed the Back label to `caption` and switched the caret to its SVG asset.
epicleafies (Migrated from github.com) reviewed 2026-11-04 23:11:55 +00:00
epicleafies (Migrated from github.com) left a comment

Follow-up at 5bdd039. All five comments from the last round are fixed. The new Add wallet Tab order test fails if the fix is reverted, so it will catch a regression. No blockers. The rest is inline: a rebase issue in ExternalPopup, other suggestions and nits.

  • 69b722d ("refactor: sort shared QML into controls and components") also changes behavior: the footer focus fix and its test, the Back button, the CopyButton size, the copy icon's switch to SVG and the icon policy. These should move to their own commits so move detection and bisect don't hide them.

Tested: unit, QML, integration and functional suites pass (two functional tests skipped for missing optional binaries), plus a manual pass on Wayland in both palettes at 85% to 130% text size.

Follow-up at 5bdd039. All five comments from the last round are fixed. The new Add wallet Tab order test fails if the fix is reverted, so it will catch a regression. No blockers. The rest is inline: a rebase issue in ExternalPopup, other suggestions and nits. - 69b722d ("refactor: sort shared QML into controls and components") also changes behavior: the footer focus fix and its test, the Back button, the CopyButton size, the copy icon's switch to SVG and the icon policy. These should move to their own commits so move detection and bisect don't hide them. Tested: unit, QML, integration and functional suites pass (two functional tests skipped for missing optional binaries), plus a manual pass on Wayland in both palettes at 85% to 130% text size.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:29 +00:00

Suggestion: Back should be in the same place everywhere, top left. The Add wallet flow and nested pages already put it there, but the onboarding pages move it into the footer at the bottom left (backButtonInFooter: true on all seven). Switching onboarding to the top-left Back and saying here that Back always sits top left would make it consistent, and would let backButtonInFooter go.

Suggestion: Back should be in the same place everywhere, top left. The Add wallet flow and nested pages already put it there, but the onboarding pages move it into the footer at the bottom left (`backButtonInFooter: true` on all seven). Switching onboarding to the top-left Back and saying here that Back always sits top left would make it consistent, and would let `backButtonInFooter` go.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Suggestion: this and line 283 can't both hold for a link inside a modal, and the app already stacks: the onboarding About dialog opens ExternalPopup on top of itself for its links, and "Delete payment request?" opens over the payment request sheet. This line should say when stacking is allowed, for example "an alert that settles one decision (a link or delete confirmation) may sit over a feature modal; don't stack feature modals", so the existing cases follow the guide.

Suggestion: this and line 283 can't both hold for a link inside a modal, and the app already stacks: the onboarding About dialog opens ExternalPopup on top of itself for its links, and "Delete payment request?" opens over the payment request sheet. This line should say when stacking is allowed, for example "an alert that settles one decision (a link or delete confirmation) may sit over a feature modal; don't stack feature modals", so the existing cases follow the guide.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:29 +00:00

Suggestion (Text size): icons should scale with this setting along with the text. Today only text roles follow it, so at 130% the 12 px copy icon looks undersized next to its label, and the header icons stay small next to the larger tab labels. Scaling Theme.size.icon by textScale, and saying here that icons follow the setting too, would keep icon-and-label pairs in proportion.

Suggestion (Text size): icons should scale with this setting along with the text. Today only text roles follow it, so at 130% the 12 px copy icon looks undersized next to its label, and the header icons stay small next to the larger tab labels. Scaling `Theme.size.icon` by `textScale`, and saying here that icons follow the setting too, would keep icon-and-label pairs in proportion.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Nit: this names the copy icon as the one SVG used directly, but the same push also loads caret-left.svg directly for OnboardingBackButton, and the app already loads about 20 other SVGs directly (check.svg, activity-*.svg and others). So the policy doesn't describe the tree: someone adding an icon can't tell whether a PNG is still needed. Stating the rule in general terms would fix it, for example: icons loaded through a .svg alias ship the SVG as the production asset, and the PNG workflow is for icons loaded through the image provider. Related: the back caret now comes from the SVG here and from the PNG at the six other caret-left sites.

Nit: this names the copy icon as the one SVG used directly, but the same push also loads `caret-left.svg` directly for OnboardingBackButton, and the app already loads about 20 other SVGs directly (`check.svg`, `activity-*.svg` and others). So the policy doesn't describe the tree: someone adding an icon can't tell whether a PNG is still needed. Stating the rule in general terms would fix it, for example: icons loaded through a `.svg` alias ship the SVG as the production asset, and the PNG workflow is for icons loaded through the image provider. Related: the back caret now comes from the SVG here and from the PNG at the six other `caret-left` sites.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Nit: the const stops return test_mode; on the next line from moving, and clang-tidy's performance-no-automatic-move flags it in builds with test automation on. Dropping the const fixes it. This came up on #1060, which builds on this commit.

Nit: the `const` stops `return test_mode;` on the next line from moving, and clang-tidy's `performance-no-automatic-move` flags it in builds with test automation on. Dropping the `const` fixes it. This came up on #1060, which builds on this commit.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Suggestion: at c294974 this was an AlertPopup ("Open link?", plain-text message, Cancel/OK). Resolving the conflict with #767 kept #767's hand-built layout and only moved its root to DialogPopup, so the external link confirmation is now the one confirmation dialog not built on AlertPopup, which design.md says every alert, confirmation and error dialog uses. It keeps its own padding, title row, separator and button rows, fixed 24 px and 18 px text that ignores the Text size setting, and #767's "External Link" and "Ok" copy, and it misses AlertPopup's Return and Escape handling. The automated comment on line 92 covers the sizes, but patching only those still leaves a one-off dialog.

AlertPopup can hold both states. Switch actionList on openFailed the way NodeRuntimeDialog.qml builds its list (Cancel/OK, then Close/Copy link, the copy action with closesPopup: false and enabled: !linkCopied), and take the title and message from openFailed. Keep the selectable URL TextEdit from #767 in the content slot with a text role, since its selectability is deliberate. Keeping #767's objectNames (externalLinkCancel, externalLinkConfirm, externalLinkClose, externalLinkCopy, externalLinkUrl) through buttonObjectName keeps tst_externalpopup and qml_test_external_link_confirm.py working.

Suggestion: at c294974 this was an `AlertPopup` ("Open link?", plain-text message, Cancel/OK). Resolving the conflict with #767 kept #767's hand-built layout and only moved its root to `DialogPopup`, so the external link confirmation is now the one confirmation dialog not built on AlertPopup, which design.md says every alert, confirmation and error dialog uses. It keeps its own padding, title row, separator and button rows, fixed 24 px and 18 px text that ignores the Text size setting, and #767's "External Link" and "Ok" copy, and it misses AlertPopup's Return and Escape handling. The automated comment on line 92 covers the sizes, but patching only those still leaves a one-off dialog. AlertPopup can hold both states. Switch `actionList` on `openFailed` the way `NodeRuntimeDialog.qml` builds its list (Cancel/OK, then Close/Copy link, the copy action with `closesPopup: false` and `enabled: !linkCopied`), and take the title and message from `openFailed`. Keep the selectable URL `TextEdit` from #767 in the `content` slot with a text role, since its selectability is deliberate. Keeping #767's objectNames (`externalLinkCancel`, `externalLinkConfirm`, `externalLinkClose`, `externalLinkCopy`, `externalLinkUrl`) through `buttonObjectName` keeps `tst_externalpopup` and `qml_test_external_link_confirm.py` working.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Suggestion (Reduce motion): turning Reduce motion on while no peer is connected stops this pulse wherever it happens to be, and the first dot stays at that opacity. On the block clock's Connecting page it froze close to 0, so only four dots showed. The animation has already replaced the opacity binding, so nothing brings the dot back. Restoring the resting opacity when the pulse stops, or pulsing a separate property that feeds into opacity, would fix it. Starting the app with Reduce motion already on is fine.

Suggestion (Reduce motion): turning Reduce motion on while no peer is connected stops this pulse wherever it happens to be, and the first dot stays at that opacity. On the block clock's Connecting page it froze close to 0, so only four dots showed. The animation has already replaced the `opacity` binding, so nothing brings the dot back. Restoring the resting opacity when the pulse stops, or pulsing a separate property that feeds into `opacity`, would fix it. Starting the app with Reduce motion already on is fine.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:29 +00:00

Nit: in dark, surfaceSelected (13% white) and surfaceHover (10% white) are close enough that a hovered row looks selected next to the real selection, for example hovering Window behavior while on Display. The orange tint this replaces made the two easy to tell apart. A wider gap in dark, or a non-grey cue on the selected row, would help.

Nit: in dark, `surfaceSelected` (13% white) and `surfaceHover` (10% white) are close enough that a hovered row looks selected next to the real selection, for example hovering Window behavior while on Display. The orange tint this replaces made the two easy to tell apart. A wider gap in dark, or a non-grey cue on the selected row, would help.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Nit: this footer from #981 ("Loading settings…", "Saving settings…", or the settings error) got dangerText here but no text role, so CoreText falls back to a fixed 13 px and the message ignores the Text size setting. textStyle: Theme.text.caption keeps it at 13 px at 100%. The error text at CoinsList.qml:337 is the same case.

Nit: this footer from #981 ("Loading settings…", "Saving settings…", or the settings error) got `dangerText` here but no text role, so CoreText falls back to a fixed 13 px and the message ignores the Text size setting. `textStyle: Theme.text.caption` keeps it at 13 px at 100%. The error text at `CoinsList.qml:337` is the same case.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:29 +00:00

Nit: mono: true applies whatever the value is, so a coinbase shows "Not applicable" in the money font under Fee rate, next to the same words in the regular font under Network fee. Using mono only when there's a number, the way amountValue already does, would match. The size rows have the same issue when they show "Unavailable".

Nit: `mono: true` applies whatever the value is, so a coinbase shows "Not applicable" in the money font under Fee rate, next to the same words in the regular font under Network fee. Using mono only when there's a number, the way `amountValue` already does, would match. The size rows have the same issue when they show "Unavailable".
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:29 +00:00

Nit (Hide amounts): while hidden, this summary keeps the unit next to the mask ("********** BTC"), but the header balance, the flow nodes and the Activity rows show the mask alone. Hiding the unit while the amount is masked would match.

Nit (Hide amounts): while hidden, this summary keeps the unit next to the mask ("********** BTC"), but the header balance, the flow nodes and the Activity rows show the mask alone. Hiding the unit while the amount is masked would match.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Suggestion (security): following up on the startup alerts, the default is still Text.AutoText, so any caller that doesn't opt out renders a message that looks like markup as rich text. NodeRuntimeDialog shows nodeModel.runtimeDialogMessage, which can carry paths and config values (Widgets forces Qt::PlainText for the same message in bitcoingui.cpp), and NodeFatalErrorPopup and the wallet load and close alerts in DesktopWallets are the same case. No caller passes markup today, so defaulting to Text.PlainText here covers all of them, and a caller that wants rich text can opt in.

Suggestion (security): following up on the startup alerts, the default is still `Text.AutoText`, so any caller that doesn't opt out renders a message that looks like markup as rich text. `NodeRuntimeDialog` shows `nodeModel.runtimeDialogMessage`, which can carry paths and config values (Widgets forces `Qt::PlainText` for the same message in `bitcoingui.cpp`), and `NodeFatalErrorPopup` and the wallet load and close alerts in `DesktopWallets` are the same case. No caller passes markup today, so defaulting to `Text.PlainText` here covers all of them, and a caller that wants rich text can opt in.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:29 +00:00

Nit: follow-up to my comment here. neutral7 clears the contrast minimum, but next to the Back button (label and caret in neutral9) the close X still reads lighter, so the two ends of the bar don't match. neutral9 would match Back. The glyph is also small at the default size: 10 px in a 30 px circle (line 18).

Nit: follow-up to my comment here. `neutral7` clears the contrast minimum, but next to the Back button (label and caret in `neutral9`) the close X still reads lighter, so the two ends of the bar don't match. `neutral9` would match Back. The glyph is also small at the default size: 10 px in a 30 px circle (line 18).
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Suggestion: keep the default at icon.m (16 px). This push drops it to icon.xs (12 px), with new spacing and anchors, alongside the SVG switch. No thread asked for it, and it shrinks the copy icon at both call sites that use the default (TransactionDetailsSection.qml:108, LabeledField.qml:75). At 130% text size the 12 px icon looks undersized next to its label. If a smaller icon is wanted, it would be easier to review in its own commit with the reason in the message.

Suggestion: keep the default at `icon.m` (16 px). This push drops it to `icon.xs` (12 px), with new spacing and anchors, alongside the SVG switch. No thread asked for it, and it shrinks the copy icon at both call sites that use the default (`TransactionDetailsSection.qml:108`, `LabeledField.qml:75`). At 130% text size the 12 px icon looks undersized next to its label. If a smaller icon is wanted, it would be easier to review in its own commit with the reason in the message.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:29 +00:00

Nit: the label area is as wide as the longer of "Copy" and "Copied", and both labels are pinned to its left edge, so the resting "Copy" sits left of center inside the button. It shows most with the focus ring or hover background at larger text sizes. Centering both labels in the container would keep either state centered.

Nit: the label area is as wide as the longer of "Copy" and "Copied", and both labels are pinned to its left edge, so the resting "Copy" sits left of center inside the button. It shows most with the focus ring or hover background at larger text sizes. Centering both labels in the container would keep either state centered.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:29 +00:00

Nit: on settings cards, the dropdowns (Block status size, Money font, Display unit) fill with one surface level up from the card and barely stand out from it, unlike the slider and switches beside them. A border or a stronger fill would make them read as controls.

Nit: on settings cards, the dropdowns (Block status size, Money font, Display unit) fill with one surface level up from the card and barely stand out from it, unlike the slider and switches beside them. A border or a stronger fill would make them read as controls.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:29 +00:00

Suggestion: the selected "Store all data" card on Storage amount should lay out like "Reduce storage", with the description right under the title and the Recommended badge right under that. When the page first shows, it has an empty gap between the title and the description and another above the badge, as if the rows were spread over more height than they need. Clicking either option clears it, and it sometimes shows on Storage location too (also present at 04e01e4). It looks like the column's height is computed while the wrapping texts are still narrow (Layout.preferredWidth: 0) and not updated after the first layout. Recomputing it once the final width is known, or giving the wrapping texts a real preferred width, should fix it.

Suggestion: the selected "Store all data" card on Storage amount should lay out like "Reduce storage", with the description right under the title and the Recommended badge right under that. When the page first shows, it has an empty gap between the title and the description and another above the badge, as if the rows were spread over more height than they need. Clicking either option clears it, and it sometimes shows on Storage location too (also present at 04e01e4). It looks like the column's height is computed while the wrapping texts are still narrow (`Layout.preferredWidth: 0`) and not updated after the first layout. Recomputing it once the final width is known, or giving the wrapping texts a real preferred width, should fix it.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Suggestion (i18n): the singular or plural form is picked in JS (weeks === 1 ? ... : ...), so languages with more than two plural forms can't translate these, and "%1 hours left" and "%1 minutes left" have no singular at all. Qt's plural form covers it: qsTr("~%n week(s) left", "", weeks), with the count as the third argument, the way the Widgets GUI does it in guiutil.cpp (tr("%n second(s)", "", secs)). Same for the day, hour, minute and second strings below.

Suggestion (i18n): the singular or plural form is picked in JS (`weeks === 1 ? ... : ...`), so languages with more than two plural forms can't translate these, and "~%1 hours left" and "~%1 minutes left" have no singular at all. Qt's plural form covers it: `qsTr("~%n week(s) left", "", weeks)`, with the count as the third argument, the way the Widgets GUI does it in `guiutil.cpp` (`tr("%n second(s)", "", secs)`). Same for the day, hour, minute and second strings below.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Suggestion (keyboard): pressing Space on this switch should toggle it and leave focus, with its ring, on the switch, the way Reduce motion below does. Here the setting toggles but the focus ring disappears. I couldn't find what takes focus in the QML; something reacting to the masking change seems to move it.

Suggestion (keyboard): pressing Space on this switch should toggle it and leave focus, with its ring, on the switch, the way Reduce motion below does. Here the setting toggles but the focus ring disappears. I couldn't find what takes focus in the QML; something reacting to the masking change seems to move it.
epicleafies (Migrated from github.com) commented 2026-11-04 23:04:28 +00:00

Nit: Image.sourceSize returns the size that was assigned when both dimensions are set, so the two compares always pass, and pointing copyIconSource back at a PNG would pass all four rows. The only real check is the Image.Ready load. I'd drop this test and keep a tryCompare(icon, "status", Image.Ready) in test_defaultsToIconAndText.

Nit: `Image.sourceSize` returns the size that was assigned when both dimensions are set, so the two `compare`s always pass, and pointing `copyIconSource` back at a PNG would pass all four rows. The only real check is the `Image.Ready` load. I'd drop this test and keep a `tryCompare(icon, "status", Image.Ready)` in `test_defaultsToIconAndText`.
pseudoramdom commented 2026-11-05 19:33:26 +00:00 (Migrated from github.com)

Force-pushed with fixes for @epicleafies's feedback. I folded the fixes into the corresponding commits.

  • Alert messages default to plain text. The external-link confirmation now uses AlertPopup, keeps the URL selectable, and uses the shared Return and Escape handling.
  • Settings restore the keyboard focus ring after a save. The peer indicator returns to its resting opacity when the pulse stops, including when Reduce motion is enabled.
  • Settings status messages and coin-list errors now follow Text size. Sync estimates pass counts to Qt for plural selection while keeping the English fallback readable.

I also removed the move-inhibiting const, simplified the copy-icon test to check that the SVG loads, and updated the docs to prefer SVG for new icons and describe when a confirmation can open over a modal.

Force-pushed with fixes for @epicleafies's feedback. I folded the fixes into the corresponding commits. - Alert messages default to plain text. The external-link confirmation now uses AlertPopup, keeps the URL selectable, and uses the shared Return and Escape handling. - Settings restore the keyboard focus ring after a save. The peer indicator returns to its resting opacity when the pulse stops, including when Reduce motion is enabled. - Settings status messages and coin-list errors now follow Text size. Sync estimates pass counts to Qt for plural selection while keeping the English fallback readable. I also removed the move-inhibiting const, simplified the copy-icon test to check that the SVG loads, and updated the docs to prefer SVG for new icons and describe when a confirmation can open over a modal.
johnny9 (Migrated from github.com) approved these changes 2026-11-07 15:58:13 +00:00
johnny9 (Migrated from github.com) left a comment

ACK 8ed9aee986

Palettes and Theme tokens centralize styling, shared controls replace duplicated implementations, and DialogPopup standardizes modal behavior. The showcase and regression tests support the intended consistency and reuse.

One non-blocking follow-up: switch thumbs still slide with Reduce motion or -test-motion=off. OptionSwitch gates its color animations but leaves Behavior on x unconditional. Guard it with !Theme.motion.reduced and test both modes.

Linux/Qt 6.10.2 build, app tests and Core lint/tidy pass.

ACK 8ed9aee98603a759cc566a055dd6077bfc734324 Palettes and Theme tokens centralize styling, shared controls replace duplicated implementations, and `DialogPopup` standardizes modal behavior. The showcase and regression tests support the intended consistency and reuse. One non-blocking follow-up: switch thumbs still slide with Reduce motion or `-test-motion=off`. `OptionSwitch` gates its color animations but leaves `Behavior on x` unconditional. Guard it with `!Theme.motion.reduced` and test both modes. Linux/Qt 6.10.2 build, app tests and Core lint/tidy pass.
pseudoramdom commented 2026-11-10 21:09:43 +00:00 (Migrated from github.com)

Rebased and force-pushed. No other changes.

Rebased and force-pushed. No other changes.
johnny9 (Migrated from github.com) reviewed 2026-11-12 04:33:11 +00:00
johnny9 (Migrated from github.com) left a comment

In qml/controls/HoverToolTip.qml, add an inline id to the Tooltip assigned to contentItem:

contentItem: Tooltip {
    // Work around the Qt 6.2 deferred-state lifetime bug (fixed in Qt 6.3).
    id: tooltipContent
    width: implicitWidth
    height: implicitHeight
    text: root.text
    motionEnabled: false
}

Qt 6.2 stores unfinished deferred states in a global hash keyed by object address and property name. Interrupted delegate creation can leave bindings behind; later address reuse can retrieve stale state, consistent with the captured crash in QQmlObjectCreator::finalize. I traced a surviving state to this tooltip inside ActivityRequestBadge.

The underlying storage problem was fixed in Qt 6.3 by 5225ba201b53, which replaces global storage with state owned by the deferred pointer. The Qt 6.3.0 source contains that fix; the Qt 6.2 CI job still uses the affected implementation.

The inline id forces immediate content creation, avoiding this deferral path while retaining Qt 6.2 support. The lifecycle regression fails without it. With the workaround, two full Qt 6.2.4 QML-suite runs passed: 842 passed, 0 failed, 4 skipped each.

In `qml/controls/HoverToolTip.qml`, add an inline `id` to the `Tooltip` assigned to `contentItem`: ```qml contentItem: Tooltip { // Work around the Qt 6.2 deferred-state lifetime bug (fixed in Qt 6.3). id: tooltipContent width: implicitWidth height: implicitHeight text: root.text motionEnabled: false } ``` Qt 6.2 stores unfinished deferred states in a global hash keyed by object address and property name. Interrupted delegate creation can leave bindings behind; later address reuse can retrieve stale state, consistent with the captured crash in `QQmlObjectCreator::finalize`. I traced a surviving state to this tooltip inside `ActivityRequestBadge`. The underlying storage problem was **fixed in Qt 6.3** by [5225ba201b53](https://github.com/qt/qtdeclarative/commit/5225ba201b53e1c37d39e60d4d9490affc4edd0b), which replaces global storage with state owned by the deferred pointer. The [Qt 6.3.0 source](https://github.com/qt/qtdeclarative/blob/v6.3.0/src/quicktemplates2/qquickdeferredexecute.cpp) contains that fix; the Qt 6.2 CI job still uses the affected implementation. The inline `id` forces immediate content creation, avoiding this deferral path while retaining Qt 6.2 support. The lifecycle regression fails without it. With the workaround, two full Qt 6.2.4 QML-suite runs passed: **842 passed, 0 failed, 4 skipped each**.
johnny9 (Migrated from github.com) approved these changes 2026-11-12 18:14:50 +00:00
johnny9 (Migrated from github.com) left a comment

ACK e89a2bcd46

Range-diff confirms all 18 previously ACKed commits are unchanged after rebasing. The only addition is the inline id in HoverToolTip, addressing the Qt 6.2 deferred-content lifetime issue.

Built and ran the QML test runner on Qt 6.2.4: 838 passed, 0 failed, 4 skipped. Qt 6.2/6.4/6.10 CI and GUI functional tests also pass.

The previously noted switch-motion issue remains non-blocking.

ACK e89a2bcd4624fc4251cfaa5bc3726daf30ddae3a Range-diff confirms all 18 previously ACKed commits are unchanged after rebasing. The only addition is the inline `id` in `HoverToolTip`, addressing the Qt 6.2 deferred-content lifetime issue. Built and ran the QML test runner on Qt 6.2.4: **838 passed, 0 failed, 4 skipped**. Qt 6.2/6.4/6.10 CI and GUI functional tests also pass. The previously noted switch-motion issue remains non-blocking.
jarolrod (Migrated from github.com) reviewed 2026-11-14 14:07:40 +00:00
jarolrod (Migrated from github.com) commented 2026-11-14 14:07:40 +00:00

Defaulting Return to the only Normal action lets Return confirm actions that are irreversible but not marked Destructive. When "Send all available funds?" opens, its content has the keyboard focus, so one Return press sends the whole wallet (#1139); before this PR that alert ignored Return. The same happens with Update wallet in "Wallet update required", Create wallet in "Create without encryption?" and Close wallet. The comment on returnAction says Return never confirms a destructive action, but that holds only for actions marked Destructive, and these have no role or are marked Normal. The rule described in review was Return from a field; these alerts have no field. Limiting the default to alerts with a field, or marking these actions Destructive, would cover it.

Defaulting Return to the only Normal action lets Return confirm actions that are irreversible but not marked Destructive. When "Send all available funds?" opens, its content has the keyboard focus, so one Return press sends the whole wallet (#1139); before this PR that alert ignored Return. The same happens with **Update wallet** in "Wallet update required", **Create wallet** in "Create without encryption?" and **Close wallet**. The comment on `returnAction` says Return never confirms a destructive action, but that holds only for actions marked Destructive, and these have no role or are marked Normal. The rule described in review was Return from a field; these alerts have no field. Limiting the default to alerts with a field, or marking these actions Destructive, would cover it.
Sign in to join this conversation.
No description provided.