summaryrefslogtreecommitdiff
path: root/ZeroTierUI
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-01-27 14:55:56 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-01-27 14:55:56 -0800
commite0cb5caef21243cf045cecc25ed064869d1594d4 (patch)
tree7780a5bc1efa75d158d741c40e9643933cd95e03 /ZeroTierUI
parentafbbf615882b75171e05ca12e64697ec322d8ff7 (diff)
downloadinfinitytier-e0cb5caef21243cf045cecc25ed064869d1594d4.tar.gz
infinitytier-e0cb5caef21243cf045cecc25ed064869d1594d4.zip
UI appearance tweaks.
Diffstat (limited to 'ZeroTierUI')
-rw-r--r--ZeroTierUI/mainwindow.ui6
-rw-r--r--ZeroTierUI/networkwidget.cpp10
-rw-r--r--ZeroTierUI/networkwidget.h1
-rw-r--r--ZeroTierUI/networkwidget.ui54
-rw-r--r--ZeroTierUI/stylesheet.css17
5 files changed, 74 insertions, 14 deletions
diff --git a/ZeroTierUI/mainwindow.ui b/ZeroTierUI/mainwindow.ui
index 913f2683..235eb48d 100644
--- a/ZeroTierUI/mainwindow.ui
+++ b/ZeroTierUI/mainwindow.ui
@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
- <width>668</width>
+ <width>720</width>
<height>300</height>
</rect>
</property>
@@ -229,8 +229,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>668</width>
- <height>24</height>
+ <width>720</width>
+ <height>22</height>
</rect>
</property>
<property name="font">
diff --git a/ZeroTierUI/networkwidget.cpp b/ZeroTierUI/networkwidget.cpp
index bdc18d92..a99fef1e 100644
--- a/ZeroTierUI/networkwidget.cpp
+++ b/ZeroTierUI/networkwidget.cpp
@@ -159,6 +159,12 @@ void NetworkWidget::on_networkIdButton_clicked()
void NetworkWidget::on_ipListWidget_itemActivated(QListWidgetItem *item)
{
- if (item)
- QApplication::clipboard()->setText(item->text());
+ if (item)
+ QApplication::clipboard()->setText(item->text());
+}
+
+void NetworkWidget::on_ipListWidget_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous)
+{
+ if (current)
+ QApplication::clipboard()->setText(current->text());
}
diff --git a/ZeroTierUI/networkwidget.h b/ZeroTierUI/networkwidget.h
index f46dff20..9ff1ef99 100644
--- a/ZeroTierUI/networkwidget.h
+++ b/ZeroTierUI/networkwidget.h
@@ -57,6 +57,7 @@ private slots:
void on_leaveNetworkButton_clicked();
void on_networkIdButton_clicked();
void on_ipListWidget_itemActivated(QListWidgetItem *item);
+ void on_ipListWidget_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
private:
Ui::NetworkWidget *ui;
diff --git a/ZeroTierUI/networkwidget.ui b/ZeroTierUI/networkwidget.ui
index c4bf9734..a4acaf1e 100644
--- a/ZeroTierUI/networkwidget.ui
+++ b/ZeroTierUI/networkwidget.ui
@@ -96,6 +96,24 @@
</widget>
</item>
<item>
+ <widget class="QLabel" name="label_2">
+ <property name="font">
+ <font>
+ <pointsize>14</pointsize>
+ </font>
+ </property>
+ <property name="text">
+ <string>[</string>
+ </property>
+ <property name="textFormat">
+ <enum>Qt::PlainText</enum>
+ </property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
+ </widget>
+ </item>
+ <item>
<widget class="QLabel" name="nameLabel">
<property name="font">
<font>
@@ -114,7 +132,7 @@
<enum>Qt::PlainText</enum>
</property>
<property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="textInteractionFlags">
<set>Qt::NoTextInteraction</set>
@@ -124,6 +142,37 @@
</property>
</widget>
</item>
+ <item>
+ <widget class="QLabel" name="label_3">
+ <property name="font">
+ <font>
+ <pointsize>14</pointsize>
+ </font>
+ </property>
+ <property name="text">
+ <string>]</string>
+ </property>
+ <property name="textFormat">
+ <enum>Qt::PlainText</enum>
+ </property>
+ <property name="textInteractionFlags">
+ <set>Qt::NoTextInteraction</set>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_3">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
</layout>
</widget>
</item>
@@ -384,6 +433,7 @@
</property>
<property name="font">
<font>
+ <pointsize>12</pointsize>
<underline>false</underline>
</font>
</property>
@@ -419,7 +469,7 @@
</font>
</property>
<property name="statusTip">
- <string>Double-click an IP to copy it to the clipboard.</string>
+ <string>IP addresses assigned to this interface; click to copy to clipboard.</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
diff --git a/ZeroTierUI/stylesheet.css b/ZeroTierUI/stylesheet.css
index c8764ea2..9639f2b5 100644
--- a/ZeroTierUI/stylesheet.css
+++ b/ZeroTierUI/stylesheet.css
@@ -11,7 +11,7 @@ QToolButton:focus {
}
QToolButton:hover {
background: palette(highlight);
- color: palette(highlight-text);
+ color: palette(highlight-text);
}
QToolButton:pressed {
border: 1px solid #000000;
@@ -70,14 +70,17 @@ QListWidget.ipAddressList::item:hover {
border-bottom: 1px solid palette(link);
}
+QStatusBar {
+ background: palette(button);
+}
+
QLabel.networkName {
- padding: 0 0.8em 0.1em 0;
+ padding: 0;
margin: 0;
- text-align: right;
}
-QStatusBar {
- background: palette(button);
+#networkIdButton {
+ padding: 0.2em 0 0 0;
}
#joinNetworkButton {
@@ -86,8 +89,8 @@ QStatusBar {
}
#noNetworksLabel {
- background: transparent;
- color: #ffffff;
+ background: transparent;
+ color: #ffffff;
}
#networkListWidget {