qtui: Rework the attention state behavior of the tray icon
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 14 Jun 2018 22:59:15 +0000 (00:59 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 15 Jun 2018 23:30:32 +0000 (01:30 +0200)
commita888a2886dc1466eb0b1bb3591f43350623c6330
tree896f154407f6fd8050f2015c4771e9fd27efeade
parentafa02bdf0056f9e876b906b3597bd9c83e1368bb
qtui: Rework the attention state behavior of the tray icon

Move the attention behavior handling into the SystemTray base class,
which now determines the correct icon names to display based on
the tray state and notification settings. Systray implementations
now just react on signals from the base class to update their
icons accordingly.

Extend the systray notification settings to allow for a more fine-
grained configuration. Users can now choose if the tray should be
alerted at all, and if so, if the tray icon should change color or
even blink instead of relying on the visualizer's default.

This now works with both StatusNotifierItem and the legacy tray.

Supersedes and closes GH-327.
src/qtui/CMakeLists.txt
src/qtui/knotificationbackend.cpp
src/qtui/legacysystemtray.cpp
src/qtui/legacysystemtray.h
src/qtui/statusnotifieritem.cpp
src/qtui/systemtray.cpp
src/qtui/systemtray.h
src/qtui/systrayanimationnotificationbackend.cpp
src/qtui/systrayanimationnotificationbackend.h
src/qtui/ui/systrayanimationconfigwidget.ui [new file with mode: 0644]