Merge lp:~azzar1/unity/round-gtk-scaling-to-closest-integer into lp:unity
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Marco Trevisan (Treviño) on 2016-12-20 | ||||
| Approved revision: | 4215 | ||||
| Merged at revision: | 4215 | ||||
| Proposed branch: | lp:~azzar1/unity/round-gtk-scaling-to-closest-integer | ||||
| Merge into: | lp:unity | ||||
| Diff against target: |
21 lines (+2/-2) 1 file modified
unity-shared/UnitySettings.cpp (+2/-2) |
||||
| To merge this branch: | bzr merge lp:~azzar1/unity/round-gtk-scaling-to-closest-integer | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Marco Trevisan (Treviño) | 2016-12-16 | Approve on 2016-12-20 | |
| David Jordan (community) | Approve on 2016-12-20 | ||
|
Review via email:
|
|||
Commit Message
Round gtk scaling factor to closest integer.
Description of the Change
Round gtk scaling factor to closest integer.
| Omer Akram (om26er) wrote : | # |
| Andrea Azzarone (azzar1) wrote : | # |
This will not affect unity scaling, neither text scaling. Just gtk
window scaling that is integer. So yes 1.68 will be 2.
On Fri, Dec 16, 2016 at 8:34 PM, Omer Akram <email address hidden> wrote:
> What's the impact of this one ? Will scaling of 1.68 effectively result in 2X scaling ?
> --
> https:/
> You are the owner of lp:~azzar1/unity/round-gtk-scaling-to-closest-integer.
>
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-Branch: ~azzar1/
> Launchpad-Project: unity
| David Jordan (dmj726) wrote : | # |
Will test shortly on 14" and 17" machines, though I expect to see some issues with text size, qt scaling, etc.
| David Jordan (dmj726) wrote : | # |
The sudden switch in scaling factor when the user manually picks say 1.68 is pretty jarring, and I'm not sure it would be readily understood why it's happening, especially when text size changes at each step.
Let's leave the manual scaling alone and just focus on defaulting to scales we can represent perfectly.
| David Jordan (dmj726) wrote : | # |
Actually, digging into this more, I'd say this is a minor improvement (moving the sudden, size increase to 1.5x instead of having the jump at 2x), so I'm definitely fine with this patch.
It's not a fix for bug #1649736 though.
- 4214. By Andrea Azzarone on 2016-12-20
-
Improve optimal scale logic.
- 4215. By Andrea Azzarone on 2016-12-20
-
Round gtk scaling factor to closest integer.
| Andrea Azzarone (azzar1) wrote : | # |
Merged patch from https:/
| David Jordan (dmj726) wrote : | # |
Looks good to me!
| Kai-Heng Feng (kaihengfeng) wrote : | # |
Thanks for the patch!


What's the impact of this one ? Will scaling of 1.68 effectively result in 2X scaling ?