Fix disabled arrow styling on Default theme

This commit is contained in:
GriffinR
2025-05-11 14:28:14 -04:00
parent 2a7927ae82
commit 77a7acd529
4 changed files with 33 additions and 9 deletions

View File

@@ -669,14 +669,10 @@ void MainWindow::restoreWindowState() {
}
void MainWindow::setTheme(QString theme) {
if (theme == "default") {
setStyleSheet("");
} else {
QFile File(QString(":/themes/%1.qss").arg(theme));
File.open(QFile::ReadOnly);
QString stylesheet = QLatin1String(File.readAll());
setStyleSheet(stylesheet);
}
QFile File(QString(":/themes/%1.qss").arg(theme));
File.open(QFile::ReadOnly);
QString stylesheet = QLatin1String(File.readAll());
setStyleSheet(stylesheet);
}
bool MainWindow::openProject(QString dir, bool initial) {