aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main_welcome.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-10-12 09:20:14 -0700
committerGerald Combs <gerald@wireshark.org>2015-10-12 19:17:15 +0000
commitf8daf498a03e15e72cd1aecceaedbd04ee50d934 (patch)
tree79ec23a33748086c35a17385e9765aa89246e132 /ui/qt/main_welcome.cpp
parent2eb7e879f414b1f415e0c79ae9a4f7b3d2d1e77e (diff)
Use system highlight+hover colors in the welcome screen.
Don't override the highlight and hover colors in the recent file list in the main welcome screen. This appears to be a leftover from the pre-g8b24471 layout. Change-Id: Ia5239424340632f53f41f7f3067c798c882c069d Reviewed-on: https://code.wireshark.org/review/10957 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_welcome.cpp')
-rw-r--r--ui/qt/main_welcome.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/ui/qt/main_welcome.cpp b/ui/qt/main_welcome.cpp
index 442f11d9f4..b79758d0f1 100644
--- a/ui/qt/main_welcome.cpp
+++ b/ui/qt/main_welcome.cpp
@@ -63,28 +63,16 @@ MainWelcome::MainWelcome(QWidget *parent) :
" padding: 2em;"
" }"
"MainWelcome, QAbstractItemView {"
- " background-color: white;"
- " color: #%1;"
+ " background-color: palette(base);"
+ " color: palette(text);"
" }"
"QListWidget {"
" border: 0;"
"}"
- "QListWidget::item::hover {"
- " background-color: #%3;"
- " color: #%4;"
- "}"
- "QListWidget::item:selected {"
- " background-color: #%2;"
- " color: white;"
- "}"
"QTreeWidget {"
" border: 0;"
"}"
)
- .arg(tango_aluminium_6, 6, 16, QChar('0')) // Text color
- .arg(tango_sky_blue_4, 6, 16, QChar('0')) // Selected background
- .arg(tango_sky_blue_1, 6, 16, QChar('0')) // Hover background
- .arg(tango_aluminium_6, 6, 16, QChar('0')) // Hover foreground
);
QString title_ss = QString(