Use bold letters for the device display name
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user