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.wifiNameLabel = m.top.findNode("WifiNameLabel")
|
||||||
m.wifiInstructionWithDeviceNameLabel = m.top.findNode("WifiInstructionWithDeviceNameLabel")
|
m.wifiInstructionWithDeviceNameLabel = m.top.findNode("WifiInstructionWithDeviceNameLabel")
|
||||||
m.linkCodeLabel = m.top.findNode("LinkCodeLabel")
|
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
|
end function
|
||||||
|
|
||||||
function OnNodeReady()
|
function OnNodeReady()
|
||||||
@@ -122,7 +139,7 @@ function OnLinkWithWifiPanelVisibleChanged() as void
|
|||||||
m.wifiNameLabel.text = "N/A"
|
m.wifiNameLabel.text = "N/A"
|
||||||
end if
|
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
|
end function
|
||||||
|
|
||||||
function OnLinkWithTvPanelVisibleChanged()
|
function OnLinkWithTvPanelVisibleChanged()
|
||||||
|
|||||||
@@ -91,9 +91,8 @@
|
|||||||
<Label
|
<Label
|
||||||
font="font:SmallSystemFont"
|
font="font:SmallSystemFont"
|
||||||
text="3." />
|
text="3." />
|
||||||
<Label
|
<MultiStyleLabel
|
||||||
id="WifiInstructionWithDeviceNameLabel"
|
id="WifiInstructionWithDeviceNameLabel"
|
||||||
font="font:SmallSystemFont"
|
|
||||||
width="380"
|
width="380"
|
||||||
wrap="true"
|
wrap="true"
|
||||||
text="Tap the cast icon and select this device." />
|
text="Tap the cast icon and select this device." />
|
||||||
|
|||||||
Reference in new issue
Block a user