Try to make it more obvious that you can select unselected task list
authorGerald Combs <gerald@wireshark.org>
Wed, 19 Jun 2013 18:48:20 +0000 (18:48 -0000)
committerGerald Combs <gerald@wireshark.org>
Wed, 19 Jun 2013 18:48:20 +0000 (18:48 -0000)
items.

svn path=/trunk/; revision=50052

ui/qt/main_welcome.cpp

index e2c17a3907a3a6526d3ab29c6c701a09fd2c48ab..04fa37a4e8d9c096fc940ff77edc8098b403780f 100644 (file)
@@ -103,20 +103,23 @@ MainWelcome::MainWelcome(QWidget *parent) :
     welcome_ui_->interfaceTree->setAttribute(Qt::WA_MacShowFocusRect, false);
 #endif
 
-    task_list_->setStyleSheet(
-                "QListWidget {"
-                "  margin-right: 2em;"
-                "}"
-                "QListWidget::item {"
-                "  padding: 1.5em;"
-                "  margin-bottom: 1em;"
-                "  border-radius: 0.5em;"
-                "}"
-//                "QListWidget::item:hover {"
-//                "  background-color: palette(midlight);"
-//                "  background-color: palette(midlight);"
-//                "}"
-                );
+    task_list_->setStyleSheet(QString(
+                                  "QListWidget {"
+                                  "  margin-right: 2em;"
+                                  "}"
+                                  "QListWidget::item {"
+                                  "  padding: 1.5em;"
+                                  "  margin-bottom: 1em;"
+                                  "  border-radius: 0.5em;"
+                                  "  border: 1px solid #%1;"
+                                  "}"
+                                  "QListWidget::item::selected {"
+                                  "  border: 1px solid #%2;"
+                                  "}"
+                                  )
+                              .arg(tango_aluminium_2, 6, 16, QChar('0'))   // Default border
+                              .arg(tango_sky_blue_4,  6, 16, QChar('0'))   // Selected border
+                              );
 
     recent_files_->setStyleSheet(
             "QListWidget::item {"