From a79f614e12b2c7b7bb4fb2716d09b5abe896aca7 Mon Sep 17 00:00:00 2001 From: hypnosis-i2p Date: Mon, 31 Jul 2017 09:58:54 +0800 Subject: [PATCH] qt ui - now pixel perfect buttons --- qt/i2pd_qt/mainwindow.cpp | 8 ++--- qt/i2pd_qt/mainwindow.ui | 8 ++--- qt/i2pd_qt/statusbuttons.ui | 64 ++++++++++++++++++++++++++++++++++--- 3 files changed, 67 insertions(+), 13 deletions(-) diff --git a/qt/i2pd_qt/mainwindow.cpp b/qt/i2pd_qt/mainwindow.cpp index a4afe6a3..840f5b5b 100644 --- a/qt/i2pd_qt/mainwindow.cpp +++ b/qt/i2pd_qt/mainwindow.cpp @@ -40,10 +40,10 @@ MainWindow::MainWindow(QWidget *parent) : { ui->setupUi(this); statusButtonsUI->setupUi(ui->statusButtonsPane); - ui->statusButtonsPane->setFixedSize(172,300); - ui->verticalLayout->setGeometry(QRect(0,0,172,ui->verticalLayout->geometry().height())); - ui->statusButtonsPane->adjustSize(); - ui->centralWidget->adjustSize(); + ui->statusButtonsPane->setFixedSize(171,300); + ui->verticalLayout->setGeometry(QRect(0,0,171,ui->verticalLayout->geometry().height())); + //ui->statusButtonsPane->adjustSize(); + //ui->centralWidget->adjustSize(); setWindowTitle(QApplication::translate("AppTitle","I2PD")); //TODO handle resizes and change the below into resize() call diff --git a/qt/i2pd_qt/mainwindow.ui b/qt/i2pd_qt/mainwindow.ui index afbef9a3..60aacbe2 100644 --- a/qt/i2pd_qt/mainwindow.ui +++ b/qt/i2pd_qt/mainwindow.ui @@ -83,7 +83,7 @@ - + 0 0 @@ -146,7 +146,7 @@ - 172 + 171 0 @@ -260,7 +260,7 @@ - Settings + General settings @@ -3061,7 +3061,7 @@ Comma separated list of base64 identities: - Tunnels + Tunnels settings diff --git a/qt/i2pd_qt/statusbuttons.ui b/qt/i2pd_qt/statusbuttons.ui index 79461cd4..edf5a90c 100644 --- a/qt/i2pd_qt/statusbuttons.ui +++ b/qt/i2pd_qt/statusbuttons.ui @@ -6,7 +6,7 @@ 0 0 - 170 + 171 295 @@ -18,7 +18,7 @@ - 170 + 171 295 @@ -28,10 +28,10 @@ - 20 + 21 0 - 151 - 301 + 171 + 300 @@ -40,6 +40,12 @@ + + + 150 + 16777215 + + Main page @@ -47,6 +53,12 @@ + + + 150 + 16777215 + + Router commands @@ -54,6 +66,12 @@ + + + 150 + 16777215 + + Local destinations @@ -61,6 +79,12 @@ + + + 150 + 16777215 + + Leasesets @@ -68,6 +92,12 @@ + + + 150 + 16777215 + + Tunnels @@ -75,6 +105,12 @@ + + + 150 + 16777215 + + Transit tunnels @@ -82,6 +118,12 @@ + + + 150 + 16777215 + + Transports @@ -89,6 +131,12 @@ + + + 150 + 16777215 + + I2P tunnels @@ -96,6 +144,12 @@ + + + 150 + 16777215 + + SAM sessions