Make backgrounds of ChatLines and ChatItems styleable
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 21 Jun 2009 19:23:40 +0000 (21:23 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:25:05 +0000 (20:25 +0200)
commit2c16b8e356817cb4a4bf7fcd59c0c7429b0100e1
tree39c8e767a9517b31f1dff425165deb65198bf598
parenta507ecd831054ca9b3845985ae7ca3d33fad908d
Make backgrounds of ChatLines and ChatItems styleable

The background color (set by UiStyle) is now available in the MessageModel
via the BackgroundRole. It is used by the items to paint themselves, if it is
set by a stylesheet.

Message labels (so far, we support "highlight" and "own message") are also respected
properly. They can be accessed via the MsgLabelRole and are now used for accessing the style
engine.
src/client/messagemodel.h
src/qtui/chatitem.cpp
src/qtui/chatline.cpp
src/qtui/chatlinemodel.h
src/qtui/chatlinemodelitem.cpp
src/qtui/chatlinemodelitem.h
src/uisupport/uistyle.cpp
src/uisupport/uistyle.h