A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.
Rust
Calendar widgets open the WacOS Calendar instead of outlookcal:
Eternity07062860fd2dd38e9a
diff --git a/src/shell/notificacoes.cpp b/src/shell/notificacoes.cppindex d142a06..ca1f980 100644--- a/src/shell/notificacoes.cpp+++ b/src/shell/notificacoes.cpp@@ -1043,7 +1043,9 @@ void DefaultWidgets() {g_widgetKind.clear();if (CentralOn(0)) {g_widgets.push_back({ WIDGET_S, WIDGET_S, [](ID2D1DeviceContext* dc, float w, float h, bool d) { (liquid::Leopard() ? PaintCalendarLeo : PaintCalendar)(dc, w, h, d); },- [] { shell::Abrir(L"open", L"outlookcal:", nullptr, nullptr, SW_SHOWNORMAL); } });+ [] { std::wstring app = shell::dir + L"\\" EXE_CALENDAR; // o Calendário do WacOS, não o Outlook+ if (GetFileAttributesW(app.c_str()) != INVALID_FILE_ATTRIBUTES) shell::Abrir(L"open", app.c_str(), nullptr, shell::dir.c_str(), SW_SHOWNORMAL);+ else shell::Abrir(L"open", L"outlookcal:", nullptr, nullptr, SW_SHOWNORMAL); } });g_widgetKind.push_back(0);}if (CentralOn(1)) {diff --git a/src/shell/widgets.cpp b/src/shell/widgets.cppindex b8fa549..468a7ca 100644--- a/src/shell/widgets.cpp+++ b/src/shell/widgets.cpp@@ -928,7 +928,11 @@ void Click(Widget& wd) {target = url.c_str(); break;}case K_CLOCK: case K_WORLD: target = L"ms-clock:"; break;- case K_CALENDAR: target = L"outlookcal:"; break;+ case K_CALENDAR: { // o app Calendário do WacOS (o "outlookcal:" dá erro sem o Outlook)+ std::wstring app = shell::dir + L"\\" EXE_CALENDAR;+ if (GetFileAttributesW(app.c_str()) != INVALID_FILE_ATTRIBUTES) { shell::Abrir(L"open", app.c_str(), nullptr, shell::dir.c_str(), SW_SHOWNORMAL); return; }+ target = L"outlookcal:"; break;+ }}if (target) shell::Abrir(L"open", target, nullptr, nullptr, SW_SHOWNORMAL);}