Make units more finegrained
It's always if (ratio < n) { return size * (ratio - 0.5); } but with the "< 3.0" condition that was not the case. REVIEW: 122644
This commit is contained in:
parent
a8edd6fd2c
commit
ffcb5c8046
@ -158,6 +158,8 @@ int Units::devicePixelIconSize(const int size) const
|
|||||||
} else if (ratio < 2.5) {
|
} else if (ratio < 2.5) {
|
||||||
return size * 2.0;
|
return size * 2.0;
|
||||||
} else if (ratio < 3.0) {
|
} else if (ratio < 3.0) {
|
||||||
|
return size * 2.5;
|
||||||
|
} else if (ratio < 3.5) {
|
||||||
return size * 3.0;
|
return size * 3.0;
|
||||||
} else {
|
} else {
|
||||||
return size * ratio;
|
return size * ratio;
|
||||||
|
Loading…
Reference in New Issue
Block a user