https://bugs.kde.org/show_bug.cgi?id=456364

--- Comment #14 from Hologram <intu...@protonmail.com> ---
That could indeed be the case. With a DPI calculator
(https://www.sven.de/dpi/):
Laptop - 15,6 inch screen - Display size: 13.6" × 7.65" = 103.99in² (34.54cm ×
19.43cm = 670.89cm²) = 282.42 PPI 
Monitor - 27 inch screen - Display size: 23.53" × 13.24" = 311.5in² (59.77cm ×
33.62cm = 2009.68cm²) at 163.18 PPI

So, that would indeed mean that my laptop screen uses screen scale 2 and
monitor screen scale 1. 

By default, the marching ants were 4px wide at what is now screen scale 1. 
When you changed it to be 8px wide (screen scale 2) it was fine for me. 

So for reference:
24 inch - 1080p - Display size: 20.92" × 11.77" = 246.12in² (53.13cm × 29.89cm
= 1587.9cm²) = 91.79 PPI
15.6 inch - 1080p - Display size: 13.6" × 7.65" = 103.99in² (34.54cm × 19.43cm
= 670.89cm²) = 141.21 PPI 
14 inch - 1080p - Display size: 12.2" × 6.86" = 83.75in² (30.99cm × 17.43cm =
540.33cm²) = 157.35 PPI
10 inch - 1080p - Display size: 8.72" × 4.9" = 42.73in² (22.14cm × 12.45cm =
275.68cm²) = 220.29 PPI

^This indicates that tablets would default to screen scale 2, and 1080p
monitors would always use scale 2 if they are at least 1080p resolution. Only
budget model tablets at €130,- range use screen scale 1 (they are below 1080p
res) - from a quick look at the most popular devices page 1-4 on the Tweakers
Pricewatch. 

27inch - 1440p - Display size: 23.53" × 13.24" = 311.5in² (59.77cm × 33.62cm =
2009.68cm²) = 108.79 PPI
24inch - 1440p - Display size: 20.92" × 11.77" = 246.12in² (53.13cm × 29.89cm =
1587.9cm²) = 122.38 PPI

^Any 1440p screen would use screen scale 1. 

So I am thinking, what do you think about adding a new screen scale around the
150-160 dpi range? That would not affect most common screen resolutions of a
lower DPI, most notably 1080p. Perhaps the scaling in between 155-220 could be
1,5 for the marching ants? But 2 also be fine. 

So maybe like this then?

  if (dotsPerInch < 155) {
        screenScale = 1;
    }
else if (dotsPerInch < 220) {
        screenScale = 1.5;
    }
    else if (dotsPerInch < 300) {
        screenScale = 2;
    }
    else if (dotsPerInch < 500) {
        screenScale = 3;
    }
    else {
        screenScale = 4;
    }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to