aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/rtp_stream_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2020-10-16 10:33:50 -0700
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2020-10-16 23:12:17 +0000
commit5b8a54ab14f9f374088abcb3952012974c7abc99 (patch)
tree8d1a059474b8ea3f0f6eb43ff8753661fba192f2 /ui/qt/rtp_stream_dialog.cpp
parent6c4a798307346668cbbece68ce9b531596816ba4 (diff)
Qt: Add a dark mode warning background.
Add ColorUtils::warningBackground, which returns a theme-appropriate background color for warnings. Use it where needed.
Diffstat (limited to 'ui/qt/rtp_stream_dialog.cpp')
-rw-r--r--ui/qt/rtp_stream_dialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/qt/rtp_stream_dialog.cpp b/ui/qt/rtp_stream_dialog.cpp
index 39e2020627..e40835ea26 100644
--- a/ui/qt/rtp_stream_dialog.cpp
+++ b/ui/qt/rtp_stream_dialog.cpp
@@ -30,7 +30,7 @@
#include <QTreeWidgetItem>
#include <QTreeWidgetItemIterator>
-#include <ui/qt/utils/tango_colors.h>
+#include <ui/qt/utils/color_utils.h>
/*
* @file RTP stream dialog
@@ -105,8 +105,8 @@ public:
if (calc.problem) {
setText(status_col_, UTF8_BULLET);
setTextAlignment(status_col_, Qt::AlignCenter);
- QColor bgColor(ws_css_warn_background);
- QColor textColor(ws_css_warn_text);
+ QColor bgColor(ColorUtils::warningBackground());
+ QColor textColor(QApplication::palette().text().color());
for (int i = 0; i < columnCount(); i++) {
QBrush bgBrush = background(i);
bgBrush.setColor(bgColor);