diff --git a/application/appRc.qrc b/application/appRc.qrc
index 8954102..dda944f 100644
--- a/application/appRc.qrc
+++ b/application/appRc.qrc
@@ -2,5 +2,6 @@
icons/login_32.png
icons/login_64.png
+ style.css
diff --git a/application/mainwindow.cpp b/application/mainwindow.cpp
index 2d26eb6..85e65ec 100644
--- a/application/mainwindow.cpp
+++ b/application/mainwindow.cpp
@@ -18,6 +18,13 @@ MainWindow::MainWindow(QWidget *parent) :
m_loginDialog = new LoginDialog(this);
+ QFile styleFile(":/style.css");
+
+ if (styleFile.open(QIODevice::ReadOnly | QIODevice::Text))
+ {
+ this->setStyleSheet(styleFile.readAll());
+ }
+
connect(m_loginDialog, &LoginDialog::accepted, [this]{
PermissionService service;
QSharedPointer u = service.loadUser(m_loginDialog->login());
diff --git a/application/mainwindow.ui b/application/mainwindow.ui
index 901b429..35c69a0 100644
--- a/application/mainwindow.ui
+++ b/application/mainwindow.ui
@@ -21,6 +21,9 @@
0
+
+ 0
+
-
@@ -53,7 +56,7 @@
0
0
1000
- 19
+ 21