Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full-precision display and entry for JSON and GUI #79

Merged
5 commits merged into from Mar 2, 2011

Conversation

gavinandresen
Copy link
Contributor

This modifies FormatMoney to display full-precision values (with trailing zeroes trimmed correctly-- e.g. 0 is 0.00 but 0.00010000 displays as 0.0001).

And ParseMoney allows entry of full-precision values.

And JSON's AmountFromValue doesn't round to two places, so you can send/move full-precision values.

@gavinandresen
Copy link
Contributor Author

Forum thread to discuss: http://www.bitcoin.org/smf/index.php?topic=3786.0

rdponticelli pushed a commit to Criptomonedas/bitcoin that referenced this pull request Nov 26, 2014
ae2679b Add bench_inv tool (Pieter Wuille)
zathras-crypto referenced this pull request in zathras-crypto/omnicore Jun 11, 2015
8a60ea0 QA: add RPC tests for error reporting of "signrawtransaction" (dexX7)
4ab1fae RPC: show script verification errors in "signrawtransaction" result (dexX7)
destenson pushed a commit to destenson/bitcoin--bitcoin that referenced this pull request Jun 26, 2016
classesjack pushed a commit to classesjack/bitcoin that referenced this pull request Jan 2, 2018
Possible to submit a block with an arbitrary hashStateRoot or hashUTXORoot (Qtum Core / issue#78)
cryptapus added a commit to cryptapus/bitcoin that referenced this pull request Jan 12, 2018
CryptAxe pushed a commit to CryptAxe/bitcoin that referenced this pull request Mar 11, 2018
laanwj added a commit that referenced this pull request Feb 22, 2021
67f2631 gui: Add monospaced font settings (Hennadii Stepanov)
22e0114 qt: Choose monospaced font in C++ code rather in `*.ui` file (Hennadii Stepanov)
623de12 qt: Make GUIUtil::fixedPitchFont aware of embedded font (Hennadii Stepanov)
89e4219 gui: Add Roboto Mono font (Hennadii Stepanov)

Pull request description:

  Qt does not guarantee that the actual applied font matches to the requested one.
  It was noted (#16432 (comment)):
  > the monospace font looks a bit weird no macOS

  ... because it is _not_ monospaced.
  Also some discrepancies I've noted on Windows while testing Qt 5.15 ([#19716](#19716)).

  Of course, we could check the actual font with `QFontInfo`, and try to choose another font.
  But this PR suggests to just embed a monospaced font, and get the GUI look (partially) independent from a platform.

  [Roboto Mono](https://fonts.google.com/specimen/Roboto+Mono) was chosen after discussion with Bitcoin Design community, and due to its [Apache License, Version 2.0](https://fonts.google.com/specimen/Roboto+Mono#license).

  Changes are scoped to the Overview page only.

  ---

  Screenshots on macOS 10.15.6 (images are simulated by code patching):

  - master (ca30d34)
  ![Screenshot from 2020-09-03 14-10-03](https://user-images.githubusercontent.com/32963518/92107902-30357d80-edef-11ea-8a4f-b4c758eebf66.png)

  - this PR (3fdd5b6)
  ![Screenshot from 2020-09-03 15-41-36](https://user-images.githubusercontent.com/32963518/92116277-4b5aba00-edfc-11ea-8cb9-22fc44460bfb.png)

  ---

  More screenshots added after bitcoin-core/gui#79 (comment):

  - Linux Mint 20.1 + Cinnamon DE

  ![DeepinScreenshot_select-area_20210221205410](https://user-images.githubusercontent.com/32963518/108635739-b327be80-7489-11eb-8851-ac89f61199ee.png)

  - Windows 10 (with depends)

  ![DeepinScreenshot_select-area_20210221205056](https://user-images.githubusercontent.com/32963518/108635741-b6bb4580-7489-11eb-8b6b-66be5551eb8c.png)

  - macOS Big Sur (with depends)

  ![DeepinScreenshot_select-area_20210221202917](https://user-images.githubusercontent.com/32963518/108635746-bd49bd00-7489-11eb-8cd2-cf4bb2273a6d.png)

ACKs for top commit:
  laanwj:
    Tested ACK 67f2631

Tree-SHA512: a59775570b8ce314669ede50a0b69f53e8a47a41e7eea428835013240f0ce9afcff6e4c258895455b56806417ed877e5b7a9522f1904e95a5f435db8ccf6078c
@bitcoin bitcoin locked and limited conversation to collaborators Mar 5, 2021
@maflcko maflcko removed the CI failed label Apr 5, 2023
@maflcko maflcko removed the CI failed label Apr 11, 2023
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants