refactor: Update Doxyfile and resource paths for improved organization

- Changed the paths for project logo and icon in Doxyfile to point to the new assets directory.
- Updated CMake configurations to reflect the new locations of resource files, enhancing clarity and maintainability.
- Replaced instances of core utility functions with util functions across various files for consistency in file handling.
- Added new resource files for Windows platform support and removed obsolete resource files, streamlining the build process.
This commit is contained in:
scawful
2025-10-05 00:31:46 -04:00
parent 28bc2d4cc7
commit 5a35718070
10 changed files with 24 additions and 26 deletions

View File

@@ -263,7 +263,7 @@ absl::Status ThemeManager::LoadThemeFromFile(const std::string& filepath) {
filepath, // Absolute path
"assets/themes/" + filepath, // Relative from build dir
"../assets/themes/" + filepath, // Relative from bin dir
core::GetResourcePath("assets/themes/" + filepath), // Platform-specific resource path
util::GetResourcePath("assets/themes/" + filepath), // Platform-specific resource path
};
std::ifstream file;
@@ -1898,13 +1898,13 @@ std::vector<std::string> ThemeManager::GetThemeSearchPaths() const {
// Platform-specific resource paths
#ifdef __APPLE__
// macOS bundle resource path (this should be the primary path for bundled apps)
std::string bundle_themes = core::GetResourcePath("assets/themes/");
std::string bundle_themes = util::GetResourcePath("assets/themes/");
if (!bundle_themes.empty()) {
search_paths.push_back(bundle_themes);
}
// Alternative bundle locations
std::string bundle_root = core::GetBundleResourcePath();
std::string bundle_root = util::GetBundleResourcePath();
search_paths.push_back(bundle_root + "Contents/Resources/themes/");
search_paths.push_back(bundle_root + "Contents/Resources/assets/themes/");
@@ -1917,7 +1917,7 @@ std::vector<std::string> ThemeManager::GetThemeSearchPaths() const {
#endif
// User config directory
std::string config_themes = core::GetConfigDirectory() + "/themes/";
std::string config_themes = util::GetConfigDirectory() + "/themes/";
search_paths.push_back(config_themes);
return search_paths;