Windows 0.3.5 traffic trends UI source delta; connection fixes retained; no private history or other platform changes
This commit is contained in:
@@ -141,6 +141,7 @@ internal sealed partial class MainForm
|
||||
_routeReadOnly.Bounds=new(S(39),S(23),_modeCard.Width-S(41),S(20));
|
||||
foreach(var label in new[]{_selectionHeading,_routeHeading,_nodeHeading,_actualModeHeading,_currentNodeLabel})
|
||||
{ label.TextAlign=ContentAlignment.MiddleLeft; label.Padding=Padding.Empty; }
|
||||
_trafficCard.Visible=_tailnetTrafficCard.Visible=false;
|
||||
_trafficIcon.Visible=_dailyIcon.Visible=_tailnetTrafficIcon.Visible=false;
|
||||
_trafficHeading.Bounds=new(S(10),0,S(106),_trafficCard.Height-S(2));
|
||||
_dailyHeading.Bounds=new(S(10),0,S(106),_dailyCard.Height-S(2));
|
||||
@@ -153,12 +154,17 @@ internal sealed partial class MainForm
|
||||
_tailnetUploadMetric.Bounds=_uploadMetric.Bounds;
|
||||
_tailnetDownloadMetric.Bounds=_downloadMetric.Bounds;
|
||||
}
|
||||
_trendHeading.Bounds=new(S(10),S(2),_speedTrendCard.Width-S(120),S(20));
|
||||
_trendHeading.Text="本机代理趋势 · "+(_selectionUiConnected?(_currentNodeUsesTailnet?"Tailscale":"域名入口"):"未连接");
|
||||
_trendHeading.Bounds=new(S(10),S(2),_speedTrendCard.Width-S(120),S(18));
|
||||
_trendHeading.TextAlign=ContentAlignment.MiddleLeft;
|
||||
_historyRangeCombo.Bounds=new(_speedTrendCard.Width-S(98),S(2),S(88),S(20));
|
||||
_historyRangeCombo.Bounds=new(_speedTrendCard.Width-S(98),S(2),S(88),S(18));
|
||||
_uploadLegend.Bounds=new(S(10),S(20),(_speedTrendCard.Width-S(20))/2,S(16));
|
||||
_downloadLegend.Bounds=new(_uploadLegend.Right,S(20),(_speedTrendCard.Width-S(20))/2,S(16));
|
||||
_uploadLegend.TextAlign=_downloadLegend.TextAlign=ContentAlignment.MiddleLeft;
|
||||
_uploadLegend.Visible=_downloadLegend.Visible=true;
|
||||
_trafficChart.Font=_compactChartFont;
|
||||
_trafficChart.Bounds=new(S(8),S(24),_speedTrendCard.Width-S(16),Math.Max(S(22),_speedTrendCard.Height-S(28)));
|
||||
_uploadLegend.Visible=_downloadLegend.Visible=_historyStatus.Visible=false;
|
||||
_trafficChart.Bounds=new(S(8),S(36),_speedTrendCard.Width-S(16),Math.Max(S(22),_speedTrendCard.Height-S(40)));
|
||||
_historyStatus.Visible=false;
|
||||
_sampleLabel.Visible=false;
|
||||
_planLabel.Visible=false;
|
||||
_expiryLabel.Bounds=new(0,0,S(96),S(17));
|
||||
|
||||
Reference in New Issue
Block a user