Skip to content

armgit / WacOS

Public Imported from GitHub
0

A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.

Rust

Use the Golden Gate icon for Apple Music

Eternity0706288ba0dc5c071d
diff --git a/src/shell/apps.cpp b/src/shell/apps.cpp
index 4de3fde..e7002b4 100644
--- a/src/shell/apps.cpp
+++ b/src/shell/apps.cpp
@@ -760,6 +760,13 @@ static std::wstring PackIconFor(const App& a) {
pack.emplace(Norm(n), dir + L"\\" + fd.cFileName); // emplace: o primeiro (extra) vence
} while (FindNextFileW(h, &fd));
FindClose(h);
+ // No Golden Gate, o app Apple Music do Windows também usa o ícone do Música do macOS.
+ if (!wcscmp(sub, L"\\goldengate")) {
+ std::wstring music = dir + L"\\Music.png";
+ DWORD attrs = GetFileAttributesW(music.c_str());
+ if (attrs != INVALID_FILE_ATTRIBUTES && !(attrs & FILE_ATTRIBUTE_DIRECTORY))
+ pack.try_emplace(L"applemusic", std::move(music));
+ }
}
}
if (pack.empty()) return L"";