From 7a336af56c995cdd2ae4057dd4fb7ae1eabc0366 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Mon, 6 Aug 2018 10:46:19 -0400 Subject: [PATCH] change gui style --- GUI/mainwindow.cpp | 12 +++--------- GUI/mainwindow.ui | 38 +++++++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 0b92d9f..9c16319 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -52,14 +52,8 @@ MainWindow::MainWindow(QWidget *parent) : ui->setupUi(this); mainWindow = this; processCombo = mainWindow->findChild("processCombo"); - processCombo->lineEdit()->setAlignment(Qt::AlignHCenter); - processCombo->lineEdit()->setReadOnly(true); ttCombo = mainWindow->findChild("ttCombo"); - ttCombo->lineEdit()->setAlignment(Qt::AlignHCenter); - ttCombo->lineEdit()->setReadOnly(true); extenCombo = mainWindow->findChild("extenCombo"); - extenCombo->lineEdit()->setAlignment(Qt::AlignHCenter); - extenCombo->lineEdit()->setReadOnly(true); textOutput = mainWindow->findChild("textOutput"); hostSignaller->Initialize(); @@ -69,7 +63,7 @@ MainWindow::MainWindow(QWidget *parent) : connect(hostSignaller, &HostSignaller::RemoveThread, this, &MainWindow::RemoveThread); connect(this, &MainWindow::ThreadOutputReceived, this, &MainWindow::ThreadOutput); std::map extensions = LoadExtensions(); - for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ":" + i.second); + for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ": " + i.second); Host::Open(); Host::AddConsoleOutput(L"NextHooker beta v2.1.0 by Artikash\r\nSource code and more information available under GPLv3 at https://github.com/Artikash/NextHooker"); } @@ -243,7 +237,7 @@ void MainWindow::on_addExtenButton_clicked() QFile::copy(extenFileName, copyTo); extenCombo->clear(); std::map extensions = LoadExtensions(); - for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ":" + i.second); + for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ": " + i.second); } void MainWindow::on_rmvExtenButton_clicked() @@ -254,5 +248,5 @@ void MainWindow::on_rmvExtenButton_clicked() DeleteFileW(extenFileName.toStdWString().c_str()); extenCombo->clear(); std::map extensions = LoadExtensions(); - for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ":" + i.second); + for (auto i : extensions) extenCombo->addItem(QString::number(i.first) + ": " + i.second); } diff --git a/GUI/mainwindow.ui b/GUI/mainwindow.ui index 191844b..0123a7e 100644 --- a/GUI/mainwindow.ui +++ b/GUI/mainwindow.ui @@ -16,14 +16,27 @@ 0 - - - 10 - - NextHooker + + QObject +{ + font: 11pt "MS Shell Dlg 2"; +} +#textOutput +{ + font: 14pt "MS Shell Dlg 2"; +} +QPushButton, QComboBox +{ + padding-top: 2px; + padding-bottom: 2px; + padding-right: 10px; + padding-left: 10px; + text-align: left; +} + @@ -42,7 +55,7 @@ - 2 + 0 0 @@ -98,7 +111,7 @@ - true + false QComboBox::InsertAtBottom @@ -186,7 +199,7 @@ - true + false @@ -240,7 +253,7 @@ - true + false 50 @@ -255,11 +268,6 @@ 0 - - - 12 - - true @@ -276,7 +284,7 @@ 0 0 949 - 20 + 24