--- a/HelperStructs/Style.cpp
+++ b/HelperStructs/Style.cpp
@@ -25,16 +25,19 @@
QString Style::get_style(bool dark)
{
+#if !defined(Q_OS_MACOS) && !defined(Q_OS_MAC)
+ QString dir = Helper::getSharePath();
+#else
+ QString dir = Helper::getSharePath() + "/Resources/";
+#endif
+
QString commonstyle;
- Helper::read_file_into_str(Helper::getSharePath() + "/common.qss",
- &commonstyle);
+ Helper::read_file_into_str(dir + "/common.qss", &commonstyle);
QString style;
if (!dark) {
- Helper::read_file_into_str(Helper::getSharePath() + "/standard.qss",
- &style);
+ Helper::read_file_into_str(dir + "/standard.qss", &style);
} else {
- Helper::read_file_into_str(Helper::getSharePath() + "/dark.qss",
- &style);
+ Helper::read_file_into_str(dir + "/dark.qss", &style);
}
return commonstyle + style;