Publish Zonghengjia Windows 0.4.1 client source
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user