This commit is contained in:
dada513
2022-03-28 20:55:03 +02:00
parent 424f4a72ff
commit 3a7eeff135
7 changed files with 26 additions and 70 deletions

View File

@ -1139,6 +1139,16 @@ std::vector<ITheme *> Application::getValidApplicationThemes()
return ret;
}
bool Application::isFlatpak()
{
#ifdef Q_OS_LINUX
QFileInfo check_file("/.flatpak-info");
return check_file.exists();
#else
return false;
#endif
}
void Application::setApplicationTheme(const QString& name, bool initial)
{
auto systemPalette = qApp->palette();