Center numbers in Crop and Reduce Red Eye spinboxes

Authored by rkflx on Aug 20 2018, 4:38 PM.

Description

Center numbers in Crop and Reduce Red Eye spinboxes

Summary:
When increasing the value displayed in a spinbox, normally the least
significant digit should stay in place to avoid unecessary movement.
This means the numbers should be right-aligned, instead of being
left-aligned like they are currently.

Since right-aligning still looks a bit unbalanced, centering should be a
good middle ground. In addition, when the number of digits does not
change it makes more sense to pad the number on both sides equally in
any case.

Test Plan:
Check that the spinboxes in the Crop and Reduce Red Eye
tools look more pleasant while resizing the crop rectangle and moving
the size slider respectively. For a more profound effect, use a large
image.

Reviewers: Gwenview, muhlenpfordt

Reviewed By: Gwenview, muhlenpfordt

Subscribers: muhlenpfordt

Tags: Gwenview

Differential Revision: https://phabricator.kde.org/D14954

Details

Committed
rkflxAug 23 2018, 6:09 AM
Reviewer
Gwenview
Differential Revision
D14954: Center numbers in Crop and Reduce Red Eye spinboxes
Parents
R260:2ba1e6bcb410: Merge remote-tracking branch 'origin/Applications/18.08'
Branches
Unknown
Tags
Unknown