davidedmundson added a comment.
> QML can use C++ functions right? Would we still need to make property bindings for all the colors if we had color() functions? C++ functions can be exposed to QML. However: color: myObject.color(fooBar); has one behaviour big behavioural difference to color: myObject.fooBarColor; The former won't know when to update, the latter can. 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. Extending QPalette would be the ideal solution to that. TASK DETAIL https://phabricator.kde.org/T12567 To: ndavis, davidedmundson Cc: 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