Publish Zonghengjia Windows 0.3.18 client source

This commit is contained in:
2026-11-15 22:17:39 +08:00
parent ebec81ceb1
commit eb90ef4042
15 changed files with 1575 additions and 1680 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ internal sealed partial class MainForm
_modeCard.Paint += (_, e) =>
{
using var divider = new Pen(Color.FromArgb(130, 160, 189, 211), Math.Max(1, DeviceDpi / 96f * .6f));
var x = WideDashboardPresentation ? _modeIcon.Left - ScaleLogical(7) : 0;
const int x = 0;
e.Graphics.DrawLine(divider, x, ScaleLogical(8), x, _modeCard.Height - ScaleLogical(8));
};
BuildConnectionSelection();
@@ -377,7 +377,7 @@ internal sealed partial class MainForm
if(checks.Values.Any(value=>!value))throw new InvalidOperationException("Dashboard UI self-test failed; inspect dashboard-ui-self-test.json");
}
private bool DashboardControlsFit() => new Control[] { _statusCard, _nodeCard, _modeCard, _trafficCard, _tailnetTrafficCard, _speedTrendCard, _dailyCard, _footer, _wideMonitor, _wideSummary }
private bool DashboardControlsFit() => new Control[] { _statusCard, _nodeCard, _modeCard, _trafficCard, _tailnetTrafficCard, _speedTrendCard, _dailyCard, _footer, _wideMonitor }
.Where(parent => parent.Visible)
.All(parent => parent.Controls.Cast<Control>().Where(c => c.Visible).All(c => c.Left >= 0 && c.Top >= 0 && c.Right <= parent.ClientSize.Width && c.Bottom <= parent.ClientSize.Height));
}