mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-24 07:06:39 +00:00
More UI tweaks...
This commit is contained in:
parent
f311be96a9
commit
704ee6f6c7
@ -20,6 +20,7 @@
|
|||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
#include <QScrollBar>
|
||||||
|
|
||||||
// Globally visible
|
// Globally visible
|
||||||
ZeroTier::Node::LocalClient *zeroTierClient = (ZeroTier::Node::LocalClient *)0;
|
ZeroTier::Node::LocalClient *zeroTierClient = (ZeroTier::Node::LocalClient *)0;
|
||||||
@ -57,6 +58,9 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
mainWindow = this;
|
mainWindow = this;
|
||||||
this->cyclesSinceResponseFromService = 0;
|
this->cyclesSinceResponseFromService = 0;
|
||||||
|
|
||||||
|
if (ui->networkListWidget->verticalScrollBar())
|
||||||
|
ui->networkListWidget->verticalScrollBar()->setSingleStep(8);
|
||||||
|
|
||||||
QWidgetList widgets = this->findChildren<QWidget*>();
|
QWidgetList widgets = this->findChildren<QWidget*>();
|
||||||
foreach(QWidget* widget, widgets)
|
foreach(QWidget* widget, widgets)
|
||||||
widget->setAttribute(Qt::WA_MacShowFocusRect,false);
|
widget->setAttribute(Qt::WA_MacShowFocusRect,false);
|
||||||
|
@ -40,10 +40,14 @@
|
|||||||
<enum>Qt::NoFocus</enum>
|
<enum>Qt::NoFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">QListWidget#networkListWidget::Item {
|
<string notr="true">QListWidget#networkListWidget {
|
||||||
background-color: rgba(0,0,0,10);
|
background-color: rgba(0,0,0,33);
|
||||||
|
}
|
||||||
|
|
||||||
|
QListWidget#networkListWidget::Item {
|
||||||
|
background-color: palette(base);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0 0.15em 0.15em 0.15em;
|
margin: 0 0 0.25em 0;
|
||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
@ -61,6 +65,9 @@
|
|||||||
<property name="selectionMode">
|
<property name="selectionMode">
|
||||||
<enum>QAbstractItemView::NoSelection</enum>
|
<enum>QAbstractItemView::NoSelection</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="verticalScrollMode">
|
||||||
|
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
||||||
|
</property>
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
@ -186,7 +193,7 @@ s</string>
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="placeholderText">
|
<property name="placeholderText">
|
||||||
<string>################</string>
|
<string>(Network ID)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -27,13 +27,13 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>0</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>0</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
@ -413,7 +413,7 @@ QPushButton:pressed {
|
|||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">QListWidget {
|
<string notr="true">QListWidget {
|
||||||
background-color: rgba(0,0,0,5);
|
background-color: rgba(0,0,0,10);
|
||||||
}
|
}
|
||||||
|
|
||||||
QListWidget:hover {
|
QListWidget:hover {
|
||||||
|
Loading…
Reference in New Issue
Block a user