Skip to content

Commit

Permalink
Disable style sheet on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Admiral-Fish committed Aug 9, 2020
1 parent cad761b commit 55e2afc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ int main(int argc, char *argv[])

QSettings setting;

// Buttons currently aren't easy to press with style sheet
// Disable it for now on MacOS
#ifndef Q_OS_MAC
QString style = setting.value("settings/style", "dark").toString();
if (style == "dark")
{
Expand All @@ -44,6 +47,7 @@ int main(int argc, char *argv[])
file.close();
}
}
#endif

QString locale = setting.value("settings/locale", "en").toString();
if (!QStringList({ "de", "en", "es", "fr", "it", "ja", "ko", "pt", "tw", "zh" }).contains(locale))
Expand Down

0 comments on commit 55e2afc

Please sign in to comment.