Repository navigation
Make input fields trustworthy and use wide windows deliberately - #8
Merged
Merged
Conversation
Scrolling the settings with the mouse wheel changed whichever field was
under the pointer, even without focus. Spin and combo boxes now take wheel
input only while focused and otherwise let the page scroll.
Under a German locale "." is a thousands separator, so typing "1.5" saved
15 and "12.5" saved 125, while help and tooltips printed values with a dot.
Number fields now accept both marks, show no thousands separators, and help,
tooltips and reset text use the same formatting. Whole-number fields read
"1.000" as a thousand.
Out-of-range or over-precise input was silently truncated ("99999" became 9
in a 1-20 field). It is now corrected when leaving the field and a note under
the label names the correction; tooltips state range and default.
- Assign a key by pressing it via a keyboard button beside each key field.
- Stop settings rows at 760 px and widen the key sheet to 340 px from a
1600 px window.
- Scale the logo and image preview in device pixels so they stay sharp at
150 % and 200 % display scaling; image controls use whole percentages.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Input fields
.is a thousands separator, so typing1.5saved 15 and12.5saved 125, while help and tooltips printed values with a dot. The newNumberFieldaccepts both.and,as the decimal mark and never shows thousands separators. Help, tooltips and reset text format numbers the same way. Whole-number fields read1.000as a thousand.99999in a 1–20 field became9. Input is now corrected when leaving the field or pressing Enter, and a pink note under the label says what happened ("Maximum is 20.", "Rounded to 2 decimal places."). Field tooltips state range and default.100 %instead of100,00 %).Window sizes and display scaling
Why
These come from a second design critique focused on input usability and scaling (26/40). This PR addresses all five priority issues it found.
Notes for reviewers
manager/fields.py:NumberField,ChoiceField(wheel guard) andKeyCaptureButton.QAbstractSpinBox.fixup(), so corrections happen infocusOutEvent/Enter before Qt would fall back to the previous value.