<table><tr><td style="">davidedmundson added a comment.
</td></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>QML can use C++ functions right? Would we still need to make property bindings for all the colors if we had color() functions?</p></blockquote>

<p>C++ functions can be exposed to QML.</p>

<p>However:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">color: myObject.color(fooBar);</pre></div>

<p>has one behaviour big behavioural difference to</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">color: myObject.fooBarColor;</pre></div>

<p>The former won't know when to update, the latter can.</p>

<p>As for the duplication a lot is simply down to layering and dependency issues of the time. If we can move this, then we're sorted.<br />
Extending QPalette would be the ideal solution to that.</p></div></div><br /><div><strong>TASK DETAIL</strong><div><a href="https://phabricator.kde.org/T12567">https://phabricator.kde.org/T12567</a></div></div><br /><div><strong>To: </strong>ndavis, davidedmundson<br /><strong>Cc: </strong>davidedmundson, ognarb, plasma-devel, kde-frameworks-devel, ndavis, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, davidre, fbampaloukas, GB_2, ekasprzak, ragreen, domson, michaelh, ahmadsamir, dkardarakos, ZrenBot, ngraham, bruns, alexeymin, kpiwowarski, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, asturmlechner, jucato, cfeck, abetts, cgiboudeaux, cullmann, vkrause, sebas, cordlandwehr, apol, ahiemstra, mart, hein, knauss, dfaure<br /></div>