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

ShellAbrirPainel 8 opens About This Mac (used for the showcase screenshot)

Eternity0706287f23bad96356
diff --git a/src/shell/main.cpp b/src/shell/main.cpp
index 9f0d01a..1f3800c 100644
--- a/src/shell/main.cpp
+++ b/src/shell/main.cpp
@@ -661,7 +661,8 @@ static LRESULT CALLBACK MsgProc(HWND h, UINT m, WPARAM w, LPARAM l) {
if (m == openNC && openNC) { notificacoes::Toggle(); return 0; }
static UINT openSP = RegisterWindowMessageW(L"ShellAbrirSpotlight"); // abre/fecha o Spotlight de fora (como o Win+Espaço)
if (m == openSP && openSP) { PostMessageW(h, WM_APP_SPOTLIGHT, 0, 0); return 0; }
- // abre um painel de fora (fotos do README, testes): 1 Launchpad/Apps, 2 Mission Control, 3..6 Spotlight no modo 1..4
+ // abre um painel de fora (fotos do README, testes): 1 Launchpad/Apps, 2 Mission Control, 3..6 Spotlight no modo 1..4,
+ // 7 Spotlight, 8 Sobre Este Mac
static UINT openPanel = RegisterWindowMessageW(L"ShellAbrirPainel");
if (m == openPanel && openPanel) {
// pedido de fora: o Windows não deixa o Shell vir para a frente sozinho (o Spotlight e o Launchpad fechavam na
@@ -673,6 +674,7 @@ static LRESULT CALLBACK MsgProc(HWND h, UINT m, WPARAM w, LPARAM l) {
else if (w == 2) missioncontrol::Toggle();
else if (w >= 3 && w <= 6) spotlight::OpenMode((int)w - 2);
else if (w == 7) spotlight::Toggle();
+ else if (w == 8) sobre::Show(); // Sobre Este Mac
if (att) AttachThreadInput(me, ft, FALSE);
return 0;
}