mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
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:
@@ -154,11 +154,18 @@
|
|||||||
<InfoBar
|
<InfoBar
|
||||||
x:Name="PowerDisplayDisabledWarningBar"
|
x:Name="PowerDisplayDisabledWarningBar"
|
||||||
x:Uid="LightSwitch_PowerDisplayDisabledWarningBar"
|
x:Uid="LightSwitch_PowerDisplayDisabledWarningBar"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderBrush="Transparent"
|
||||||
|
IsClosable="False"
|
||||||
IsOpen="True"
|
IsOpen="True"
|
||||||
Severity="Warning"
|
IsTabStop="True"
|
||||||
|
Severity="Informational"
|
||||||
Visibility="{x:Bind ViewModel.ShowPowerDisplayDisabledWarning, Mode=OneWay}">
|
Visibility="{x:Bind ViewModel.ShowPowerDisplayDisabledWarning, Mode=OneWay}">
|
||||||
<InfoBar.ActionButton>
|
<InfoBar.ActionButton>
|
||||||
<HyperlinkButton x:Uid="LightSwitch_NavigatePowerDisplaySettings" Click="NavigatePowerDisplaySettings_Click" />
|
<HyperlinkButton
|
||||||
|
x:Uid="LightSwitch_NavigatePowerDisplaySettings"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Click="NavigatePowerDisplaySettings_Click" />
|
||||||
</InfoBar.ActionButton>
|
</InfoBar.ActionButton>
|
||||||
</InfoBar>
|
</InfoBar>
|
||||||
<tkcontrols:SettingsExpander
|
<tkcontrols:SettingsExpander
|
||||||
|
|||||||
@@ -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">
|
<data name="LightSwitch_BehaviorSettingsGroup.Header" xml:space="preserve">
|
||||||
<value>Behavior</value>
|
<value>Behavior</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="LightSwitch_MonitorSettingsGroup.Header" xml:space="preserve">
|
||||||
|
<value>Monitor settings</value>
|
||||||
|
</data>
|
||||||
<data name="LightSwitch_EnableSettingsCard.Header" xml:space="preserve">
|
<data name="LightSwitch_EnableSettingsCard.Header" xml:space="preserve">
|
||||||
<value>Enable Light Switch</value>
|
<value>Enable Light Switch</value>
|
||||||
</data>
|
</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>
|
<value>Supported applications</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="LightSwitch_PowerDisplayDisabledWarningBar.Title" xml:space="preserve">
|
<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>
|
||||||
<data name="LightSwitch_PowerDisplayDisabledWarningBar.Message" xml:space="preserve">
|
<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>
|
<value>Enable PowerDisplay module to use automatic monitor profile switching</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="LightSwitch_ApplyMonitorSettingsExpander.Header" xml:space="preserve">
|
<data name="LightSwitch_ApplyMonitorSettingsExpander.Header" xml:space="preserve">
|
||||||
|
|||||||
Reference in New Issue
Block a user