summary refs log tree commit diff
path: root/src/TypingDisplay.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-08 12:51:40 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-08 12:51:40 +0300
commit8d3ef470f9b40c891f700626a5adb7efa7602994 (patch)
tree527b8deaa7ce3c223bf71ebf431ef4529e5c24eb /src/TypingDisplay.h
parentAdd flatpak installation (diff)
downloadnheko-8d3ef470f9b40c891f700626a5adb7efa7602994.tar.xz
Remove hardcoded colors from the typing display
Diffstat (limited to 'src/TypingDisplay.h')
-rw-r--r--src/TypingDisplay.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/TypingDisplay.h b/src/TypingDisplay.h

index db8a9519..d5e2f29c 100644 --- a/src/TypingDisplay.h +++ b/src/TypingDisplay.h
@@ -7,15 +7,20 @@ class TypingDisplay : public QWidget { Q_OBJECT + Q_PROPERTY(QColor textColor WRITE setTextColor READ textColor) + public: TypingDisplay(QWidget *parent = nullptr); void setUsers(const QStringList &user_ids); + void setTextColor(const QColor &color) { textColor_ = color; }; + QColor textColor() const { return textColor_; }; + protected: void paintEvent(QPaintEvent *event) override; private: + QColor textColor_; QString text_; - int leftPadding_; };