Windows 0.3.1 clean monitor source delta; no private history or other platform changes

This commit is contained in:
2026-10-27 02:00:33 +00:00
parent 366b3c5c9a
commit 1cf54a46e4
40 changed files with 983 additions and 206 deletions
+21
View File
@@ -98,6 +98,27 @@ internal sealed partial class MainForm
checks["whole_content_composition_disabled"] = !_content.ComposeChildren;
checks["metric_dirty_refresh_clears_previous_digits"] = CheckMetricRefreshPaint();
foreach (var check in CheckTailnetTrafficUi()) checks.Add(check.Key, check.Value);
var monitorSize = ClientSize;
var monitorAccounting = (_sessionUp, _sessionDown, _trafficChart.PointCount);
SetNodeTrafficPermission(true);
SetTailnetTrafficVisibility(true);
LayoutDashboard();
Application.DoEvents();
using (var monitorFont = Brand.Font(7.1f))
{
var monitorTextHeight = TextRenderer.MeasureText("VPN002 上传", monitorFont).Height;
var rows = NodeTrafficPanel.TextLayout(_nodeTrafficPanel.ClientSize, DeviceDpi, monitorTextHeight);
checks["monitor_two_native_dpi_text_rows_fit"] = rows.Rows.All(row => row.Height >= monitorTextHeight)
&& !rows.Rows[0].IntersectsWith(rows.Rows[1]);
}
checks["monitor_stays_below_speed_without_resizing_window"] = ClientSize == monitorSize
&& _nodeTrafficPanel.Top > _dailyCard.Bottom && _nodeTrafficPanel.Bottom < _footer.Top
&& !_dashboardScrollBar.Visible && _dashboardBody.Top == 0;
checks["monitor_does_not_overflow_other_controls"] = DashboardControlsFit();
checks["monitor_does_not_change_personal_proxy_accounting"] = monitorAccounting == (_sessionUp, _sessionDown, _trafficChart.PointCount);
SetNodeTrafficPermission(false);
SetTailnetTrafficVisibility(false);
checks["monitor_revoked_hides_and_stops_timer"] = !_nodeTrafficPanel.Visible && !_nodeTrafficTimer.Enabled;
ShowLogin();
checks["hidden_dashboard_does_not_consume_login_wheel"] = !Wheel(_loginText, -120);
RequestExit();