Skip to content

Fix Shortcut Ambiguities, Clean up text - #129

Closed
jarolrod wants to merge 2 commits into
bitcoin-core:masterfrom
jarolrod:optionsMenuCleanup
Closed

jarolrod wants to merge 2 commits into
bitcoin-core:masterfrom
jarolrod:optionsMenuCleanup

Conversation

@jarolrod

@jarolrod jarolrod commented Nov 5, 2020 •

Copy link
Copy Markdown
Contributor

Removes shortcut ambiguities found in the Settings -> Options menu. Builds upon this rationale.

Before/Master

master

After/PR

pr

Main Tab

  1. Start Bitcoin Core on system login
    • Moved shortcut from [S]tart to -> [B]itcoin in order to reserve S for Size of database cache
  2. Prune block storage to
    • Moved shortcut from [B]lock to -> [P]rune in order to reserve B for Start Bitcoin Core on system login
    • Added a colon at the end since this text denotes a data field
  3. Size of database cache
    • Moved shortcut from [D]atabase to -> [S]ize in order to fix the conflict with the Display tab shortcut
    • Added a colon at the end since this text denotes a data field
  4. Number of script verfication threads
    • Added a colon at the end since this text denotes a data field

Wallet Tab

  1. Enable coin control features
    • Moved shortcut from [C]oin to -> [E]nable in order to fix conflict with the Cancel button

Network Tab

  1. `Connect through SOCKS5 proxy (default proxy):
    • Moved shortcut from [C]onnect to -> SOCKS[5] in order to fix conlict with the Cancel button

Window Tab

  1. Minimize to the tray instead of the taskbar
    • Moved shortcut from [M]inimize to -> [T]ray in order to fix conflict with the Main tab

Closes #126

@jarolrod jarolrod changed the title qt: Fix Shortcut Ambiguities, Clean up text GUI: Fix Shortcut Ambiguities, Clean up text Nov 5, 2020
@hebasto

hebasto commented Nov 6, 2020

Copy link
Copy Markdown
Member

Concept ACK.

The "GUI:" prefix is redundant in the GUI repo PR title (but the "qt: " prefix in the commit message is correct).

Generally, screenshots "before"/"master" and "after"/"pr" are expected as a part of the OP in the GUI repo :)

@hebasto hebasto left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approach ACK 401a5e7.

About adding : character:

  • "Third party transaction URLs" string could be ended with :
  • "Prune block storage to <NN> GB" seems a complete simple sentence, and adding an : is not required, but I'm not an expert in the field of English punctuation rules :)

@hebasto

hebasto commented Nov 6, 2020

Copy link
Copy Markdown
Member

ping @Bosch-0 @GBKS @johnsBeharry

@jarolrod jarolrod changed the title GUI: Fix Shortcut Ambiguities, Clean up text qt: Fix Shortcut Ambiguities, Clean up text Nov 6, 2020
@Bosch-0

Bosch-0 commented Nov 9, 2020

Copy link
Copy Markdown

Testing ACK 7e37329 on Windows Windows 10.0.18363 Build 18363 and Ubuntu 20.04.

Looks good to me!

@jarolrod

Copy link
Copy Markdown
Contributor Author

Approach ACK 401a5e7.

About adding : character:

* "Third party transaction URLs" string could be ended with `:`

* "Prune block storage to <NN> GB" seems a complete simple sentence, and adding an `:` is not required, but I'm not an expert in the field of English punctuation rules :)

While that is a complete sentence, I think the "Prune block storage to: [NN] GB" makes this field visually and functionally consistent with the other data fields it is surrounded by.

@hebasto

hebasto commented Nov 11, 2020

Copy link
Copy Markdown
Member

About adding : character:

  • "Third party transaction URLs" string could be ended with :

?

@hebasto

hebasto commented Nov 11, 2020 •

Copy link
Copy Markdown
Member

@Bosch-0

Testing ACK 7e37329 on Windows Windows 10.0.18363 Build 18363 and Ubuntu 20.04.

Looks good to me!

Currently, the top commit of this PR is 401a5e7 rather 7e37329 :)

@jarolrod

jarolrod commented Nov 12, 2020 •

Copy link
Copy Markdown
Contributor Author

Added a colon to the Third party transaction URLs feature under the Display Tab as suggested by @hebasto.

Before/Master

master-third-party-txs

After/PR 88ecffa

pr-third-party-txs

<string>Automatically start %1 after logging in to the system.</string>
</property>
<property name="text">
<string>&amp;Start %1 on system login</string>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure it's a good idea to tie the shortcut to PACKAGE_NAME... This option is more about startup anyway: [S] is a good fit.

</property>
<property name="text">
<string>Prune &amp;block storage to</string>
<string>&amp;Prune block storage to:</string>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK despite no need

<widget class="QLabel" name="databaseCacheLabel">
<property name="text">
<string>Size of &amp;database cache</string>
<string>&amp;Size of database cache:</string>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't see a good option here. Maybe just fall back to [I]?

Comment thread src/qt/forms/optionsdialog.ui Resolved
Comment thread src/qt/forms/optionsdialog.ui Resolved
Comment thread src/qt/forms/optionsdialog.ui Resolved
@hebasto

hebasto commented Nov 15, 2020

Copy link
Copy Markdown
Member

https://www.nngroup.com/articles/ui-copy/ (the "Guidelines for Command Shortcuts" part) could be relevant.

@promag

promag commented Nov 15, 2020

Copy link
Copy Markdown
Contributor

Concept ACK.

@jonasschnelli

Copy link
Copy Markdown
Contributor

Have we though how this would behave after translations? I guess the translators would define the shortcuts for non English languages?

@hebasto

hebasto commented Mar 15, 2021

Copy link
Copy Markdown
Member

Here are some excerpts from Qt docs:

Keyboard accelerators may need to be changed but without introducing conflicts... We cannot use a letter that is already in use - unless we change several accelerators.

Conflicts with other Alt key accelerators must be avoided within a context. Note that some Alt key accelerators, usually those on the menu bar, may apply in other contexts.

@jonasschnelli

Have we though how this would behave after translations? I guess the translators would define the shortcuts for non English languages?

With the current translation process it is a translators' responsibility to (re)define shortcuts, right?

@hebasto hebasto changed the title qt: Fix Shortcut Ambiguities, Clean up text Fix Shortcut Ambiguities, Clean up text Aug 5, 2021
@DrahtBot

Copy link
Copy Markdown
Contributor

🐙 This pull request conflicts with the target branch and needs rebase.

Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".

@DrahtBot

Copy link
Copy Markdown
Contributor
There hasn't been much activity lately and the patch still needs rebase. What is the status here?
  • Is it still relevant? ➡️ Please solve the conflicts to make it ready for review and to ensure the CI passes.
  • Is it no longer relevant? ➡️ Please close.
  • Did the author lose interest or time to work on this? ➡️ Please close it and mark it 'Up for grabs' with the label, so that it can be picked up in the future.

@jarolrod

jarolrod commented Apr 3, 2022

Copy link
Copy Markdown
Contributor Author

leaving up for grabs

@bitcoin-core bitcoin-core locked and limited conversation to collaborators Jul 25, 2023
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.

Shortcut ambiguities

7 participants