From 4c971ef8e8afcaf0d918db6d10181fc26cb7d490 Mon Sep 17 00:00:00 2001 From: xarkes Date: Tue, 24 Oct 2017 10:03:05 +0200 Subject: [PATCH] Moved theme selection in submenu --- src/MainWindow.cpp | 1 + src/MainWindow.ui | 22 ++++++++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index bba29000..41d77d79 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -451,6 +451,7 @@ void MainWindow::readSettings() void MainWindow::dark() { qApp->setStyleSheet("QPlainTextEdit { background-color: rgb(64, 64, 64); color: rgb(222, 222, 222);} QTextEdit { background-color: rgb(64, 64, 64); color: rgb(222, 222, 222);} "); + // Call Config() rather than QSettings QSettings settings; settings.setValue("dark", true); diff --git a/src/MainWindow.ui b/src/MainWindow.ui index c8927e80..1175c02b 100644 --- a/src/MainWindow.ui +++ b/src/MainWindow.ui @@ -174,7 +174,7 @@ border-top: 0px; 0 0 1013 - 22 + 20 @@ -188,8 +188,8 @@ border-top: 0px; 419 265 - 173 - 206 + 148 + 190 @@ -220,6 +220,13 @@ border-top: 0px; false + + + Theme + + + + @@ -228,10 +235,8 @@ border-top: 0px; - - - + @@ -988,6 +993,11 @@ QToolButton .svg-icon path { Save As... + + + Tmp + +