mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Add descriptive name for zone increment/decrement buttons (#7867)
This commit is contained in:
@@ -185,9 +185,9 @@
|
||||
<TabItem Header="{x:Static props:Resources.Templates}" Template="{StaticResource myTabs}">
|
||||
<StackPanel>
|
||||
<StackPanel Margin="0,15,0,8" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<Button x:Name="decrementZones" Width="40" Height="40" Content="-" Style="{StaticResource spinnerButton}" Click="DecrementZones_Click"/>
|
||||
<Button x:Name="decrementZones" Width="40" Height="40" AutomationProperties.Name="{x:Static props:Resources.Zone_Count_Decrement}" Content="-" Style="{StaticResource spinnerButton}" Click="DecrementZones_Click"/>
|
||||
<TextBlock x:Name="zoneCount" Text="{Binding ZoneCount}" Style="{StaticResource zoneCount}"/>
|
||||
<Button x:Name="incrementZones" Width="40" Height="40" Content="+" Style="{StaticResource spinnerButton}" Click="IncrementZones_Click"/>
|
||||
<Button x:Name="incrementZones" Width="40" Height="40" AutomationProperties.Name="{x:Static props:Resources.Zone_Count_Increment}" Content="+" Style="{StaticResource spinnerButton}" Click="IncrementZones_Click"/>
|
||||
</StackPanel>
|
||||
<ItemsControl ItemsSource="{Binding DefaultModels}" Margin="8,0,0,0">
|
||||
<ItemsControl.ItemsPanel>
|
||||
|
||||
@@ -248,5 +248,23 @@ namespace FancyZonesEditor.Properties {
|
||||
return ResourceManager.GetString("Templates", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Decrement number of zones in template layout.
|
||||
/// </summary>
|
||||
public static string Zone_Count_Decrement {
|
||||
get {
|
||||
return ResourceManager.GetString("Zone_Count_Decrement", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Increment number of zones in template layout.
|
||||
/// </summary>
|
||||
public static string Zone_Count_Increment {
|
||||
get {
|
||||
return ResourceManager.GetString("Zone_Count_Increment", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,4 +180,10 @@
|
||||
<data name="Templates" xml:space="preserve">
|
||||
<value>Templates</value>
|
||||
</data>
|
||||
<data name="Zone_Count_Decrement" xml:space="preserve">
|
||||
<value>Decrement number of zones in template layout</value>
|
||||
</data>
|
||||
<data name="Zone_Count_Increment" xml:space="preserve">
|
||||
<value>Increment number of zones in template layout</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user