diff --git a/ZeroTierUI/mainwindow.cpp b/ZeroTierUI/mainwindow.cpp index fdc70f748..255b3989b 100644 --- a/ZeroTierUI/mainwindow.cpp +++ b/ZeroTierUI/mainwindow.cpp @@ -20,6 +20,7 @@ #include #include #include +#include // Globally visible ZeroTier::Node::LocalClient *zeroTierClient = (ZeroTier::Node::LocalClient *)0; @@ -57,6 +58,9 @@ MainWindow::MainWindow(QWidget *parent) : mainWindow = this; this->cyclesSinceResponseFromService = 0; + if (ui->networkListWidget->verticalScrollBar()) + ui->networkListWidget->verticalScrollBar()->setSingleStep(8); + QWidgetList widgets = this->findChildren(); foreach(QWidget* widget, widgets) widget->setAttribute(Qt::WA_MacShowFocusRect,false); diff --git a/ZeroTierUI/mainwindow.ui b/ZeroTierUI/mainwindow.ui index c9ca7f8d5..197f9bdb9 100644 --- a/ZeroTierUI/mainwindow.ui +++ b/ZeroTierUI/mainwindow.ui @@ -40,10 +40,14 @@ Qt::NoFocus - QListWidget#networkListWidget::Item { - background-color: rgba(0,0,0,10); + QListWidget#networkListWidget { + background-color: rgba(0,0,0,33); +} + +QListWidget#networkListWidget::Item { + background-color: palette(base); padding: 0; - margin: 0 0.15em 0.15em 0.15em; + margin: 0 0 0.25em 0; } @@ -61,6 +65,9 @@ QAbstractItemView::NoSelection + + QAbstractItemView::ScrollPerPixel + 0 @@ -186,7 +193,7 @@ s true - ################ + (Network ID) diff --git a/ZeroTierUI/networkwidget.ui b/ZeroTierUI/networkwidget.ui index 07eb253cd..52cb95790 100644 --- a/ZeroTierUI/networkwidget.ui +++ b/ZeroTierUI/networkwidget.ui @@ -27,13 +27,13 @@ 0 - 0 + 5 0 - 0 + 5 0 @@ -413,7 +413,7 @@ QPushButton:pressed { QListWidget { - background-color: rgba(0,0,0,5); + background-color: rgba(0,0,0,10); } QListWidget:hover {