<table><tr><td style="">ngraham added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D11244">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D11244#223654" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D11244#223654</a>, <a href="https://phabricator.kde.org/p/broulik/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@broulik</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>Did you actually properly test this, ie. without scaling? I can't see how this would be working:<br />
1.) You're missing <tt style="background: #ebebeb; font-size: 13px;">import QtQuick.Window 2.2</tt><br />
2.) There's no such property <tt style="background: #ebebeb; font-size: 13px;">Window.devicePixelRatio</tt>, it's <tt style="background: #ebebeb; font-size: 13px;">Screen.devicePixelRatio</tt> (which is also in the <tt style="background: #ebebeb; font-size: 13px;">Window</tt> import, but that seems also wrong in the <tt style="background: #ebebeb; font-size: 13px;">qqc2-desktop-style</tt> you got this from)</p></div>
</blockquote>
<p>Yes, I did fully test with:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">No scale factor</li>
<li class="remarkup-list-item">1.2x scale factor</li>
<li class="remarkup-list-item">2x scale factor</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">PLASMA_USE_QT_SCALING=1</tt> both on and off for each one</li>
</ul>
<p>Everything seemed to work fine. <tt style="background: #ebebeb; font-size: 13px;">Window.devicePixelRatio</tt> is what QQC2-desktop-style used, so I just copied it. If there's something else more appropriate, I'm happy to use that instead, or fix the imports, or whatever. Again, this patch <em>does</em> work--though maybe by accident?</p>
<blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D11244#223663" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D11244#223663</a>, <a href="https://phabricator.kde.org/p/davidedmundson/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@davidedmundson</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>Thanks for finding the bug report.</p>
<p>+1 from me.</p>
<p>You prompted me to look <a href="https://codereview.qt-project.org/222827" class="remarkup-link" target="_blank" rel="noreferrer">https://codereview.qt-project.org/222827</a>; turns out it was a ridiculously easy fix.</p>
<p>Has the advantage that it'll fix the QQC1 desktop theme labels; but I'm ok with an interim fix.</p></div>
</blockquote>
<p>Wow, fantastic! I look forward to the day when we can remove all of this code, then. :)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11244">https://phabricator.kde.org/D11244</a></div></div><br /><div><strong>To: </strong>ngraham, Plasma, davidedmundson<br /><strong>Cc: </strong>broulik, Frameworks, michaelh<br /></div>