mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-31 22:45:32 +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
|
AUTOUPDATE
|
||||||
available
|
available
|
||||||
AValid
|
AValid
|
||||||
|
awakeness
|
||||||
awakeversion
|
awakeversion
|
||||||
AWAYMODE
|
AWAYMODE
|
||||||
AYUV
|
AYUV
|
||||||
|
@@ -148,43 +148,19 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ActivationOpensEditor
|
public int ActivationBehavior
|
||||||
{
|
{
|
||||||
get => _colorPickerSettings.Properties.ActivationAction == ColorPickerActivationAction.OpenEditor;
|
get
|
||||||
set
|
|
||||||
{
|
{
|
||||||
if (value && _colorPickerSettings.Properties.ActivationAction != ColorPickerActivationAction.OpenEditor)
|
return (int)_colorPickerSettings.Properties.ActivationAction;
|
||||||
{
|
|
||||||
_colorPickerSettings.Properties.ActivationAction = ColorPickerActivationAction.OpenEditor;
|
|
||||||
OnPropertyChanged(nameof(ActivationOpensEditor));
|
|
||||||
NotifySettingsChanged();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public bool ActivationOpensColorPickerOnly
|
|
||||||
{
|
|
||||||
get => _colorPickerSettings.Properties.ActivationAction == ColorPickerActivationAction.OpenOnlyColorPicker;
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value && _colorPickerSettings.Properties.ActivationAction != ColorPickerActivationAction.OpenOnlyColorPicker)
|
if (value != (int)_colorPickerSettings.Properties.ActivationAction)
|
||||||
{
|
{
|
||||||
_colorPickerSettings.Properties.ActivationAction = ColorPickerActivationAction.OpenOnlyColorPicker;
|
_colorPickerSettings.Properties.ActivationAction = (ColorPickerActivationAction)value;
|
||||||
OnPropertyChanged(nameof(ActivationOpensColorPickerOnly));
|
OnPropertyChanged(nameof(ActivationBehavior));
|
||||||
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));
|
|
||||||
NotifySettingsChanged();
|
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">
|
<Compile Include="Controls\TextBlockControl.xaml.cs">
|
||||||
<DependentUpon>TextBlockControl.xaml</DependentUpon>
|
<DependentUpon>TextBlockControl.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Converters\AwakeModeToBoolConverter.cs" />
|
<Compile Include="Converters\AwakeModeToIntConverter.cs" />
|
||||||
<Compile Include="Converters\ImageResizerFitToStringConverter.cs" />
|
<Compile Include="Converters\ImageResizerFitToStringConverter.cs" />
|
||||||
<Compile Include="Converters\ImageResizerUnitToStringConverter.cs" />
|
<Compile Include="Converters\ImageResizerUnitToStringConverter.cs" />
|
||||||
<Compile Include="Converters\UpdateStateToBoolConverter.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">
|
<data name="ColorPicker_CopiedColorRepresentation.Header" xml:space="preserve">
|
||||||
<value>Default color format</value>
|
<value>Default color format</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ColorPickerFirst.Text" xml:space="preserve">
|
<data name="ColorPickerFirst.Content" xml:space="preserve">
|
||||||
<value>Color Picker with editor mode enabled</value>
|
<value>Pick a color and open editor</value>
|
||||||
<comment>do not loc the product name</comment>
|
|
||||||
</data>
|
</data>
|
||||||
<data name="ColorPickerFirst_Accessible.AutomationProperties.Name" xml:space="preserve">
|
<data name="EditorFirst.Content" xml:space="preserve">
|
||||||
<value>Color Picker with editor mode enabled</value>
|
<value>Open editor</value>
|
||||||
<comment>do not loc the product name</comment>
|
|
||||||
</data>
|
</data>
|
||||||
<data name="ColorPickerFirst_Description.Text" xml:space="preserve">
|
<data name="ColorPickerOnly.Content" xml:space="preserve">
|
||||||
<value>Pick a color from the screen, copy formatted value to clipboard, then to the editor</value>
|
<value>Only pick a color</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>
|
</data>
|
||||||
<data name="ColorPicker_ActivationAction.Header" xml:space="preserve">
|
<data name="ColorPicker_ActivationAction.Header" xml:space="preserve">
|
||||||
<value>Activation behavior</value>
|
<value>Activation behavior</value>
|
||||||
@@ -1050,20 +1041,6 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
|
|||||||
<data name="MadeWithOssLove.Text" xml:space="preserve">
|
<data name="MadeWithOssLove.Text" xml:space="preserve">
|
||||||
<value>Made with 💗 by Microsoft and the PowerToys community.</value>
|
<value>Made with 💗 by Microsoft and the PowerToys community.</value>
|
||||||
</data>
|
</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">
|
<data name="ColorPicker_ColorFormats.Header" xml:space="preserve">
|
||||||
<value>Color formats</value>
|
<value>Color formats</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -1098,11 +1075,28 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
|
|||||||
<value>Small</value>
|
<value>Small</value>
|
||||||
<comment>The size of the image</comment>
|
<comment>The size of the image</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="FancyZones_MoveWindowBasedOnRelativePosition.Content" xml:space="preserve">
|
<data name="FancyZones_MoveWindowBasedOnRelativePosition_Accessible.AutomationProperties.Name" xml:space="preserve">
|
||||||
<value>Win + Up/Down/Left/Right to move windows based on relative position</value>
|
<value>Windows key + Up, down, left or right arrow key to move windows based on relative position</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="FancyZones_MoveWindowLeftRightBasedOnZoneIndex.Content" xml:space="preserve">
|
<data name="FancyZones_MoveWindowLeftRightBasedOnZoneIndex_Accessible.AutomationProperties.Name" xml:space="preserve">
|
||||||
<value>Win + Left/Right to move windows based on zone index</value>
|
<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>
|
||||||
<data name="ColorPicker_Editor.Header" xml:space="preserve">
|
<data name="ColorPicker_Editor.Header" xml:space="preserve">
|
||||||
<value>Editor</value>
|
<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>
|
||||||
<data name="Awake_EnableAwake.Header" xml:space="preserve">
|
<data name="Awake_EnableAwake.Header" xml:space="preserve">
|
||||||
<value>Enable Awake</value>
|
<value>Enable Awake</value>
|
||||||
|
<comment>Awake is a product name, do not loc</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="Awake_NoKeepAwakeContent.Text" xml:space="preserve">
|
<data name="Awake_NoKeepAwake.Content" xml:space="preserve">
|
||||||
<value>Inactive</value>
|
<value>Keep using the selected power plan</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Awake_IndefiniteKeepAwakeContent.Text" xml:space="preserve">
|
<data name="Awake_IndefiniteKeepAwake.Content" xml:space="preserve">
|
||||||
<value>Keep awake indefinitely</value>
|
<value>Keep awake indefinitely</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Awake_TemporaryKeepAwakeContent.Text" xml:space="preserve">
|
<data name="Awake_TemporaryKeepAwake.Content" xml:space="preserve">
|
||||||
<value>Keep awake temporarily</value>
|
<value>Keep awake temporarily</value>
|
||||||
</data>
|
</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">
|
<data name="Awake_EnableDisplayKeepAwake.Header" xml:space="preserve">
|
||||||
<value>Keep screen on</value>
|
<value>Keep screen on</value>
|
||||||
</data>
|
</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>
|
<value>See what's new</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Awake_Mode.Description" xml:space="preserve">
|
<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>
|
||||||
<data name="ExcludedApps.Header" xml:space="preserve">
|
<data name="ExcludedApps.Header" xml:space="preserve">
|
||||||
<value>Excluded apps</value>
|
<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>
|
<value>New size</value>
|
||||||
<comment>First part of the default name of new sizes that can be added in PT's settings ui.</comment>
|
<comment>First part of the default name of new sizes that can be added in PT's settings ui.</comment>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Awake_TimeBeforeAwake.Header" xml:space="preserve">
|
||||||
|
<value>Time before returning to the previous awakeness state</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
@@ -4,14 +4,14 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
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:muxc="using:Microsoft.UI.Xaml.Controls"
|
||||||
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
AutomationProperties.LandmarkType="Main">
|
AutomationProperties.LandmarkType="Main">
|
||||||
|
|
||||||
<Page.Resources>
|
<Page.Resources>
|
||||||
<c:AwakeModeToBoolConverter x:Key="AwakeModeToBoolConverter" />
|
<converters:AwakeModeToIntConverter x:Key="AwakeModeToIntConverter" />
|
||||||
</Page.Resources>
|
</Page.Resources>
|
||||||
|
|
||||||
<controls:SettingsPageControl x:Uid="Awake" IsTabStop="False"
|
<controls:SettingsPageControl x:Uid="Awake" IsTabStop="False"
|
||||||
@@ -29,86 +29,50 @@
|
|||||||
</controls:Setting>
|
</controls:Setting>
|
||||||
|
|
||||||
<controls:SettingsGroup x:Uid="Awake_Behavior_GroupSettings" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
<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 x:Uid="Awake_EnableDisplayKeepAwake" Icon="">
|
||||||
<controls:Setting.ActionContent>
|
<controls:Setting.ActionContent>
|
||||||
<ToggleSwitch IsOn="{x:Bind ViewModel.KeepDisplayOn, Mode=TwoWay}" />
|
<ToggleSwitch IsOn="{x:Bind ViewModel.KeepDisplayOn, Mode=TwoWay}" />
|
||||||
</controls:Setting.ActionContent>
|
</controls:Setting.ActionContent>
|
||||||
</controls:Setting>
|
</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>
|
</controls:SettingsGroup>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</controls:SettingsPageControl.ModuleContent>
|
</controls:SettingsPageControl.ModuleContent>
|
||||||
|
@@ -34,50 +34,16 @@
|
|||||||
</controls:Setting.ActionContent>
|
</controls:Setting.ActionContent>
|
||||||
</controls:Setting>
|
</controls:Setting>
|
||||||
|
|
||||||
<controls:SettingExpander IsExpanded="True" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
<controls:Setting x:Uid="ColorPicker_ActivationAction" Icon="" >
|
||||||
<controls:SettingExpander.Header>
|
<controls:Setting.ActionContent>
|
||||||
<controls:Setting x:Uid="ColorPicker_ActivationAction" Icon="" Style="{StaticResource ExpanderHeaderSettingStyle}" />
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||||
</controls:SettingExpander.Header>
|
SelectedIndex="{x:Bind Path=ViewModel.ActivationBehavior, Mode=TwoWay}" >
|
||||||
<controls:SettingExpander.Content>
|
<ComboBoxItem x:Uid="EditorFirst"/>
|
||||||
<StackPanel Padding="56,16,16,24" Spacing="12">
|
<ComboBoxItem x:Uid="ColorPickerFirst"/>
|
||||||
<RadioButton x:Uid="ColorPickerFirst_Accessible" IsChecked="{Binding ActivationOpensColorPickerAndEditor, Mode=TwoWay}" GroupName="ColorPickerActivationAction">
|
<ComboBoxItem x:Uid="ColorPickerOnly"/>
|
||||||
<RadioButton.Content>
|
</ComboBox>
|
||||||
<StackPanel>
|
</controls:Setting.ActionContent>
|
||||||
<TextBlock x:Uid="ColorPickerFirst"/>
|
</controls:Setting>
|
||||||
<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:SettingsGroup>
|
</controls:SettingsGroup>
|
||||||
|
|
||||||
<controls:SettingsGroup x:Uid="ColorFormats" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
<controls:SettingsGroup x:Uid="ColorFormats" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
AutomationProperties.LandmarkType="Main">
|
AutomationProperties.LandmarkType="Main">
|
||||||
|
|
||||||
<Page.Resources>
|
<Page.Resources>
|
||||||
|
<converters:BoolToObjectConverter x:Key="BoolToComboBoxIndexConverter" TrueValue="1" FalseValue="0"/>
|
||||||
<converters:StringFormatConverter x:Key="StringFormatConverter"/>
|
<converters:StringFormatConverter x:Key="StringFormatConverter"/>
|
||||||
</Page.Resources>
|
</Page.Resources>
|
||||||
|
|
||||||
@@ -226,16 +227,29 @@
|
|||||||
|
|
||||||
<controls:SettingExpander.Content>
|
<controls:SettingExpander.Content>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<RadioButton x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex"
|
<controls:Setting x:Uid="FancyZones_MoveWindow" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}" Style="{StaticResource ExpanderContentSettingStyle}">
|
||||||
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnZoneIndex}"
|
<controls:Setting.ActionContent>
|
||||||
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"
|
<ComboBox SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnPosition, Converter={StaticResource BoolToComboBoxIndexConverter}}" MinHeight="56" MinWidth="{StaticResource SettingActionControlMinWidth}">
|
||||||
GroupName="OverrideSnapGroup"
|
<ComboBoxItem x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex_Accessible">
|
||||||
Margin="{StaticResource ExpanderSettingMargin}"/>
|
<StackPanel Orientation="Vertical" Spacing="4">
|
||||||
<RadioButton x:Uid="FancyZones_MoveWindowBasedOnRelativePosition"
|
<TextBlock x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex"/>
|
||||||
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.MoveWindowsBasedOnPosition}"
|
<TextBlock FontFamily="{ThemeResource SymbolThemeFontFamily}" Style="{StaticResource SecondaryTextStyle}">
|
||||||
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.SnapHotkeysCategoryEnabled}"
|
<Run x:Uid="FancyZones_MoveWindowLeftRightBasedOnZoneIndex_Description" />
|
||||||
GroupName="OverrideSnapGroup"
|
</TextBlock>
|
||||||
Margin="{StaticResource ExpanderSettingMargin}"/>
|
</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}" />
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
||||||
<CheckBox x:Uid="FancyZones_MoveWindowsAcrossAllMonitorsCheckBoxControl"
|
<CheckBox x:Uid="FancyZones_MoveWindowsAcrossAllMonitorsCheckBoxControl"
|
||||||
Margin="56,8,16,8"
|
Margin="56,8,16,8"
|
||||||
|
@@ -179,12 +179,11 @@
|
|||||||
|
|
||||||
<controls:Setting x:Uid="ImageResizer_Encoding">
|
<controls:Setting x:Uid="ImageResizer_Encoding">
|
||||||
<controls:Setting.ActionContent>
|
<controls:Setting.ActionContent>
|
||||||
<muxc:NumberBox
|
<Slider
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Maximum="100"
|
Maximum="100"
|
||||||
Value="{x:Bind Mode=TwoWay, Path=ViewModel.JPEGQualityLevel}"
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.JPEGQualityLevel}"
|
||||||
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
||||||
SpinButtonPlacementMode="Compact"
|
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
/>
|
/>
|
||||||
</controls:Setting.ActionContent>
|
</controls:Setting.ActionContent>
|
||||||
|
Reference in New Issue
Block a user