mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
[FancyZones] Overlapping zones selection algorithm - settings (#9874)
* Started work * Removed bools in favor of an enum, renamed some * Done something but it still doesn't work * Settings are now correctly saved * I'm getting a crash, I need to rebuild from scratch * Settings page looks alright * Completed work. Unit tests? * Use ComboBox instead * Add telemetry * Update text
This commit is contained in:
@@ -937,4 +937,16 @@
|
||||
<data name="ColorPicker_Editor.Text" xml:space="preserve">
|
||||
<value>Editor</value>
|
||||
</data>
|
||||
<data name="FancyZones_OverlappingZonesLargest.Content" xml:space="preserve">
|
||||
<value>Activate the largest zone by area</value>
|
||||
</data>
|
||||
<data name="FancyZones_OverlappingZonesPositional.Content" xml:space="preserve">
|
||||
<value>Split the overlapped area into multiple activation targets</value>
|
||||
</data>
|
||||
<data name="FancyZones_OverlappingZonesSmallest.Content" xml:space="preserve">
|
||||
<value>Activate the smallest zone by area</value>
|
||||
</data>
|
||||
<data name="FancyZones_OverlappingZonesLabel.Text" xml:space="preserve">
|
||||
<value>When multiple zones overlap:</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -19,4 +19,7 @@
|
||||
|
||||
<!-- MaxWidth of the content panel, similar to W10 Settings -->
|
||||
<x:Double x:Key="MaxContentWidth">460</x:Double>
|
||||
|
||||
<!-- Maximum Width of a combo box inside the content panel -->
|
||||
<x:Double x:Key="MaxComboBoxWidth">444</x:Double>
|
||||
</ResourceDictionary>
|
||||
|
||||
@@ -125,6 +125,20 @@
|
||||
Margin="{StaticResource XSmallTopMargin}"
|
||||
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"/>
|
||||
|
||||
<TextBlock x:Uid="FancyZones_OverlappingZonesLabel"
|
||||
Margin="{StaticResource SmallTopMargin}"
|
||||
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
||||
|
||||
<ComboBox Name="FancyZones_OverlappingZonesComboBox"
|
||||
x:Uid="FancyZones_OverlappingZonesComboBox"
|
||||
SelectedIndex="{x:Bind Path=ViewModel.OverlappingZonesAlgorithmIndex, Mode=TwoWay}"
|
||||
VerticalAlignment="Center"
|
||||
Width="{StaticResource MaxComboBoxWidth}"
|
||||
Margin="{StaticResource SmallTopMargin}">
|
||||
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesSmallest" />
|
||||
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesLargest" />
|
||||
<ComboBoxItem x:Uid="FancyZones_OverlappingZonesPositional" />
|
||||
</ComboBox>
|
||||
|
||||
<TextBlock x:Uid="FancyZones_WindowBehavior_GroupSettings"
|
||||
Style="{StaticResource SettingsGroupTitleStyle}"
|
||||
|
||||
Reference in New Issue
Block a user