Publish Zonghengjia Windows 0.4.0 client source
This commit is contained in:
@@ -109,23 +109,23 @@ internal sealed partial class MainForm
|
||||
|
||||
var rowHeight = S(dense ? 26 : 31);
|
||||
var fieldHeight = rowHeight - S(3);
|
||||
var firstRow = layout.State.Top;
|
||||
var firstRow = Math.Max(S(5), (layout.Configuration.Height - fieldHeight) / 2);
|
||||
var valueLeft = pad + S(43);
|
||||
var fieldWidth = layout.State.Left - valueLeft - S(16);
|
||||
_selectionHeading.Bounds = new Rectangle(pad, firstRow, S(39), fieldHeight);
|
||||
_routeHeading.Bounds = new Rectangle(pad, firstRow + rowHeight, S(39), fieldHeight);
|
||||
_routeHeading.Text = "模式";
|
||||
var fieldWidth = _nodeCard.Width - valueLeft - pad;
|
||||
_selectionHeading.Visible = false;
|
||||
_connectionModeCombo.Visible = false;
|
||||
_manualNodeCombo.Visible = false;
|
||||
_routeHeading.Bounds = new Rectangle(pad, firstRow, S(64), fieldHeight);
|
||||
_routeHeading.Text = "代理模式";
|
||||
_selectionHeading.TextAlign = _routeHeading.TextAlign = ContentAlignment.MiddleLeft;
|
||||
_connectionModeCombo.Bounds = new Rectangle(valueLeft, firstRow, fieldWidth, fieldHeight);
|
||||
_routeCombo.Bounds = new Rectangle(valueLeft, firstRow + rowHeight, fieldWidth, fieldHeight);
|
||||
_manualNodeCombo.Bounds = new Rectangle(valueLeft, firstRow + 2 * rowHeight, fieldWidth, fieldHeight);
|
||||
_routeCombo.Bounds = new Rectangle(valueLeft + S(22), firstRow, Math.Max(S(160), fieldWidth - S(22)), fieldHeight);
|
||||
|
||||
var headingLeft = S(12);
|
||||
var headingWidth = S(45);
|
||||
var stateValueLeft = headingLeft + headingWidth;
|
||||
var entryWidth = _selectionUiConnected ? S(105) : 0;
|
||||
var stateWidth = _modeCard.Width - stateValueLeft - S(8);
|
||||
_nodeHeading.Text = "节点";
|
||||
_nodeHeading.Text = "线路";
|
||||
_nodeHeading.Bounds = new Rectangle(headingLeft, 0, headingWidth, fieldHeight);
|
||||
_currentNodeLabel.Bounds = new Rectangle(stateValueLeft, 0, stateWidth - entryWidth, fieldHeight);
|
||||
_actualModeHeading.Bounds = new Rectangle(headingLeft, rowHeight, headingWidth, fieldHeight);
|
||||
@@ -152,7 +152,7 @@ internal sealed partial class MainForm
|
||||
_historyRangeCombo.Bounds = new Rectangle(trendWidth - pad - rangeWidth, tabTop, rangeWidth, tabHeight);
|
||||
_wideDownload.Bounds = new Rectangle(_historyRangeCombo.Left - S(14) - tabWidth, tabTop, tabWidth, tabHeight);
|
||||
_wideUpload.Bounds = new Rectangle(_wideDownload.Left - S(5) - tabWidth, tabTop, tabWidth, tabHeight);
|
||||
_trendHeading.Text = "本机代理趋势";
|
||||
_trendHeading.Text = "本机代理速度趋势";
|
||||
_trendHeading.Bounds = new Rectangle(pad, tabTop, _wideUpload.Left - pad - S(8), tabHeight);
|
||||
_trendHeading.TextAlign = ContentAlignment.MiddleLeft;
|
||||
_trafficChart.Font = _wideChartFont;
|
||||
@@ -212,9 +212,7 @@ internal sealed partial class MainForm
|
||||
_ => DashboardIcon.ShieldPending,
|
||||
};
|
||||
_wideSummaryState.ForeColor = accent;
|
||||
_wideSummaryState.Text = _selectionUiConnected
|
||||
? (_currentNodeUsesTailnet ? "● Tailscale 入口" : "● 公网入口")
|
||||
: "● " + title;
|
||||
_wideSummaryState.Text = _selectionUiConnected ? "● 默认线路" : "● " + title;
|
||||
_footerCompanySite.Text = tone switch
|
||||
{
|
||||
BannerTone.Connected => "网络 · 已连接",
|
||||
|
||||
Reference in New Issue
Block a user