mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-30 22:15:11 +00:00
[Settings] A11y fixes (2) (#13534)
* Replace radiobuttons with combobox * Update Resources.resw * Replaced radiobuttons with ComboBox * Update ColorPickerPage.xaml * Updates * Typo fixes * PR feedback Co-authored-by: Laute <Niels.Laute@philips.com>
This commit is contained in:
1
.github/actions/spell-check/expect.txt
vendored
1
.github/actions/spell-check/expect.txt
vendored
@@ -128,6 +128,7 @@ AUTOSIZECOLUMNS
|
||||
AUTOUPDATE
|
||||
available
|
||||
AValid
|
||||
awakeness
|
||||
awakeversion
|
||||
AWAYMODE
|
||||
AYUV
|
||||
|
@@ -148,43 +148,19 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public bool ActivationOpensEditor
|
||||
public int ActivationBehavior
|
||||
{
|
||||
get => _colorPickerSettings.Properties.ActivationAction == ColorPickerActivationAction.OpenEditor;
|
||||
set
|
||||
get
|
||||
{
|
||||
if (value && _colorPickerSettings.Properties.ActivationAction != ColorPickerActivationAction.OpenEditor)
|
||||
{
|
||||
_colorPickerSettings.Properties.ActivationAction = ColorPickerActivationAction.OpenEditor;
|
||||
OnPropertyChanged(nameof(ActivationOpensEditor));
|
||||
NotifySettingsChanged();
|
||||
}
|
||||
return (int)_colorPickerSettings.Properties.ActivationAction;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ActivationOpensColorPickerOnly
|
||||
{
|
||||
get => _colorPickerSettings.Properties.ActivationAction == ColorPickerActivationAction.OpenOnlyColorPicker;
|
||||
set
|
||||
{
|
||||
if (value && _colorPickerSettings.Properties.ActivationAction != ColorPickerActivationAction.OpenOnlyColorPicker)
|
||||
if (value != (int)_colorPickerSettings.Properties.ActivationAction)
|
||||
{
|
||||
_colorPickerSettings.Properties.ActivationAction = ColorPickerActivationAction.OpenOnlyColorPicker;
|
||||
OnPropertyChanged(nameof(ActivationOpensColorPickerOnly));
|
||||
NotifySettingsChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool ActivationOpensColorPickerAndEditor
|
||||
{
|
||||
get => _colorPickerSettings.Properties.ActivationAction == ColorPickerActivationAction.OpenColorPickerAndThenEditor;
|
||||
set
|
||||
{
|
||||
if (value && _colorPickerSettings.Properties.ActivationAction != ColorPickerActivationAction.OpenColorPickerAndThenEditor)
|
||||
{
|
||||
_colorPickerSettings.Properties.ActivationAction = ColorPickerActivationAction.OpenColorPickerAndThenEditor;
|
||||
OnPropertyChanged(nameof(ActivationOpensEditor));
|
||||
_colorPickerSettings.Properties.ActivationAction = (ColorPickerActivationAction)value;
|
||||
OnPropertyChanged(nameof(ActivationBehavior));
|
||||
NotifySettingsChanged();
|
||||
}
|
||||
}
|
||||
|
@@ -1,41 +0,0 @@
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
using Microsoft.PowerToys.Settings.UI.Library;
|
||||
using Windows.UI.Xaml.Data;
|
||||
|
||||
namespace Microsoft.PowerToys.Settings.UI.Converters
|
||||
{
|
||||
public sealed class AwakeModeToBoolConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, string language)
|
||||
{
|
||||
if (targetType != typeof(bool?))
|
||||
{
|
||||
throw new InvalidOperationException("The target type needs to be a boolean.");
|
||||
}
|
||||
|
||||
if (parameter == null)
|
||||
{
|
||||
throw new NullReferenceException("Parameter cannot be null for the PowerToys Awake mode to bool converter.");
|
||||
}
|
||||
|
||||
var expectedMode = (AwakeMode)Enum.Parse(typeof(AwakeMode), parameter.ToString());
|
||||
var currentMode = (AwakeMode)value;
|
||||
|
||||
return currentMode.Equals(expectedMode);
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
||||
{
|
||||
if (parameter == null)
|
||||
{
|
||||
throw new NullReferenceException("Parameter cannot be null for the PowerToys Awake mode to bool converter.");
|
||||
}
|
||||
|
||||
return (AwakeMode)Enum.Parse(typeof(AwakeMode), parameter.ToString());
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
using Microsoft.PowerToys.Settings.UI.Library;
|
||||
using Windows.UI.Xaml.Data;
|
||||
|
||||
namespace Microsoft.PowerToys.Settings.UI.Converters
|
||||
{
|
||||
public sealed class AwakeModeToIntConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, string language)
|
||||
{
|
||||
var mode = (AwakeMode)value;
|
||||
return (int)mode;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
||||
{
|
||||
return (AwakeMode)Enum.ToObject(typeof(AwakeMode), (int)value);
|
||||
}
|
||||
}
|
||||
}
|
@@ -119,7 +119,7 @@
|
||||
<Compile Include="Controls\TextBlockControl.xaml.cs">
|
||||
<DependentUpon>TextBlockControl.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Converters\AwakeModeToBoolConverter.cs" />
|
||||
<Compile Include="Converters\AwakeModeToIntConverter.cs" />
|
||||
<Compile Include="Converters\ImageResizerFitToStringConverter.cs" />
|
||||
<Compile Include="Converters\ImageResizerUnitToStringConverter.cs" />
|
||||
<Compile Include="Converters\UpdateStateToBoolConverter.cs" />
|
||||
|
@@ -991,23 +991,14 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
|
||||
<data name="ColorPicker_CopiedColorRepresentation.Header" xml:space="preserve">
|
||||
<value>Default color format</value>
|
||||
</data>
|
||||
<data name="ColorPickerFirst.Text" xml:space="preserve">
|
||||
<value>Color Picker with editor mode enabled</value>
|
||||
<comment>do not loc the product name</comment>
|
||||
<data name="ColorPickerFirst.Content" xml:space="preserve">
|
||||
<value>Pick a color and open editor</value>
|
||||
</data>
|
||||
<data name="ColorPickerFirst_Accessible.AutomationProperties.Name" xml:space="preserve">
|
||||
<value>Color Picker with editor mode enabled</value>
|
||||
<comment>do not loc the product name</comment>
|
||||
<data name="EditorFirst.Content" xml:space="preserve">
|
||||
<value>Open editor</value>
|
||||
</data>
|
||||
<data name="ColorPickerFirst_Description.Text" xml:space="preserve">
|
||||
<value>Pick a color from the screen, copy formatted value to clipboard, then to the editor</value>
|
||||
<comment>do not loc the product name</comment>
|
||||
</data>
|
||||
<data name="EditorFirst.Text" xml:space="preserve">
|
||||
<value>Editor</value>
|
||||
</data>
|
||||
<data name="EditorFirst_Accessible.AutomationProperties.Name" xml:space="preserve">
|
||||
<value>Editor</value>
|
||||
<data name="ColorPickerOnly.Content" xml:space="preserve">
|
||||
<value>Only pick a color</value>
|
||||
</data>
|
||||
<data name="ColorPicker_ActivationAction.Header" xml:space="preserve">
|
||||
<value>Activation behavior</value>
|
||||
@@ -1050,20 +1041,6 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
|
||||
<data name="MadeWithOssLove.Text" xml:space="preserve">
|
||||
<value>Made with 💗 by Microsoft and the PowerToys community.</value>
|
||||
</data>
|
||||
<data name="ColorPickerOnly.Text" xml:space="preserve">
|
||||
<value>Color Picker only</value>
|
||||
<comment>do not loc the product name</comment>
|
||||
</data>
|
||||
<data name="ColorPickerOnly_Accessible.AutomationProperties.Name" xml:space="preserve">
|
||||
<value>Color Picker only</value>
|
||||
<comment>do not loc the product name</comment>
|
||||
</data>
|
||||
<data name="ColorPickerOnly_Description.Text" xml:space="preserve">
|
||||
<value>Pick a color from the screen and copy formatted value to clipboard</value>
|
||||
</data>
|
||||
<data name="EditorFirst_Description.Text" xml:space="preserve">
|
||||
<value>Open directly into the editor mode</value>
|
||||
</data>
|
||||
<data name="ColorPicker_ColorFormats.Header" xml:space="preserve">
|
||||
<value>Color formats</value>
|
||||
</data>
|
||||
@@ -1098,11 +1075,28 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
|
||||
<value>Small</value>
|
||||
<comment>The size of the image</comment>
|
||||
</data>
|
||||
<data name="FancyZones_MoveWindowBasedOnRelativePosition.Content" xml:space="preserve">
|
||||
<value>Win + Up/Down/Left/Right to move windows based on relative position</value>
|
||||
<data name="FancyZones_MoveWindowBasedOnRelativePosition_Accessible.AutomationProperties.Name" xml:space="preserve">
|
||||
<value>Windows key + Up, down, left or right arrow key to move windows based on relative position</value>
|
||||
</data>
|
||||
<data name="FancyZones_MoveWindowLeftRightBasedOnZoneIndex.Content" xml:space="preserve">
|
||||
<value>Win + Left/Right to move windows based on zone index</value>
|
||||
<data name="FancyZones_MoveWindowLeftRightBasedOnZoneIndex_Accessible.AutomationProperties.Name" xml:space="preserve">
|
||||
<value>Windows key + Left or right arrow keys to move windows based on zone index</value>
|
||||
</data>
|
||||
<data name="FancyZones_MoveWindowBasedOnRelativePosition_Description.Text" xml:space="preserve">
|
||||
<value>Windows key + or </value>
|
||||
<comment>Do not loc the icons (hex numbers)</comment>
|
||||
</data>
|
||||
<data name="FancyZones_MoveWindowLeftRightBasedOnZoneIndex_Description.Text" xml:space="preserve">
|
||||
<value>Windows key + or </value>
|
||||
<comment>Do not loc the icons (hex numbers)</comment>
|
||||
</data>
|
||||
<data name="FancyZones_MoveWindowBasedOnRelativePosition.Text" xml:space="preserve">
|
||||
<value>Relative position</value>
|
||||
</data>
|
||||
<data name="FancyZones_MoveWindow.Header" xml:space="preserve">
|
||||
<value>Move windows based on</value>
|
||||
</data>
|
||||
<data name="FancyZones_MoveWindowLeftRightBasedOnZoneIndex.Text" xml:space="preserve">
|
||||
<value>Zone index</value>
|
||||
</data>
|
||||
<data name="ColorPicker_Editor.Header" xml:space="preserve">
|
||||
<value>Editor</value>
|
||||
@@ -1403,25 +1397,17 @@ From there, simply click on a Markdown file, PDF file or SVG icon in the File Ex
|
||||
</data>
|
||||
<data name="Awake_EnableAwake.Header" xml:space="preserve">
|
||||
<value>Enable Awake</value>
|
||||
<comment>Awake is a product name, do not loc</comment>
|
||||
</data>
|
||||
<data name="Awake_NoKeepAwakeContent.Text" xml:space="preserve">
|
||||
<value>Inactive</value>
|
||||
<data name="Awake_NoKeepAwake.Content" xml:space="preserve">
|
||||
<value>Keep using the selected power plan</value>
|
||||
</data>
|
||||
<data name="Awake_IndefiniteKeepAwakeContent.Text" xml:space="preserve">
|
||||
<data name="Awake_IndefiniteKeepAwake.Content" xml:space="preserve">
|
||||
<value>Keep awake indefinitely</value>
|
||||
</data>
|
||||
<data name="Awake_TemporaryKeepAwakeContent.Text" xml:space="preserve">
|
||||
<data name="Awake_TemporaryKeepAwake.Content" xml:space="preserve">
|
||||
<value>Keep awake temporarily</value>
|
||||
</data>
|
||||
<data name="Awake_NoKeepAwakeDescription.Text" xml:space="preserve">
|
||||
<value>Your PC operates according to its current power plan</value>
|
||||
</data>
|
||||
<data name="Awake_IndefiniteKeepAwakeDescription.Text" xml:space="preserve">
|
||||
<value>Keeps your PC awake until the setting is disabled</value>
|
||||
</data>
|
||||
<data name="Awake_TemporaryKeepAwakeDescription.Text" xml:space="preserve">
|
||||
<value>Keeps your PC awake until the set time elapses</value>
|
||||
</data>
|
||||
<data name="Awake_EnableDisplayKeepAwake.Header" xml:space="preserve">
|
||||
<value>Keep screen on</value>
|
||||
</data>
|
||||
@@ -1519,7 +1505,7 @@ From there, simply click on a Markdown file, PDF file or SVG icon in the File Ex
|
||||
<value>See what's new</value>
|
||||
</data>
|
||||
<data name="Awake_Mode.Description" xml:space="preserve">
|
||||
<value>Set the preferred behaviour of Awake</value>
|
||||
<value>Manage the state of your device when Awake is active</value>
|
||||
</data>
|
||||
<data name="ExcludedApps.Header" xml:space="preserve">
|
||||
<value>Excluded apps</value>
|
||||
@@ -1648,4 +1634,7 @@ From there, simply click on a Markdown file, PDF file or SVG icon in the File Ex
|
||||
<value>New size</value>
|
||||
<comment>First part of the default name of new sizes that can be added in PT's settings ui.</comment>
|
||||
</data>
|
||||
<data name="Awake_TimeBeforeAwake.Header" xml:space="preserve">
|
||||
<value>Time before returning to the previous awakeness state</value>
|
||||
</data>
|
||||
</root>
|
@@ -4,14 +4,14 @@
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:c="using:Microsoft.PowerToys.Settings.UI.Converters"
|
||||
xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters"
|
||||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
||||
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
||||
mc:Ignorable="d"
|
||||
AutomationProperties.LandmarkType="Main">
|
||||
|
||||
<Page.Resources>
|
||||
<c:AwakeModeToBoolConverter x:Key="AwakeModeToBoolConverter" />
|
||||
<converters:AwakeModeToIntConverter x:Key="AwakeModeToIntConverter" />
|
||||
</Page.Resources>
|
||||
|
||||
<controls:SettingsPageControl x:Uid="Awake" IsTabStop="False"
|
||||
@@ -29,86 +29,50 @@
|
||||
</controls:Setting>
|
||||
|
||||
<controls:SettingsGroup x:Uid="Awake_Behavior_GroupSettings" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
||||
|
||||
<controls:Setting x:Uid="Awake_Mode" Icon="" >
|
||||
<controls:Setting.ActionContent>
|
||||
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||
SelectedIndex="{x:Bind Path=ViewModel.Mode, Mode=TwoWay, Converter={StaticResource AwakeModeToIntConverter}}">
|
||||
<ComboBoxItem x:Uid="Awake_NoKeepAwake"/>
|
||||
<ComboBoxItem x:Uid="Awake_IndefiniteKeepAwake"/>
|
||||
<ComboBoxItem x:Uid="Awake_TemporaryKeepAwake"/>
|
||||
</ComboBox>
|
||||
</controls:Setting.ActionContent>
|
||||
</controls:Setting>
|
||||
|
||||
<controls:Setting x:Uid="Awake_TimeBeforeAwake" Icon="" Visibility="{x:Bind ViewModel.IsTimeConfigurationEnabled, Mode=OneWay}">
|
||||
<controls:Setting.ActionContent>
|
||||
<StackPanel
|
||||
Orientation="Horizontal">
|
||||
<muxc:NumberBox x:Uid="Awake_TemporaryKeepAwake_Hours"
|
||||
Value="{x:Bind ViewModel.Hours, Mode=TwoWay}"
|
||||
Minimum="0"
|
||||
SpinButtonPlacementMode="Compact"
|
||||
HorizontalAlignment="Left"
|
||||
Width="96"
|
||||
SmallChange="1"
|
||||
LargeChange="5"/>
|
||||
<muxc:NumberBox x:Uid="Awake_TemporaryKeepAwake_Minutes"
|
||||
Value="{x:Bind ViewModel.Minutes, Mode=TwoWay}"
|
||||
Minimum="0"
|
||||
SpinButtonPlacementMode="Compact"
|
||||
Margin="8,0,0,0"
|
||||
HorizontalAlignment="Left"
|
||||
Width="96"
|
||||
Maximum="60"
|
||||
SmallChange="1"
|
||||
LargeChange="5"/>
|
||||
</StackPanel>
|
||||
</controls:Setting.ActionContent>
|
||||
</controls:Setting>
|
||||
|
||||
<controls:Setting x:Uid="Awake_EnableDisplayKeepAwake" Icon="">
|
||||
<controls:Setting.ActionContent>
|
||||
<ToggleSwitch IsOn="{x:Bind ViewModel.KeepDisplayOn, Mode=TwoWay}" />
|
||||
</controls:Setting.ActionContent>
|
||||
</controls:Setting>
|
||||
|
||||
<controls:SettingExpander IsExpanded="True">
|
||||
<controls:SettingExpander.Header>
|
||||
<controls:Setting x:Uid="Awake_Mode"
|
||||
Icon=""
|
||||
Style="{StaticResource ExpanderHeaderSettingStyle}" />
|
||||
</controls:SettingExpander.Header>
|
||||
<controls:SettingExpander.Content>
|
||||
<StackPanel Padding="56,16,16,24"
|
||||
Spacing="12">
|
||||
<RadioButton x:Uid="Awake_NoKeepAwake"
|
||||
IsChecked="{x:Bind Path=ViewModel.Mode, Mode=TwoWay, Converter={StaticResource AwakeModeToBoolConverter}, ConverterParameter=0}">
|
||||
<RadioButton.Content>
|
||||
<TextBlock TextWrapping="WrapWholeWords"
|
||||
LineHeight="20">
|
||||
<Run x:Uid="Awake_NoKeepAwakeContent"/>
|
||||
<LineBreak/>
|
||||
<Run Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
x:Uid="Awake_NoKeepAwakeDescription"/>
|
||||
</TextBlock>
|
||||
</RadioButton.Content>
|
||||
</RadioButton>
|
||||
<RadioButton x:Uid="Awake_IndefiniteKeepAwake"
|
||||
IsChecked="{x:Bind Path=ViewModel.Mode, Mode=TwoWay, Converter={StaticResource AwakeModeToBoolConverter}, ConverterParameter=1}">
|
||||
<RadioButton.Content>
|
||||
<TextBlock TextWrapping="WrapWholeWords"
|
||||
LineHeight="20">
|
||||
<Run x:Uid="Awake_IndefiniteKeepAwakeContent"/>
|
||||
<LineBreak/>
|
||||
<Run Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
x:Uid="Awake_IndefiniteKeepAwakeDescription"/>
|
||||
</TextBlock>
|
||||
</RadioButton.Content>
|
||||
</RadioButton>
|
||||
<RadioButton x:Uid="Awake_TemporaryKeepAwake"
|
||||
IsChecked="{x:Bind Path=ViewModel.Mode, Mode=TwoWay, Converter={StaticResource AwakeModeToBoolConverter}, ConverterParameter=2}">
|
||||
<RadioButton.Content>
|
||||
<TextBlock TextWrapping="WrapWholeWords"
|
||||
LineHeight="20">
|
||||
<Run x:Uid="Awake_TemporaryKeepAwakeContent"/>
|
||||
<LineBreak/>
|
||||
<Run Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
x:Uid="Awake_TemporaryKeepAwakeDescription"/>
|
||||
</TextBlock>
|
||||
</RadioButton.Content>
|
||||
</RadioButton>
|
||||
<StackPanel AutomationProperties.LabeledBy="{Binding ElementName=ModeTitleLabel}"
|
||||
Margin="0,-8,0,0">
|
||||
|
||||
<StackPanel Margin="28,8,0,0"
|
||||
Orientation="Horizontal">
|
||||
<muxc:NumberBox x:Uid="Awake_TemporaryKeepAwake_Hours"
|
||||
Value="{x:Bind ViewModel.Hours, Mode=TwoWay}"
|
||||
IsEnabled="{x:Bind ViewModel.IsTimeConfigurationEnabled, Mode=OneWay}"
|
||||
Minimum="0"
|
||||
SpinButtonPlacementMode="Compact"
|
||||
HorizontalAlignment="Left"
|
||||
MinWidth="90"
|
||||
SmallChange="1"
|
||||
LargeChange="5"/>
|
||||
<muxc:NumberBox x:Uid="Awake_TemporaryKeepAwake_Minutes"
|
||||
Value="{x:Bind ViewModel.Minutes, Mode=TwoWay}"
|
||||
IsEnabled="{x:Bind ViewModel.IsTimeConfigurationEnabled, Mode=OneWay}"
|
||||
Minimum="0"
|
||||
SpinButtonPlacementMode="Compact"
|
||||
Margin="8,0,0,0"
|
||||
HorizontalAlignment="Left"
|
||||
MinWidth="90"
|
||||
SmallChange="1"
|
||||
LargeChange="5"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</controls:SettingExpander.Content>
|
||||
</controls:SettingExpander>
|
||||
</controls:SettingsGroup>
|
||||
</StackPanel>
|
||||
</controls:SettingsPageControl.ModuleContent>
|
||||
|
@@ -34,50 +34,16 @@
|
||||
</controls:Setting.ActionContent>
|
||||
</controls:Setting>
|
||||
|
||||
<controls:SettingExpander IsExpanded="True" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
||||
<controls:SettingExpander.Header>
|
||||
<controls:Setting x:Uid="ColorPicker_ActivationAction" Icon="" Style="{StaticResource ExpanderHeaderSettingStyle}" />
|
||||
</controls:SettingExpander.Header>
|
||||
<controls:SettingExpander.Content>
|
||||
<StackPanel Padding="56,16,16,24" Spacing="12">
|
||||
<RadioButton x:Uid="ColorPickerFirst_Accessible" IsChecked="{Binding ActivationOpensColorPickerAndEditor, Mode=TwoWay}" GroupName="ColorPickerActivationAction">
|
||||
<RadioButton.Content>
|
||||
<StackPanel>
|
||||
<TextBlock x:Uid="ColorPickerFirst"/>
|
||||
<controls:TextBlockControl x:Uid="ColorPickerFirst_Description"
|
||||
FontSize="{StaticResource SecondaryTextFontSize}"
|
||||
EnabledForeground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
DisabledForeground="{ThemeResource TextFillColorDisabledBrush}"/>
|
||||
</StackPanel>
|
||||
</RadioButton.Content>
|
||||
</RadioButton>
|
||||
|
||||
<RadioButton x:Uid="EditorFirst_Accessible" IsChecked="{Binding ActivationOpensEditor, Mode=TwoWay}" GroupName="ColorPickerActivationAction">
|
||||
<RadioButton.Content>
|
||||
<StackPanel>
|
||||
<TextBlock x:Uid="EditorFirst"/>
|
||||
<controls:TextBlockControl x:Uid="EditorFirst_Description"
|
||||
FontSize="{StaticResource SecondaryTextFontSize}"
|
||||
EnabledForeground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
DisabledForeground="{ThemeResource TextFillColorDisabledBrush}"/>
|
||||
</StackPanel>
|
||||
</RadioButton.Content>
|
||||
</RadioButton>
|
||||
|
||||
<RadioButton x:Uid="ColorPickerOnly_Accessible" IsChecked="{Binding ActivationOpensColorPickerOnly, Mode=TwoWay}" GroupName="ColorPickerActivationAction">
|
||||
<RadioButton.Content>
|
||||
<StackPanel>
|
||||
<TextBlock x:Uid="ColorPickerOnly"/>
|
||||
<controls:TextBlockControl x:Uid="ColorPickerOnly_Description"
|
||||
FontSize="{StaticResource SecondaryTextFontSize}"
|
||||
EnabledForeground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
DisabledForeground="{ThemeResource TextFillColorDisabledBrush}"/>
|
||||
</StackPanel>
|
||||
</RadioButton.Content>
|
||||
</RadioButton>
|
||||
</StackPanel>
|
||||
</controls:SettingExpander.Content>
|
||||
</controls:SettingExpander>
|
||||
<controls:Setting x:Uid="ColorPicker_ActivationAction" Icon="" >
|
||||
<controls:Setting.ActionContent>
|
||||
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||
SelectedIndex="{x:Bind Path=ViewModel.ActivationBehavior, Mode=TwoWay}" >
|
||||
<ComboBoxItem x:Uid="EditorFirst"/>
|
||||
<ComboBoxItem x:Uid="ColorPickerFirst"/>
|
||||
<ComboBoxItem x:Uid="ColorPickerOnly"/>
|
||||
</ComboBox>
|
||||
</controls:Setting.ActionContent>
|
||||
</controls:Setting>
|
||||
</controls:SettingsGroup>
|
||||
|
||||
<controls:SettingsGroup x:Uid="ColorFormats" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
||||
|
@@ -11,6 +11,7 @@
|
||||
AutomationProperties.LandmarkType="Main">
|
||||
|
||||
<Page.Resources>
|
||||
<converters:BoolToObjectConverter x:Key="BoolToComboBoxIndexConverter" TrueValue="1" FalseValue="0"/>
|
||||
<converters:StringFormatConverter x:Key="StringFormatConverter"/>
|
||||
</Page.Resources>
|
||||
|
||||
@@ -226,16 +227,29 @@
|
||||
|
||||
<controls:SettingExpander.Content>
|
||||
<StackPanel>
|
||||
<RadioButton x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex"
|
||||
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnZoneIndex}"
|
||||
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"
|
||||
GroupName="OverrideSnapGroup"
|
||||
Margin="{StaticResource ExpanderSettingMargin}"/>
|
||||
<RadioButton x:Uid="FancyZones_MoveWindowBasedOnRelativePosition"
|
||||
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnPosition}"
|
||||
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"
|
||||
GroupName="OverrideSnapGroup"
|
||||
Margin="{StaticResource ExpanderSettingMargin}"/>
|
||||
<controls:Setting x:Uid="FancyZones_MoveWindow" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
||||
<controls:Setting.ActionContent>
|
||||
<ComboBox SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnPosition, Converter={StaticResource BoolToComboBoxIndexConverter}}" MinHeight="56" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
||||
<ComboBoxItem x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex_Accessible">
|
||||
<StackPanel Orientation="Vertical" Spacing="4">
|
||||
<TextBlock x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex"/>
|
||||
<TextBlock FontFamily="{ThemeResource SymbolThemeFontFamily}" Style="{StaticResource SecondaryTextStyle}">
|
||||
<Run x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex_Description" />
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</ComboBoxItem>
|
||||
<ComboBoxItem x:Uid="FancyZones_MoveWindowBasedOnRelativePosition_Accessible">
|
||||
<StackPanel Orientation="Vertical" Spacing="4">
|
||||
<TextBlock x:Uid="FancyZones_MoveWindowBasedOnRelativePosition"/>
|
||||
<TextBlock FontFamily="{ThemeResource SymbolThemeFontFamily}" Style="{StaticResource SecondaryTextStyle}">
|
||||
<Run x:Uid="FancyZones_MoveWindowBasedOnRelativePosition_Description" />
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</ComboBoxItem>
|
||||
</ComboBox>
|
||||
</controls:Setting.ActionContent>
|
||||
</controls:Setting>
|
||||
|
||||
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
||||
<CheckBox x:Uid="FancyZones_MoveWindowsAcrossAllMonitorsCheckBoxControl"
|
||||
Margin="56,8,16,8"
|
||||
|
@@ -179,12 +179,11 @@
|
||||
|
||||
<controls:Setting x:Uid="ImageResizer_Encoding">
|
||||
<controls:Setting.ActionContent>
|
||||
<muxc:NumberBox
|
||||
<Slider
|
||||
Minimum="0"
|
||||
Maximum="100"
|
||||
Value="{x:Bind Mode=TwoWay, Path=ViewModel.JPEGQualityLevel}"
|
||||
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||
SpinButtonPlacementMode="Compact"
|
||||
HorizontalAlignment="Right"
|
||||
/>
|
||||
</controls:Setting.ActionContent>
|
||||
|
Reference in New Issue
Block a user