fix: 修复 fontScale 删除残留导致 applet 加载失败
Lane B 删除 fontScale 属性时遗漏了 Lane A 新增的 4 处引用(链路速率/ WiFi 信号/TCP 连接数/接口名),QML 引擎解析到 popup.fontScale 未定义 报语法错误,导致整个 applet 加载失败、插件消失
This commit is contained in:
@@ -172,14 +172,14 @@ Control {
|
||||
// 接口名:跟随用户 textColor(primaryText),Spec 5.1 节要求
|
||||
Text {
|
||||
text: popup.activeInterface
|
||||
font.pixelSize: Math.round(13 * popup.fontScale)
|
||||
font.pixelSize: 13
|
||||
color: popup.primaryText
|
||||
}
|
||||
|
||||
// 链路协商速率:speed>=1000 显示 Gbps,否则 Mbps;无速率时隐藏
|
||||
Text {
|
||||
text: popup.linkSpeed > 0 ? "· " + common.formatLinkSpeed(popup.linkSpeed) : ""
|
||||
font.pixelSize: Math.round(12 * popup.fontScale)
|
||||
font.pixelSize: 12
|
||||
color: popup.tertiaryText
|
||||
visible: popup.linkSpeed > 0
|
||||
}
|
||||
@@ -316,7 +316,7 @@ Control {
|
||||
|
||||
Text {
|
||||
text: qsTr("Signal") + " " + popup.wifiSignal.toFixed(0) + " dBm"
|
||||
font.pixelSize: Math.round(12 * popup.fontScale)
|
||||
font.pixelSize: 12
|
||||
color: popup.tertiaryText
|
||||
}
|
||||
}
|
||||
@@ -565,7 +565,7 @@ Control {
|
||||
|
||||
Text {
|
||||
text: qsTr("Connections") + " " + popup.tcpConnections.toFixed(0)
|
||||
font.pixelSize: Math.round(12 * popup.fontScale)
|
||||
font.pixelSize: 12
|
||||
color: popup.tertiaryText
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user