summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-03-08 14:05:54 (GMT)
committerKevin Smith <kevin.smith@isode.com>2016-03-09 09:25:42 (GMT)
commit773809781e97e9814e46855fe57d270c28626843 (patch)
tree4ef24f236629ab76cdc170e95158927fb6768dba /Swift/QtUI
parent54728cf0febb7d68d31a9ac11eeb98ba4f3d1ece (diff)
downloadswift-773809781e97e9814e46855fe57d270c28626843.zip
swift-773809781e97e9814e46855fe57d270c28626843.tar.bz2
Fix warning coloring of chat input field
The previous stylesheet was too generic, as it applied on all widgets and sub widgets, including a potential context menu. This fix will only color alerts and the text input in the warning color. Potential context menus are colored according to the application style. Test-Information: Tested alert colors and text input color on OS X 10.11.3 with Qt 5.4.2. Change-Id: I0d1f704f4eacddf41befb7dfbc8bbf7ef28f88ce
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index a9bc2b5..5c4723d 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -76,7 +76,7 @@ QtChatWindow::QtChatWindow(const QString& contact, QtChatTheme* theme, UIEventSt
assert(settings);
setAcceptDrops(true);
- alertStyleSheet_ = "background: rgb(255, 255, 153); color: black";
+ alertStyleSheet_ = ".QWidget, QTextEdit { background: rgb(255, 255, 153); color: black }";
QBoxLayout *layout = new QBoxLayout(QBoxLayout::TopToBottom, this);
layout->setContentsMargins(0,0,0,0);