From 78a4be5eb2cf145ddaa850aaa5b36778466605b1 Mon Sep 17 00:00:00 2001 From: Florian Bury Date: Sun, 18 Oct 2015 12:10:37 +0200 Subject: [PATCH 1/4] Fix a Bug where it doesn't saved the latest mainWIdow size --- mainwindow.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index aed23a6..785e303 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -587,6 +587,11 @@ void MainWindow::prepareResize(QMouseEvent *event) { void MainWindow::mouseReleaseEvent(QMouseEvent *event) { + if(resizeHeightEnabled||resizeWidthEnabled||resizeWidthEnabledInv) { + resizeTimer.start(1000); + qDebug() << "Start Tiemr"; + } + dragEnabled = false; resizeHeightEnabled = false; resizeWidthEnabled = false; @@ -607,15 +612,9 @@ void MainWindow::mouseDoubleClickEvent(QMouseEvent *event) void MainWindow::resizeDone() { - /* - if(currentView==0){ - db.updateIntPref("minviewWidth", this->width()); - db.updateIntPref("minviewHeight", this->height()); - } else */ - { - db.updateIntPref("defaultviewWidth", this->width()); - db.updateIntPref("defaultviewHeight", this->height()); - } + + db.updateIntPref("defaultviewWidth", this->width()); + db.updateIntPref("defaultviewHeight", this->height()); } void MainWindow::mouseMoveEvent(QMouseEvent *event) From 689cd8568e1534e0adcbe0d23a61334b78029f41 Mon Sep 17 00:00:00 2001 From: Florian Bury Date: Sun, 18 Oct 2015 12:11:26 +0200 Subject: [PATCH 2/4] Change the Style of Dialogs Make the Buttons less 3D Add Blue BG to all Dialogs --- stylesheet.qss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stylesheet.qss b/stylesheet.qss index 43bf833..24e1005 100644 --- a/stylesheet.qss +++ b/stylesheet.qss @@ -52,10 +52,15 @@ background-color: #3fc1f4; background:#1DAEE1; } -#MainWindow { +#MainWindow, QDialog { background:#1DAEE1; } +QPushButton { + background:#dadada; + border: 1px solid #eee; + padding: 3px 13px; +} FGameWidget #fgwDialog_GameTitle{ font-size:14pt; @@ -130,6 +135,8 @@ QScrollBar::down-button:vertical, #gameScrollArea::up-button:vertical{ #w_globalButtons QPushButton{ border-radius: 28px; + border: 0px solid #eee; + padding: 0; width:56px; height:56px; background: #1DAAE1; From f49e2beb6e50c9c710d40d2d25e177be2db1497e Mon Sep 17 00:00:00 2001 From: Florian Bury Date: Sun, 18 Oct 2015 13:22:29 +0200 Subject: [PATCH 3/4] Fix the Textcolor in mainwindow --- stylesheet.qss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stylesheet.qss b/stylesheet.qss index 43bf833..e064a54 100644 --- a/stylesheet.qss +++ b/stylesheet.qss @@ -76,6 +76,10 @@ FGameWidget #fgwDialog_Background[gameSelected="true"] { color: #2DAAE1; } +#w_mainInfo { + color: #2DAAE1; +} + #gameScrollArea, #scrollAreaWidgetContents, #gameListWidget { background: transparent; From 03cd37194c28a26b76315ee3a31160ecbce9eb3c Mon Sep 17 00:00:00 2001 From: Florian Bury Date: Sun, 18 Oct 2015 17:10:53 +0200 Subject: [PATCH 4/4] Remove Typo from field --- fsettingsdialog.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsettingsdialog.ui b/fsettingsdialog.ui index 7367c4b..f92ae24 100644 --- a/fsettingsdialog.ui +++ b/fsettingsdialog.ui @@ -256,7 +256,7 @@ - +