Fixes for AOT

This commit is contained in:
Niels Laute
2026-02-11 11:50:35 +01:00
parent 714b31caac
commit 5eb92ec50a
3 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@
<StackPanel Orientation="Vertical">
<tkcontrols:MarkdownTextBlock Config="{StaticResource DescriptionTextMarkdownConfig}" Text="{x:Bind ViewModel.IncreaseOpacityShortcut, Mode=OneWay}" />
<tkcontrols:MarkdownTextBlock Config="{StaticResource DescriptionTextMarkdownConfig}" Text="{x:Bind ViewModel.DecreaseOpacityShortcut, Mode=OneWay}" />
<controls:IsEnabledTextBlock x:Uid="AlwaysOnTop_TransparencyRange" Style="{StaticResource SecondaryTextStyle}" />
<controls:IsEnabledTextBlock x:Uid="AlwaysOnTop_TransparencyRange" />
</StackPanel>
</tkcontrols:SettingsCard.Description>
</tkcontrols:SettingsCard>

View File

@@ -2979,11 +2979,11 @@ Right-click to remove the key combination, thereby deactivating the shortcut.</v
<data name="AlwaysOnTop_IncreaseOpacity" xml:space="preserve">
<value>Press **{0}** to increase the window opacity</value>
</data>
<data name="AlwaysOnTop_DecreaseOpacity.Text" xml:space="preserve">
<data name="AlwaysOnTop_DecreaseOpacity" xml:space="preserve">
<value>Decrease opacity</value>
</data>
<data name="AlwaysOnTop_TransparencyRange.Text" xml:space="preserve">
<value>Range: 20%-100%</value>
<value>Transparency range: 20%-100%</value>
</data>
<data name="Oobe_AlwaysOnTop.Title" xml:space="preserve">
<value>Always On Top</value>

View File

@@ -316,7 +316,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
{
var modifiers = new HotkeySettings(_hotkey.Win, _hotkey.Ctrl, _hotkey.Alt, _hotkey.Shift, 0).ToString();
var shortcut = string.IsNullOrEmpty(modifiers) ? "-" : modifiers + " + -";
return string.Format(CultureInfo.CurrentCulture, ResourceLoaderInstance.ResourceLoader.GetString("ZoomIt_LiveZoom_Shortcut_Draw"), shortcut);
return string.Format(CultureInfo.CurrentCulture, ResourceLoaderInstance.ResourceLoader.GetString("AlwaysOnTop_DecreaseOpacity"), shortcut);
}
}