<table><tr><td style="">rjvbb created this revision.<br />rjvbb added reviewers: ngraham, Frameworks.<br />Restricted Application added a project: Frameworks.<br />rjvbb requested review of this revision.
</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/D13777">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>A recent commit (<a href="https://phabricator.kde.org/R236:00bce130d35e9dc398709e690a05f8dde70f52b3" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">00bce130d35e9dc398709e690a05f8dde70f52b3</a>) modified the KMessageWidget look and feel. While I fail to see the point to make them look like their Kirigami equivalent this doesn't really bother me either.</p>

<p>The change did introduce 1 regression IMHO: the Information type background colour is now hardcoded instead of being based on the highlight colour as before. This is also the type I encounter most (in Kate, KDevelop etc).</p>

<p>The patch below reverts the colour hardcoding by obtaining the base colour from the current palette, as before.</p>

<p>Additionally, I propose to use the current widget palette instead of the global application palette, as we cannot know whether or not the code calling us installed a custom palette for the particular widget we're working with.</p>

<p>I've marked this WIP because I plan to use the occasion to investigate whether or not it's possible to drop some of the other hardcoded colours.</p>

<p>I am also open to discussion whether it would be more appropriate to use the user's tooltip colour (<tt style="background: #ebebeb; font-size: 13px;">QPalette::ToolTipBase</tt>) for Information messages, or to introduce a type-specific darkening factor for the calculation of the final background colour.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Reverts the annoying blueish background of the new-style Information messages to a colour I picked myself.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R236 KWidgetsAddons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13777">https://phabricator.kde.org/D13777</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kmessagewidget.cpp</div></div></div><br /><div><strong>To: </strong>rjvbb, ngraham, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>