A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.
Rust
Dock: draw the Calendar date after the fallback chain
Eternity070628c415ec9d13ba
diff --git a/src/shell/dock.cpp b/src/shell/dock.cppindex 2139f2b..17d6cbf 100644--- a/src/shell/dock.cpp+++ b/src/shell/dock.cpp@@ -1460,11 +1460,13 @@ void Paint() {D2D1_RECT_F iw = Up(ir);rt->SetTransform(base);if (b) rt->DrawBitmap(b, iw, 1, D2D1_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC); // reduz 256 px sem serrilhar- if (b && mac && !leo && it.kind == I_APP && IsCalendarApp(apps::list[it.app])) DrawCalendarDate(rt, br, iw); // issue #357else if (it.kind == I_APP) { if (apps::list[it.app].finder) ui::DrawFolder(rt, iw, 0xE8B7); }else if (it.kind == I_DOWNLOADS) ui::DrawFolder(rt, iw, 0xE896);else if (it.kind == I_FOLDER) ui::DrawFolder(rt, iw, 0xE8B7);else if (it.kind == I_TRASH) ui::DrawTrash(rt, iw, g_trashFull);+ // issue #357: a data de hoje por cima do ícone do Calendário (depois da escolha do desenho acima: no meio dela,+ // a pasta de reserva era desenhada por cima do Finder, dos Downloads e da Lixeira)+ if (b && mac && !leo && it.kind == I_APP && IsCalendarApp(apps::list[it.app])) DrawCalendarDate(rt, br, iw);if (it.kind == I_APP) if (int n = BadgeCount(apps::list[it.app])) {float m = mac ? (iw.right - iw.left) * 0.10f : 0; // PNG do pacote: corpo = 80% do desenhoDrawBadge(rt, br, D2D1::RectF(iw.left + m, iw.top + m, iw.right - m, iw.bottom - m), n);