Fixed build process.

This commit is contained in:
2026-04-03 22:28:07 +02:00
parent 0b54793b08
commit 884e8e903e
12 changed files with 100 additions and 43 deletions

View File

@@ -34,7 +34,7 @@
#include <QTimer>
#include <QMessageBox>
#include <bcthemeswitchbutton.h>
#include <bcthemebutton.h>
#include <bcdriverstatewidget.h>
#include <bcmainwindow.h>
#include <bcvaluedelegate.h>
@@ -189,9 +189,9 @@ void BCMainWindow::initStatusBar()
_statusBar->addPermanentWidget(conState);
conState->installEventFilter(this);
BCThemeSwitchButton* themeBtn = new BCThemeSwitchButton(this);
BCThemeButton* themeBtn = new BCThemeButton(this);
_statusBar->addPermanentWidget(themeBtn);
connect(themeBtn, &BCThemeSwitchButton::themeChanged, this, [this](bool isDark)
connect(themeBtn, &BCThemeButton::themeChanged, this, [this](bool isDark)
{
QString message = isDark ? "using DarkMode." : "using LightMode.";
onShowMessage( message );