Fixed style
This commit is contained in:
@@ -193,11 +193,10 @@ void BCMainWindow::initStatusBar()
|
||||
_statusBar->addPermanentWidget(themeBtn);
|
||||
connect(themeBtn, &BCThemeSwitchButton::themeChanged, this, [this](bool isDark)
|
||||
{
|
||||
|
||||
QString message = isDark ? "DarkMode aktiviert" : "LightMode aktiviert";
|
||||
_statusBar->showMessage( message, 3000);
|
||||
//setApplicationStyleSheet( isDark ? cDarkModeStyle : cLightModeStyle );
|
||||
setApplicationStyleSheet( isDark ? " " : cLightModeStyle );
|
||||
setApplicationStyleSheet( isDark ? cDarkModeStyle : cLightModeStyle );
|
||||
|
||||
});
|
||||
|
||||
// Wir starten im light mode
|
||||
@@ -240,7 +239,7 @@ bool BCMainWindow::setApplicationStyleSheet( QAnyStringView path )
|
||||
return false;
|
||||
}
|
||||
qWarning() << "Konnte Stylesheet nicht laden:" << styleFile.errorString();
|
||||
qApp->setStyleSheet(" ");
|
||||
//qApp->setStyleSheet(" ");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -271,7 +270,7 @@ void BCMainWindow::onStartAnimation()
|
||||
void BCMainWindow::onDriverStateChanged( BCDriver::DriverState state, const QString& message )
|
||||
{
|
||||
Q_UNUSED(state)
|
||||
_statusBar->showMessage( message, 8000 );
|
||||
_statusBar->showMessage( message, 8000 );
|
||||
}
|
||||
|
||||
void BCMainWindow::onShowDevicePanel( BCDevice::ID deviceID )
|
||||
|
||||
Reference in New Issue
Block a user