mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
From c4c7d6c4291d07498df6f9e370c4c525bacb1f54 Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Sat, 16 Mar 2024 23:08:12 +1000
|
|
Subject: Add haiku fixes
|
|
|
|
|
|
diff --git a/common/lc_profile.cpp b/common/lc_profile.cpp
|
|
index e11473a..d9d628d 100644
|
|
--- a/common/lc_profile.cpp
|
|
+++ b/common/lc_profile.cpp
|
|
@@ -101,7 +101,7 @@ static lcProfileEntry gProfileEntries[LC_NUM_PROFILE_KEYS] =
|
|
lcProfileEntry("Settings", "ControlPointFocusedColor", static_cast<uint>(LC_RGBA(102, 76, 229, 128))), // LC_PROFILE_CONTROL_POINT_FOCUSED_COLOR
|
|
|
|
lcProfileEntry("Settings", "Language", ""), // LC_PROFILE_LANGUAGE
|
|
- lcProfileEntry("Settings", "ColorTheme", static_cast<int>(lcColorTheme::Dark)), // LC_PROFILE_COLOR_THEME
|
|
+ lcProfileEntry("Settings", "ColorTheme", static_cast<int>(lcColorTheme::System)), // LC_PROFILE_COLOR_THEME
|
|
lcProfileEntry("Settings", "CheckUpdates", 1), // LC_PROFILE_CHECK_UPDATES
|
|
lcProfileEntry("Settings", "ProjectsPath", ""), // LC_PROFILE_PROJECTS_PATH
|
|
lcProfileEntry("Settings", "PartsLibrary", ""), // LC_PROFILE_PARTS_LIBRARY
|
|
diff --git a/qt/qtmain.cpp b/qt/qtmain.cpp
|
|
index db9d884..6547163 100644
|
|
--- a/qt/qtmain.cpp
|
|
+++ b/qt/qtmain.cpp
|
|
@@ -189,6 +189,10 @@ int main(int argc, char *argv[])
|
|
LibraryPaths += qMakePair(QDir::cleanPath(QCoreApplication::applicationDirPath() + "/library.bin"), true);
|
|
#endif
|
|
|
|
+#ifdef Q_OS_HAIKU
|
|
+ LibraryPaths += qMakePair(QDir::cleanPath(QCoreApplication::applicationDirPath() + "/library.bin"), true);
|
|
+#endif
|
|
+
|
|
#ifdef Q_OS_LINUX
|
|
LibraryPaths += qMakePair(QDir::cleanPath(QCoreApplication::applicationDirPath() + "/../share/leocad/library.bin"), true);
|
|
#endif
|
|
--
|
|
2.43.2
|
|
|