From 14d3e38aebe40a9a7986d087c5bd856e22c813ac Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Fri, 23 Feb 2024 22:21:44 -0500 Subject: [PATCH] Tweaks to remote screen UI --- CHANGELOG.md | 4 ++++ .../src/components/Screens/RemoteScreen/RemoteScreen.bs | 4 ++++ .../src/components/Screens/RemoteScreen/RemoteScreen.xml | 1 + 3 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a47cf41e..db71a384 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +- Nothing worth mentioning yet. + ## [0.20.1] - 2024-02-23 ### Fixed diff --git a/playlet-lib/src/components/Screens/RemoteScreen/RemoteScreen.bs b/playlet-lib/src/components/Screens/RemoteScreen/RemoteScreen.bs index d0f7133f..989c338c 100644 --- a/playlet-lib/src/components/Screens/RemoteScreen/RemoteScreen.bs +++ b/playlet-lib/src/components/Screens/RemoteScreen/RemoteScreen.bs @@ -19,6 +19,7 @@ function Init() m.linkWithTvPanel = m.top.findNode("LinkWithTvPanel") m.wifiNameLabel = m.top.findNode("WifiNameLabel") + m.wifiInstructionWithDeviceNameLabel = m.top.findNode("WifiInstructionWithDeviceNameLabel") m.linkCodeLabel = m.top.findNode("LinkCodeLabel") end function @@ -128,6 +129,8 @@ function OnLinkWithWifiPanelVisibleChanged() as void else m.wifiNameLabel.text = "N/A" end if + + m.wifiInstructionWithDeviceNameLabel.text = `Tap the cast icon and select "${m.loungeService.deviceName}"` end function function OnLinkWithTvPanelVisibleChanged() @@ -147,6 +150,7 @@ function GeneratePairingCode() m.linkCodeTask.cancel = true end if + m.linkCodeLabel.text = "Loading..." m.linkCodeTask = AsyncTask.Start(Tasks.LoungeGenerateManualPairingCodeTask, { loungeService: m.loungeService loungeToken: m.loungeService.loungeToken diff --git a/playlet-lib/src/components/Screens/RemoteScreen/RemoteScreen.xml b/playlet-lib/src/components/Screens/RemoteScreen/RemoteScreen.xml index 1472fa07..0f318961 100644 --- a/playlet-lib/src/components/Screens/RemoteScreen/RemoteScreen.xml +++ b/playlet-lib/src/components/Screens/RemoteScreen/RemoteScreen.xml @@ -91,6 +91,7 @@ font="font:SmallSystemFont" text="3." />