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 + +