UI appearance tweaks.

This commit is contained in:
Adam Ierymenko 2014-01-27 14:55:56 -08:00
parent afbbf61588
commit e0cb5caef2
5 changed files with 76 additions and 16 deletions

View File

@ -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">

View File

@ -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());
}

View File

@ -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;

View File

@ -95,6 +95,24 @@
</property>
</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">
@ -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>

View File

@ -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);
}
QLabel.networkName {
padding: 0 0.8em 0.1em 0;
margin: 0;
text-align: right;
QStatusBar {
background: palette(button);
}
QStatusBar {
background: palette(button);
QLabel.networkName {
padding: 0;
margin: 0;
}
#networkIdButton {
padding: 0.2em 0 0 0;
}
#joinNetworkButton {
@ -86,8 +89,8 @@ QStatusBar {
}
#noNetworksLabel {
background: transparent;
color: #ffffff;
background: transparent;
color: #ffffff;
}
#networkListWidget {