<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, VDG, 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/D9227" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Qt internally uses <tt style="background: #ebebeb; font-size: 13px;">QIcon::Selected</tt> for when the action button in a line edit is pressed.<br />
We use that state for selected menu items rendering the icon inverted. This means that in line edits the icon becomes invisible (white on white) when the button is pressed.<br />
I adapted the code and intercept its paint event to use <tt style="background: #ebebeb; font-size: 13px;">QIcon::Active</tt> instead which makes the icon visible.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Clear button in text fields stays visible and glows while pressed rather than becoming invisible.<br />
Not pressed<br />
<a href="https://phabricator.kde.org/F5531106" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">F5531106: Screenshot_20171206_161516.png</a></p>

<p>Before pressed<br />
<a href="https://phabricator.kde.org/F5531105" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">F5531105: Screenshot_20171206_161455.png</a><br />
After pressed<br />
<a href="https://phabricator.kde.org/F5531107" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">F5531107: Screenshot_20171206_161539.png</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R31 Breeze</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9227" rel="noreferrer">https://phabricator.kde.org/D9227</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstyle/breezestyle.cpp<br />
kstyle/breezestyle.h</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, VDG, hpereiradacosta<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>