<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, VDG.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />broulik 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/D18519">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The button effectively saves the theme to be edited as a new file, so turn it into a "Save As" button that is always shown.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Editing a system color scheme that you cannot overwrite<br />
<a href="https://phabricator.kde.org/F6567497" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6567497: Screenshot_20190125_124805.png</a><br />
Editing a user color scheme, "Save As" allows to save it as a new theme, Apply just applies the changes to the edited theme<br />
<a href="https://phabricator.kde.org/F6567498" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6567498: Screenshot_20190125_124815.png</a></p>

<p>The Apply button is only shown when the <tt style="background: #ebebeb; font-size: 13px;">--overwrite</tt> option is passed to kcolorscheme, passed by the KCM for user themes. I just figured, perhaps it makes more sense to check file permissions (it only does that once you actually hit Save) and show the Apply button based on that</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18519">https://phabricator.kde.org/D18519</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kcms/colors/editor/kcolorschemeeditor.cpp<br />
kcms/colors/editor/scmeditordialog.cpp<br />
kcms/colors/editor/scmeditordialog.h</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, VDG<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>