diff --git a/ZeroTierUI/mainwindow.ui b/ZeroTierUI/mainwindow.ui index 197f9bdb9..5bfd01b3f 100644 --- a/ZeroTierUI/mainwindow.ui +++ b/ZeroTierUI/mainwindow.ui @@ -41,13 +41,12 @@ QListWidget#networkListWidget { - background-color: rgba(0,0,0,33); + background-color: transparent; } QListWidget#networkListWidget::Item { background-color: palette(base); - padding: 0; - margin: 0 0 0.25em 0; + border: 0; } @@ -69,7 +68,7 @@ QListWidget#networkListWidget::Item { QAbstractItemView::ScrollPerPixel - 0 + 2 true @@ -118,6 +117,7 @@ QListWidget#networkListWidget::Item { border: 0; text-align: left; padding: 0 5px 0 5px; + margin: 0; background-color: transparent; } @@ -159,7 +159,9 @@ s Your network connection status. - padding: 0 0.75em 0 0.75em; + padding: 0 0.75em 0 0.75em; +margin: 0 4px 0 0; + STATUS, etc. @@ -221,15 +223,15 @@ s padding: 0 0.8em 0 0.8em; margin: 0; border: 0; - background: transparent; + background-color: rgba(0,0,0,25); } QPushButton:focus { - background-color: rgba(0,0,0,25); + background-color: rgba(0,0,0,33); } QPushButton:hover { - background-color: rgba(0,0,0,25); + background-color: rgba(0,0,0,33); } QPushButton:pressed { diff --git a/ZeroTierUI/networkwidget.cpp b/ZeroTierUI/networkwidget.cpp index 2bbd23f74..ce182c114 100644 --- a/ZeroTierUI/networkwidget.cpp +++ b/ZeroTierUI/networkwidget.cpp @@ -44,9 +44,11 @@ void NetworkWidget::setStatus(const std::string &status,const std::string &age) void NetworkWidget::setNetworkName(const std::string &name) { if (name == "?") { - ui->nameLabel->setText((QString("( ")+this->networkId().c_str())+" )"); + ui->nameLabel->setText("... waiting ..."); + ui->nameLabel->setEnabled(false); } else { ui->nameLabel->setText(QString(name.c_str())); + ui->nameLabel->setEnabled(true); } } diff --git a/ZeroTierUI/networkwidget.ui b/ZeroTierUI/networkwidget.ui index 52cb95790..a23f25b4d 100644 --- a/ZeroTierUI/networkwidget.ui +++ b/ZeroTierUI/networkwidget.ui @@ -27,13 +27,13 @@ 0 - 5 + 2 0 - 5 + 2 0 @@ -137,7 +137,7 @@ - + 0 0 @@ -145,6 +145,7 @@ Courier + 14 75 true @@ -158,6 +159,7 @@ padding: 0; margin: 0; text-align: left; + vertical-align: middle; background-color: transparent; } @@ -379,7 +381,6 @@ QPushButton:pressed { - 12 false @@ -396,6 +397,12 @@ QPushButton:pressed { + + + 0 + 0 + + 0 @@ -480,29 +487,23 @@ QListWidget:hover { 0 - - - 12 - - Leave this network. QPushButton { - border: 0; padding: 0.25em; - margin: 0; - text-align: right; - background-color: transparent; + border: 0; + margin: 2px 0 2px 0; + background-color: rgba(0,0,0,25); } QPushButton:focus { - background-color: rgba(0,0,0,25); + background-color: rgba(0,0,0,33); } QPushButton:hover { - background-color: rgba(0,0,0,25); + background-color: rgba(0,0,0,33); } QPushButton:pressed {