<table><tr><td style="">rkflx created this revision.<br />rkflx added a reviewer: hpereiradacosta.<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/D9281" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Gwenview's <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Operations</span></span></span> sidebar uses custom <tt style="background: #ebebeb; font-size: 13px;">QToolButtons</tt> which are<br />
wide and left aligned. Special support for this in Breeze was added with<br />
<a href="https://phabricator.kde.org/R31:2fb62271d777f7c5862576661252ecc3511c68f3" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">2fb62271d777</a>. However with the transition to KF5 something broke: While<br />
the alignment to the left still worked, there was not enough space<br />
between the left button border and the icon:</p>
<p><a href="https://phabricator.kde.org/F5539728" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F5539728: 1_gwenview-toolbutton-margins_before.png</a></p>
<p>This is fixed by adding the appropriate margin:</p>
<p><a href="https://phabricator.kde.org/F5539730" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F5539730: 2_gwenview-toolbutton-margins_after.png</a></p>
<p>Note how this replicates exactly the spacing of the toolbuttons in the<br />
regular toolbar on the top (which had its icon size set to "small" in<br />
this screenshot).</p>
<p>CCBUG: 381535</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Icons on toolbuttons in Gwenview's <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Operations</span></span></span> sidebar no longer<br />
squished all the way to the left, text spacing still looking good.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R31 Breeze</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9281" rel="noreferrer">https://phabricator.kde.org/D9281</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstyle/breezestyle.cpp</div></div></div><br /><div><strong>To: </strong>rkflx, hpereiradacosta<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>