diff options
-rw-r--r-- | ZeroTierUI/mainwindow.cpp | 2 | ||||
-rw-r--r-- | ZeroTierUI/mainwindow.ui | 69 |
2 files changed, 70 insertions, 1 deletions
diff --git a/ZeroTierUI/mainwindow.cpp b/ZeroTierUI/mainwindow.cpp index fc434782..90c69d2a 100644 --- a/ZeroTierUI/mainwindow.cpp +++ b/ZeroTierUI/mainwindow.cpp @@ -238,6 +238,8 @@ void MainWindow::customEvent(QEvent *event) } } + ui->noNetworksLabel->setVisible(ui->networkListWidget->count() == 0); + if (this->myAddress.size()) ui->addressButton->setText(this->myAddress); else ui->addressButton->setText(" "); diff --git a/ZeroTierUI/mainwindow.ui b/ZeroTierUI/mainwindow.ui index 306e4523..d97ece8d 100644 --- a/ZeroTierUI/mainwindow.ui +++ b/ZeroTierUI/mainwindow.ui @@ -35,6 +35,73 @@ <number>0</number> </property> <item> + <widget class="QLabel" name="noNetworksLabel"> + <property name="palette"> + <palette> + <active> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="64"> + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </brush> + </colorrole> + </active> + <inactive> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="64"> + <red>0</red> + <green>0</green> + <blue>0</blue> + </color> + </brush> + </colorrole> + </inactive> + <disabled> + <colorrole role="WindowText"> + <brush brushstyle="SolidPattern"> + <color alpha="255"> + <red>127</red> + <green>127</green> + <blue>127</blue> + </color> + </brush> + </colorrole> + </disabled> + </palette> + </property> + <property name="font"> + <font> + <pointsize>16</pointsize> + </font> + </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="text"> + <string>You Have Not Joined Any Networks</string> + </property> + <property name="textFormat"> + <enum>Qt::PlainText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + <property name="margin"> + <number>25</number> + </property> + <property name="textInteractionFlags"> + <set>Qt::NoTextInteraction</set> + </property> + </widget> + </item> + <item> <widget class="QListWidget" name="networkListWidget"> <property name="focusPolicy"> <enum>Qt::NoFocus</enum> @@ -135,7 +202,7 @@ QPushButton:pressed { s</string> </property> <property name="text"> - <string> </string> + <string/> </property> <property name="flat"> <bool>true</bool> |