From 773809781e97e9814e46855fe57d270c28626843 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Tue, 8 Mar 2016 14:05:54 +0000 Subject: 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 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); -- cgit v0.10.2-6-g49f6