Update InfoBar and resource strings for PowerDisplay

Updated the `InfoBar` in `LightSwitchPage.xaml` to improve
accessibility and visual consistency, including changes to
`Severity`, `Background`, and `HyperlinkButton` alignment.

Added new resource entries in `Resources.resw` for monitor
settings and updated the `PowerDisplayDisabledWarningBar`
title to clarify its purpose. Introduced additional resource
strings to support the updated messaging.
This commit is contained in:
Yu Leng
2025-11-21 16:45:15 +08:00
parent b381472bf7
commit b4ccac5ec2
2 changed files with 16 additions and 3 deletions

View File

@@ -154,11 +154,18 @@
<InfoBar
x:Name="PowerDisplayDisabledWarningBar"
x:Uid="LightSwitch_PowerDisplayDisabledWarningBar"
Background="Transparent"
BorderBrush="Transparent"
IsClosable="False"
IsOpen="True"
Severity="Warning"
IsTabStop="True"
Severity="Informational"
Visibility="{x:Bind ViewModel.ShowPowerDisplayDisabledWarning, Mode=OneWay}">
<InfoBar.ActionButton>
<HyperlinkButton x:Uid="LightSwitch_NavigatePowerDisplaySettings" Click="NavigatePowerDisplaySettings_Click" />
<HyperlinkButton
x:Uid="LightSwitch_NavigatePowerDisplaySettings"
HorizontalAlignment="Right"
Click="NavigatePowerDisplaySettings_Click" />
</InfoBar.ActionButton>
</InfoBar>
<tkcontrols:SettingsExpander

View File

@@ -5258,6 +5258,9 @@ To record a specific window, enter the hotkey with the Alt key in the opposite m
<data name="LightSwitch_BehaviorSettingsGroup.Header" xml:space="preserve">
<value>Behavior</value>
</data>
<data name="LightSwitch_MonitorSettingsGroup.Header" xml:space="preserve">
<value>Monitor settings</value>
</data>
<data name="LightSwitch_EnableSettingsCard.Header" xml:space="preserve">
<value>Enable Light Switch</value>
</data>
@@ -5322,9 +5325,12 @@ To record a specific window, enter the hotkey with the Alt key in the opposite m
<value>Supported applications</value>
</data>
<data name="LightSwitch_PowerDisplayDisabledWarningBar.Title" xml:space="preserve">
<value>PowerDisplay is disabled</value>
<value>Enable PowerDisplay module to use automatic monitor profile switching</value>
</data>
<data name="LightSwitch_PowerDisplayDisabledWarningBar.Message" xml:space="preserve">
<value />
</data>
<data name="LightSwitch_PowerDisplayDisabledWarning.Text" xml:space="preserve">
<value>Enable PowerDisplay module to use automatic monitor profile switching</value>
</data>
<data name="LightSwitch_ApplyMonitorSettingsExpander.Header" xml:space="preserve">