mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
qml: audit the design system and adopt shared components #1052
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!1052
Loading…
Reference in a new issue
No description provided.
Delete branch "design-system-audit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.
-test-motion=offmakes animations instant, so the QML suite runs about three times faster and doesn't wait on transitions.Accessibility: new settings in
Display > Accessibilityand controls that work with screen readers and the keyboard.Dialogs and alerts: every modal is built on a shared DialogPopup.
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.mdstates the principles, layout, components, accessibility and file structure the app follows, andAGENTS.mdpoints agents to it before UI work.Cleanup: unused components, legacy settings pages and icon aliases are removed.
More comprehensive showcase of the design system.
Added a commit for




qml: add a setting to hide amountscc @johnny9Concept ACK
github.com/bitcoin-core/gui-qml@04e01e462dThe 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,034a1a87a2andb312ca811ecarry 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.643f9ab912andb2a027986buse arefactor:prefix; the rest of the history for these files usesqml:.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.
Nit: The
04e01e462dbody 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 indoc/.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 (Reduce motion): The estimating pulse is gated on
decorativeLoops, but the dial sweep isn't: thisBlockClockDialuses the C++ defaultanimateDial(true), andMiniBlockClock.qml'sanimateDialhas no motion check either. Both clocks keep sweeping with Reduce motion on, very visibly in the header while connecting.&& Theme.motion.decorativeLoopson both. A frame-diff sweep found nothing else still moving.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: 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.Nit: now that captionStrong really renders Semi Bold on Qt 6.4, "Back" looks noticeably heavier than its thin caret.
Nit: only "Copy QR code" has an icon in this menu.
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: trueon this TransactionSummary, and decide whether the saved request amount should be masked while not being edited.Suggestion: Add that payments to this address will still arrive in the wallet but won't be linked to a request. That's what
removeReceiveRequestdoes (I paid a deleted request's address and it shows as an ordinary transaction), and it's the first thing users will wonder.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 (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'sensureFocusedItemVisiblewould work here. May predate the PR, but it undercuts "Tab reaches every interactive control".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
amountValueandhidesAmountfixes both.Nit (Hide amounts): The raw transaction hex stays visible and encodes every output value. Blank or collapse it while hidden.
Nit (Hide amounts): The ribbons stay proportional to the hidden amounts, so relative sizes still show. Equal widths while hidden, if that matters.
Blocker: this label ends up at
x: 0in 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 atx: 219. Bisect points atcde36b4349, where this and the title switched fromfont:totextStyle:. 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_transactionflowcheck thattransactionFlowAmountWide.xis past the title's right edge would catch it offscreen.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.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.
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.
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 aTabButtonreads as a page tab and anItemDelegateas a list item). Same for SegmentedPicker's segments and container.tst_designsystemreads the QML property with accessibility off, so it passes. Basing these onTabButton/ItemDelegateand testing roles with accessibility active would make them land.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):
pressedalso goes true while a handle processes a key press, so the first arrow key setspointerFocusand the focus ring disappears. Set it from a pointer-only source (e.g. a TapHandler).Suggestion (keyboard): With arrows moving the selection this behaves as a tab list, but each segment is still its own Tab stop.
activeFocusOnTab: checkedon the segments leaves one stop per picker.Nit (contrast): The unfilled track is nearly invisible on the card (about 1.1:1 against it in both palettes).
Suggestion:
QAPP_APP_NAME_DEFAULTis also mainnet's per-chain settings name, so palette, text size and reduce motion live in mainnet's file:-resetguisettingson mainnet clears them for every chain, on testnet/signet it doesn't. A dedicated settings name and typed properties instead of openvalue/setValuewould make the scope explicit and keep QML from writing arbitrary mainnet keys such asstrDataDir. At minimum this comment should say so.Suggestion (security):
startupErrorAlertuses AlertPopup's defaultText.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.PlainTexton this andinitErrorPopup.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): 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 (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. AnAccessible.descriptionwithqsTr("%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 (Reduce motion): When the platform already asks for reduced motion,
MotionPreference.modeis "reduced" andpreferredMode()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.Nit (Text size): This button needs 148 px and elides to "Check devi…".
Blocker: from
a240d4a758through2ef4a9314ethis file declaredproperty BitcoinAmount sampleAmount: BitcoinAmount { satoshi: 150000 }, which Qt 6.4.2 rejects (Invalid property assignment: unsupported type "qlonglong"). The design page is reachable from DisplaySettingsPage, soMainWindow.qmlfails to load and the app exits 1 at startup on those 10 commits. This assignment, added inb312ca811e, is the fix; folding it intoa240d4a758keeps every commit runnable on the 6.4 floor.Suggestion (Hide amounts): The Pending section header shows the real pending total (e.g.
-0.98400141 ₿) above masked rows. ABitcoinAmountDisplayLabelwithhidesAmount: true, keeping the objectName and colors, would match.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 address list (and the amount row in
AddressDetails.qml) shows the amount per address, including₿ 0on unused ones.hidesAmount: truehere and there, and stop sizing the amount column from the real text.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): These fee rows stay unmasked. That fits the "amounts being chosen" reasoning for Send, but the commit doesn't name Speed up; intended?
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.
Gah, I remove the build & test commands since it was redundant. I forgot to remove it from the commit body. I'll remove it.
Confirmed two Hide amounts gaps at
04e01e462d: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 BTCvisible in the Pending header. UseBitcoinAmountDisplayLabelwithhidesAmount: trueand extend the pending-balance test to check masking.Expanded transaction actions still expose amounts to screen readers.
childRow.Accessible.descriptionincludesmodelData.amounteven while the visible label is masked. A Qt accessibility probe returns the address followed by0.00060000 BTC. Apply thehideAmountscheck 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.
I think this can stay as is. There's not much you can infer from proportional thickness.
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.
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 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.
Done. The amount is masked in the address list and in AddressDetails, and the column is sized from the text actually shown.
Done. The received amount is masked, and a saved request’s amount is masked except while you edit it.
Done. It uses BitcoinAmountDisplayLabel with hidesAmount, with a test.
Done. The range label and the slider’s accessible values are hidden in Activity and in View coins.
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.
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.
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.
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.
Done. A new sliderTrack role, checked in tst_themecontrast.
Fixed. The row now sizes from its wrapped text.
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.
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.
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.
Intended for now. Coming back to a page puts focus where you left it, which helps when moving between two settings.
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.
Done. Both startup error alerts show plain text, and the functional test puts markup in the datadir path to check it.
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.
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,
-resetguisettingsstill 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 reportFollow-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.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
LinkTextcontrol for a link inside a sentence, so nothing is needed here unless you'd rather take the wording fix in this PR.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.qmlandOnboardingView.qmlhaven't changed since.This isn't introduced here: qt6 at
6cdad53does 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 walksnextItemInFocusChainon the Regular wallet form would pin it down either way.Nit: still open from my earlier comment: "Back" in
captionStronglooks noticeably heavier than its thin caret. Not blocking.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 (contrast): in light, the close icon is
neutral6(#999999) on thissurface2circle, 2.46:1, under the 3:1 non-text minimum;CoreLight.qmlalready 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).neutral7would give 4.59:1 in light.Fixed the focus order so the form fields come before the footer actions.
Changed the close icon to neutral7
Updated the wording to “standalone text actions and links.”
Removed the copy icons
Changed the Back label to
captionand switched the caret to its SVG asset.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.
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: trueon all seven). Switching onboarding to the top-left Back and saying here that Back always sits top left would make it consistent, and would letbackButtonInFootergo.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 (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.iconbytextScale, and saying here that icons follow the setting too, would keep icon-and-label pairs in proportion.Nit: this names the copy icon as the one SVG used directly, but the same push also loads
caret-left.svgdirectly for OnboardingBackButton, and the app already loads about 20 other SVGs directly (check.svg,activity-*.svgand 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.svgalias 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 othercaret-leftsites.Nit: the
conststopsreturn test_mode;on the next line from moving, and clang-tidy'sperformance-no-automatic-moveflags it in builds with test automation on. Dropping theconstfixes it. This came up on #1060, which builds on this commit.Suggestion: at
c294974this was anAlertPopup("Open link?", plain-text message, Cancel/OK). Resolving the conflict with #767 kept #767's hand-built layout and only moved its root toDialogPopup, 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
actionListonopenFailedthe wayNodeRuntimeDialog.qmlbuilds its list (Cancel/OK, then Close/Copy link, the copy action withclosesPopup: falseandenabled: !linkCopied), and take the title and message fromopenFailed. Keep the selectable URLTextEditfrom #767 in thecontentslot with a text role, since its selectability is deliberate. Keeping #767's objectNames (externalLinkCancel,externalLinkConfirm,externalLinkClose,externalLinkCopy,externalLinkUrl) throughbuttonObjectNamekeepstst_externalpopupandqml_test_external_link_confirm.pyworking.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
opacitybinding, so nothing brings the dot back. Restoring the resting opacity when the pulse stops, or pulsing a separate property that feeds intoopacity, would fix it. Starting the app with Reduce motion already on is fine.Nit: in dark,
surfaceSelected(13% white) andsurfaceHover(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: this footer from #981 ("Loading settings…", "Saving settings…", or the settings error) got
dangerTexthere but no text role, so CoreText falls back to a fixed 13 px and the message ignores the Text size setting.textStyle: Theme.text.captionkeeps it at 13 px at 100%. The error text atCoinsList.qml:337is the same case.Nit:
mono: trueapplies 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 wayamountValuealready does, would match. The size rows have the same issue when they show "Unavailable".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.
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.NodeRuntimeDialogshowsnodeModel.runtimeDialogMessage, which can carry paths and config values (Widgets forcesQt::PlainTextfor the same message inbitcoingui.cpp), andNodeFatalErrorPopupand the wallet load and close alerts inDesktopWalletsare the same case. No caller passes markup today, so defaulting toText.PlainTexthere covers all of them, and a caller that wants rich text can opt in.Nit: follow-up to my comment here.
neutral7clears the contrast minimum, but next to the Back button (label and caret inneutral9) the close X still reads lighter, so the two ends of the bar don't match.neutral9would match Back. The glyph is also small at the default size: 10 px in a 30 px circle (line 18).Suggestion: keep the default at
icon.m(16 px). This push drops it toicon.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.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: 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.
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 (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 inguiutil.cpp(tr("%n second(s)", "", secs)). Same for the day, hour, minute and second strings below.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.
Nit:
Image.sourceSizereturns the size that was assigned when both dimensions are set, so the twocompares always pass, and pointingcopyIconSourceback at a PNG would pass all four rows. The only real check is theImage.Readyload. I'd drop this test and keep atryCompare(icon, "status", Image.Ready)intest_defaultsToIconAndText.Force-pushed with fixes for @epicleafies's feedback. I folded the fixes into the corresponding commits.
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.
ACK
8ed9aee986Palettes and Theme tokens centralize styling, shared controls replace duplicated implementations, and
DialogPopupstandardizes 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.OptionSwitchgates its color animations but leavesBehavior on xunconditional. Guard it with!Theme.motion.reducedand test both modes.Linux/Qt 6.10.2 build, app tests and Core lint/tidy pass.
Rebased and force-pushed. No other changes.
In
qml/controls/HoverToolTip.qml, add an inlineidto theTooltipassigned tocontentItem: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 insideActivityRequestBadge.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
idforces 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.ACK
e89a2bcd46Range-diff confirms all 18 previously ACKed commits are unchanged after rebasing. The only addition is the inline
idinHoverToolTip, 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.
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
returnActionsays 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.