D7500: Event view can use the CollectionColorAttribute color
Olivier Churlaud
noreply at phabricator.kde.org
Thu Aug 24 07:04:32 BST 2017
ochurlaud created this revision.
Restricted Application added a project: KDE PIM.
REVISION SUMMARY
This introduces 3 changes in Helper:
- 3 Helper functions are now exported
- resourceColor() checks if a color is set in the preferences files. If yes, it uses it. If not, it checks if there is a CollectionColorAttribute in the collection. If yes, it uses it else it call the resourceColor() from prefs (that can create a new color or return an invalid one)
- setResourceColor() set a color in the preferences files ONLY IF it's not the same as the CollectionColor Attribute.
REPOSITORY
R76 PIM: Event Views
REVISION DETAIL
https://phabricator.kde.org/D7500
AFFECTED FILES
src/CMakeLists.txt
src/helper.cpp
src/helper.h
src/prefs.cpp
To: ochurlaud, dvratil
Cc: #kde_pim, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170824/a5b9bdcd/attachment.html>
More information about the kde-pim
mailing list