A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.
Rust
Align wide widgets with desktop grid columns
Eternity0706288eab15225809
diff --git a/src/shell/widgets.cpp b/src/shell/widgets.cppindex c8e68ec..993db45 100644--- a/src/shell/widgets.cpp+++ b/src/shell/widgets.cpp@@ -875,6 +875,9 @@ void SaveCell(const Widget& w) {void Position(Widget& wd, bool reset, bool animate = false) {Grid g = GridNow(wd.wnd);+ // Um widget largo ocupa duas colunas reais, incluindo o espaço extra de PassoX.+ // Assim suas bordas continuam alinhadas às de dois widgets pequenos na mesma grade.+ wd.w = Cols(wd) == 2 ? SMALL + PassoX(g) : SMALL;int rc = -1, row = -1, a, b;std::wstring saved = reset ? L"" : shell::Setting((std::wstring(L"widget.") + wd.id).c_str(), L"");wd.rc = -1;