Display settings: add mBTC/uBTC units and Qt-compatible display-unit migration #587

Closed
opened 2026-05-06 08:54:44 +00:00 by johnny9 · 2 comments
johnny9 commented 2026-05-06 08:54:44 +00:00 (Migrated from github.com)

Code Gap

QML Display settings only expose BTC and sat in qml/pages/settings/SettingsDisplayUnit.qml, while Qt supports BTC, mBTC, uBTC, and sat.

QML also persists the setting with SettingsKeys::DISPLAY_UNIT (displayUnit), while Qt uses DisplayBitcoinUnit in bitcoin/src/qt/optionsmodel.cpp.

Work Needed

  • Add mBTC and uBTC options to SettingsDisplayUnit.qml.
  • Extend QML amount formatting to handle all selected units consistently across Send, Receive, Activity, Wallet Badge, and payment detail views.
  • Decide and implement migration/compatibility between QML displayUnit and Qt DisplayBitcoinUnit.
  • Update display-unit tests for all supported units and migration behavior.
<!-- migrated-from: https://github.com/johnny9/BitcoinCoreAppDevelopment/issues/43 --> ## Code Gap QML Display settings only expose BTC and sat in `qml/pages/settings/SettingsDisplayUnit.qml`, while Qt supports BTC, mBTC, uBTC, and sat. QML also persists the setting with `SettingsKeys::DISPLAY_UNIT` (`displayUnit`), while Qt uses `DisplayBitcoinUnit` in `bitcoin/src/qt/optionsmodel.cpp`. ## Work Needed - Add mBTC and uBTC options to `SettingsDisplayUnit.qml`. - Extend QML amount formatting to handle all selected units consistently across Send, Receive, Activity, Wallet Badge, and payment detail views. - Decide and implement migration/compatibility between QML `displayUnit` and Qt `DisplayBitcoinUnit`. - Update display-unit tests for all supported units and migration behavior.
johnny9 commented 2026-05-29 17:01:25 +00:00 (Migrated from github.com)

Lets make sure the units migrate properly but we don't need to support mbtc or ubtc

Lets make sure the units migrate properly but we don't need to support mbtc or ubtc
jarolrod commented 2026-06-01 16:59:49 +00:00 (Migrated from github.com)

I’m working on a settings/onboarding QML branch that partially addresses this issue. This can be considered picked up for now; once the PR is ready, I’ll revisit whether it fully addresses this issue or whether follow-up work should remain tracked here.

I’m working on a settings/onboarding QML branch that partially addresses this issue. This can be considered picked up for now; once the PR is ready, I’ll revisit whether it fully addresses this issue or whether follow-up work should remain tracked here.
Sign in to join this conversation.
No description provided.