Publish Zonghengjia Windows 0.4.1 client source

This commit is contained in:
2026-11-30 13:57:46 +08:00
parent 7a00f97910
commit 859a1dec5e
16 changed files with 307 additions and 23 deletions
+4
View File
@@ -73,6 +73,10 @@ internal static class DashboardLayout
}
if (p.TrafficCard != Rectangle.Empty || p.TailnetTrafficCard != Rectangle.Empty) return false;
if (p.ContentHeight > viewport.Height || p.Footer.Bottom > viewport.Height) return false;
if (cards.Any(card => card.Left != p.StatusCard.Left || card.Right != p.StatusCard.Right)) return false;
if (p.NodeCard.Top - p.StatusCard.Bottom != p.SpeedTrendCard.Top - p.NodeCard.Bottom
|| p.DailyCard.Top - (showServers ? p.ServerTrafficCard.Bottom : p.SpeedTrendCard.Bottom) != Sized(4)
|| p.Footer.Top - p.DailyCard.Bottom != Sized(4)) return false;
var baseline = Calculate(viewport, dpi, false, showServers);
if (p.Footer != baseline.Footer || p.ContentHeight != baseline.ContentHeight || p.TrafficCard != baseline.TrafficCard) return false;
if(p.SpeedTrendCard.Width!=p.DailyCard.Width || p.DailyCard.Height>Sized(24))return false;