<table><tr><td style="">amhndu created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />amhndu 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/D15645">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The scheme selection menu does not offer any hint for the current system<br />
scheme. This also makes it hard to "reset" back to the system scheme, once<br />
the scheme has been changed.</p>

<p>This is a preliminary patch to add an action which references the system scheme.<br />
Since, this breaks applications using the action name to save the selected<br />
scheme, I've made a new function in which the action data has been changed from<br />
only the path to the model index, this makes it possible to use the data to<br />
differentiate if the selection action is the system scheme action or not.</p>

<p>I know this probably isn't the best implementation to handle it, but this is<br />
the best I could figure out as a quick patch to get some input on doing this<br />
better.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Run <tt style="background: #ebebeb; font-size: 13px;">kcolorschemedemo</tt> from <tt style="background: #ebebeb; font-size: 13px;">tests</tt> and test the menu from the button.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R265 KConfigWidgets</div></div></div><br /><div><strong>BRANCH</strong><div><div>system-default</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15645">https://phabricator.kde.org/D15645</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kcolorschememanager.cpp<br />
src/kcolorschememanager.h<br />
tests/kcolorschemedemo.cpp</div></div></div><br /><div><strong>To: </strong>amhndu<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>