graesslin created this revision. graesslin added reviewers: KWin, Plasma on Wayland, broulik. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY The effect exports itself to DBus as object "/ColorPicker" and provides an own interface "org.kde.kwin.ColorPicker". It has one exported method to DBus "pick" which returns a QColor. When invoked an interactive position picking selection is started. If it ends the effect reads the color value at the picked position from the OpenGL color buffer. This implements https://phabricator.kde.org/T4568. REPOSITORY rKWIN KWin BRANCH color-picker-effect REVISION DETAIL https://phabricator.kde.org/D3480 AFFECTED FILES autotests/test_builtin_effectloader.cpp autotests/test_plugin_effectloader.cpp autotests/test_scripted_effectloader.cpp effects/CMakeLists.txt effects/colorpicker/colorpicker.cpp effects/colorpicker/colorpicker.h effects/effect_builtins.cpp effects/effect_builtins.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma_on_wayland, broulik Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas