From f8daf498a03e15e72cd1aecceaedbd04ee50d934 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 12 Oct 2015 09:20:14 -0700 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- ui/qt/main_welcome.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'ui/qt') 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( -- cgit v1.2.3