Use bold letters for the device display name

This commit is contained in:
Brahim Hadriche committed 2024-03-10 12:19:59 -04:00
1 parent 289b845876
commit b72a6d4614
2 files changed
+19 -3

No files matched your search

@@ -21,6 +21,23 @@ function Init()
m.wifiNameLabel = m.top.findNode("WifiNameLabel")
m.wifiInstructionWithDeviceNameLabel = m.top.findNode("WifiInstructionWithDeviceNameLabel")
m.linkCodeLabel = m.top.findNode("LinkCodeLabel")
m.wifiInstructionWithDeviceNameLabel.drawingStyles = {
"Bold": {
"fontSize": 22
"fontUri": "font:SmallBoldSystemFont"
' TODO:P2 DDDDDDFF is the default for labels, but the linter is not happy about it
' We need to figure out if the linter has wrong values or not
' bs:disable-next-line LINT3023
"color": "#DDDDDDFF"
}
"default": {
"fontSize": 22
"fontUri": "font:SmallSystemFont"
' bs:disable-next-line LINT3023
"color": "#DDDDDDFF"
}
}
end function
function OnNodeReady()
@@ -122,7 +139,7 @@ function OnLinkWithWifiPanelVisibleChanged() as void
m.wifiNameLabel.text = "N/A"
end if
m.wifiInstructionWithDeviceNameLabel.text = `Tap the cast icon and select "${m.loungeService.deviceName}"`
m.wifiInstructionWithDeviceNameLabel.text = `Tap the cast icon and select <Bold>"${m.loungeService.deviceName}"</Bold>`
end function
function OnLinkWithTvPanelVisibleChanged()
@@ -91,9 +91,8 @@
<Label
font="font:SmallSystemFont"
text="3." />
<Label
<MultiStyleLabel
id="WifiInstructionWithDeviceNameLabel"
font="font:SmallSystemFont"
width="380"
wrap="true"
text="Tap the cast icon and select this device." />