<table><tr><td style="">Zren created this revision.<br />Zren added a reviewer: ivan.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</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/D8324" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>First I fixed the ActionItem label width exiting the button boundaries mentioned in <a href="https://bugs.kde.org/show_bug.cgi?id=385794" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=385794</a><br />
Example of the bug:<br />
<a href="https://phabricator.kde.org/F5432216" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F5432216: 2017-10-15___17-02-08.png</a></p>
<p>Since We cutoff the ActionItem text, I then changed the minimum width to 300px since it fits the *english* text naturally.<br />
<a href="https://phabricator.kde.org/F5432215" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F5432215: 2017-10-15___20-40-47.png</a></p>
<p>I could probably change that to preferredWidth=300px (with minimumWidth=200px) if you want a desktop widget to start at 200px width, but a "panel widget" open as 300px. A systemtray widget is always ~400x330px.</p>
<p>I also multiplied the minimum widget size so it scales with the DPI.<br />
You can test with:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">QT_DEVICE_PIXEL_RATIO=2 plasmoidviewer -a package</pre></div>
<p>Lastly, I added my commented out mockup of the <tt style="background: #ebebeb; font-size: 13px;">vaultsModel</tt> since <tt style="background: #ebebeb; font-size: 13px;">plasmoidviewer</tt> doesn't expose vault's <tt style="background: #ebebeb; font-size: 13px;">plasmoid.nativeInterface</tt>. If you won't use this then I'll remove it.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R845 Plasma Vault</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8324" rel="noreferrer">https://phabricator.kde.org/D8324</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plasma/package/contents/ui/ActionItem.qml<br />
plasma/package/contents/ui/main.qml</div></div></div><br /><div><strong>To: </strong>Zren, ivan<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>