From 5390c0df92ccb6e2884d7bb22980f2251daec164 Mon Sep 17 00:00:00 2001 From: gitlost Date: Thu, 7 Mar 2024 14:16:22 +0000 Subject: [PATCH] GUI: factory reset: reset preview background colour also --- frontend_qt/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend_qt/mainwindow.cpp b/frontend_qt/mainwindow.cpp index fde08e0a..9365b27c 100644 --- a/frontend_qt/mainwindow.cpp +++ b/frontend_qt/mainwindow.cpp @@ -775,6 +775,9 @@ void MainWindow::factory_reset() setColorTxtBtn(m_fgstr, txt_fgcolor, fgcolor); setColorTxtBtn(m_bgstr, txt_bgcolor, bgcolor); + m_previewBgColor = QColor(0xF4, 0xF4, 0xF4); + m_bc.setColor(m_previewBgColor); + txtData->setFocus(Qt::OtherFocusReason); update_preview(); }