mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
Adjust font: size family; few corner-radii (#25358)
* SettingsCard ActionIcon 16 * Font Family + Size * CornerRadius * Misc * extras * Revert size 16 - 14 To be dealt with via Community * other improvs * other improvs * try to adjust height to fit text * adjust Border sizes to fit text * undo
This commit is contained in:
@@ -47,15 +47,13 @@
|
||||
Command="{x:Bind NewDialogCommand}">
|
||||
<StackPanel
|
||||
Orientation="Horizontal"
|
||||
Spacing="12">
|
||||
<TextBlock
|
||||
Spacing="8">
|
||||
<FontIcon
|
||||
x:Name="Icon"
|
||||
Margin="0,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
||||
FontSize="16"
|
||||
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
|
||||
Text="" />
|
||||
Glyph="" />
|
||||
<TextBlock x:Uid="AddEntry" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
@@ -71,7 +69,7 @@
|
||||
Style="{StaticResource SubtleButtonStyle}">
|
||||
<FontIcon
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
FontSize="14"
|
||||
FontSize="16"
|
||||
Glyph="" />
|
||||
</Button>
|
||||
|
||||
@@ -81,7 +79,7 @@
|
||||
Style="{StaticResource SubtleButtonStyle}">
|
||||
<FontIcon
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
FontSize="14"
|
||||
FontSize="16"
|
||||
Glyph="" />
|
||||
<Button.Flyout>
|
||||
<Flyout>
|
||||
@@ -141,7 +139,7 @@
|
||||
Style="{StaticResource SubtleButtonStyle}">
|
||||
<FontIcon
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
FontSize="14"
|
||||
FontSize="16"
|
||||
Glyph="" />
|
||||
</Button>
|
||||
|
||||
@@ -152,7 +150,7 @@
|
||||
Style="{StaticResource SubtleButtonStyle}">
|
||||
<FontIcon
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
FontSize="14"
|
||||
FontSize="16"
|
||||
Glyph="" />
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
Margin="12,16,12,0"
|
||||
Width="348"
|
||||
Height="36"
|
||||
CornerRadius="2"
|
||||
CornerRadius="4"
|
||||
HorizontalAlignment="Stretch"
|
||||
Background="{DynamicResource ColorControlBackgroundBrush}">
|
||||
<Grid>
|
||||
@@ -22,17 +22,16 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock x:Name="FormatNameTextBlock"
|
||||
Opacity="0.6"
|
||||
Style="{DynamicResource BodyStrongTextBlockStyle}"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||
Margin="8"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="12"
|
||||
VerticalAlignment="Center"/>
|
||||
|
||||
<TextBox x:Name="ColorTextRepresentationTextBlock"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||
FontFamily="Consolas"
|
||||
Grid.Column="1"
|
||||
FontSize="14"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||
Grid.Column="1"
|
||||
IsTabStop="False"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
@@ -45,17 +44,16 @@
|
||||
<Button x:Name="CopyToClipboardButton"
|
||||
ToolTipService.ToolTip="{x:Static p:Resources.Copy_to_clipboard}"
|
||||
Background="{DynamicResource ColorControlBackgroundBrush}"
|
||||
FontSize="16"
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||
Opacity="0.6"
|
||||
Height="36"
|
||||
Width="36"
|
||||
Grid.Column="2"
|
||||
AutomationProperties.Name="{x:Static p:Resources.Copy_to_clipboard}"
|
||||
AutomationProperties.HelpText="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:Controls.ColorFormatControl}}, Path=SelectedColorCopyHelperText}"
|
||||
|
||||
FontSize="12"
|
||||
Style="{StaticResource DefaultButtonStyle}"
|
||||
FontFamily="Segoe MDL2 Assets">
|
||||
AutomationProperties.Name="{x:Static p:Resources.Copy_to_clipboard}"
|
||||
AutomationProperties.HelpText="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:Controls.ColorFormatControl}}, Path=SelectedColorCopyHelperText}">
|
||||
<Button.Content>
|
||||
<TextBlock Text="" AutomationProperties.Name="{x:Static p:Resources.Copy_to_clipboard}" />
|
||||
</Button.Content>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
ui:ControlHelper.CornerRadius="64"
|
||||
Margin="0,8,0,0"
|
||||
Style="{StaticResource AccentButtonStyle}"
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
Content=""
|
||||
FontSize="24"
|
||||
TabIndex="0"
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
<Run x:Name="WidthLabel" />
|
||||
<Run Text=""
|
||||
FontSize="10"
|
||||
FontFamily="Segoe MDL2 Assets" />
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}" />
|
||||
<Run x:Name="HeightLabel" />
|
||||
</TextBlock>
|
||||
</DockPanel>
|
||||
@@ -189,7 +189,7 @@
|
||||
Focusable="False"
|
||||
Grid.Row="2"
|
||||
Grid.Column="2"
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Top" Style="{DynamicResource CloseButtonStyle}"/>
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</Canvas.Effect>
|
||||
<StackPanel x:Name="MergeButtons"
|
||||
Orientation="Horizontal">
|
||||
<Border CornerRadius="2"
|
||||
<Border CornerRadius="4"
|
||||
Background="{DynamicResource PrimaryBackgroundBrush}">
|
||||
|
||||
<Button Width="134"
|
||||
@@ -31,7 +31,7 @@
|
||||
Click="MergeClick">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text=""
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||
Margin="0,3,8,0" />
|
||||
<TextBlock Text="{x:Static props:Resources.Merge_zones}"
|
||||
|
||||
@@ -28,19 +28,17 @@
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalContentAlignment="Center"
|
||||
Content="ID"
|
||||
FontSize="68"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="64"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}" />
|
||||
<TextBlock FontSize="16"
|
||||
Foreground="{DynamicResource SecondaryForegroundBrush}"
|
||||
DockPanel.Dock="Bottom"
|
||||
FontWeight="SemiBold"
|
||||
DockPanel.Dock="Bottom"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
<Run x:Name="WidthLabel" />
|
||||
<Run Text=""
|
||||
FontSize="10"
|
||||
FontFamily="Segoe MDL2 Assets" />
|
||||
<Run Text="×" />
|
||||
<Run x:Name="HeightLabel" />
|
||||
</TextBlock>
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
Closing="OnClosing"
|
||||
ResizeMode="CanResize">
|
||||
<Window.Resources>
|
||||
<Thickness x:Key="ContentDialogPadding">24,18,0,24</Thickness>
|
||||
<Thickness x:Key="ContentDialogPadding">24,16,0,24</Thickness>
|
||||
<Thickness x:Key="ContentDialogCommandSpaceMargin">0,24,24,0</Thickness>
|
||||
<Converters:LayoutModelTypeToVisibilityConverter x:Key="LayoutModelTypeToVisibilityConverter" />
|
||||
<Converters:LayoutTypeCustomToVisibilityConverter x:Key="LayoutTypeCustomToVisibilityConverter" />
|
||||
@@ -95,10 +95,8 @@
|
||||
<StackPanel Orientation="Vertical"
|
||||
VerticalAlignment="Center">
|
||||
<TextBlock Name="IndexText"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Text="{Binding Index}"
|
||||
FontSize="26"
|
||||
Grid.Row="0"
|
||||
FontSize="28"
|
||||
FontWeight="SemiBold"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
@@ -106,25 +104,19 @@
|
||||
<TextBlock Name="ResolutionText"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Text="{Binding Dimensions}"
|
||||
Grid.Row="0"
|
||||
Margin="0,0,0,0"
|
||||
FontSize="11"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="12"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{Binding (TextElement.Foreground), RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ContentPresenter}}}" />
|
||||
<TextBlock Name="ScalingText"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Text="{Binding Scaling}"
|
||||
Margin="0,0,0,0"
|
||||
FontSize="8"
|
||||
FontSize="12"
|
||||
HorizontalAlignment="Center"
|
||||
Foreground="{Binding (TextElement.Foreground), RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ContentPresenter}}}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
</DataTemplate>
|
||||
|
||||
<DataTemplate x:Key="LayoutItemTemplate">
|
||||
<Grid Background="Transparent">
|
||||
<Grid Width="180"
|
||||
@@ -138,7 +130,7 @@
|
||||
<TextBlock Name="layoutName"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Text="{Binding Name}"
|
||||
FontSize="15"
|
||||
FontSize="16"
|
||||
FontWeight="SemiBold"
|
||||
Margin="0,0,24,0"
|
||||
ToolTip="{Binding Name}"
|
||||
@@ -168,8 +160,8 @@
|
||||
ui:ControlHelper.CornerRadius="36">
|
||||
<Button.Content>
|
||||
<TextBlock Text=""
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontSize="14"
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
FontSize="16"
|
||||
AutomationProperties.Name="{x:Static props:Resources.Edit}" />
|
||||
</Button.Content>
|
||||
</Button>
|
||||
@@ -294,7 +286,7 @@
|
||||
Margin="8">
|
||||
<TextBlock Text=""
|
||||
AutomationProperties.Name="{x:Static props:Resources.Create_new_layout}"
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
Foreground="{DynamicResource AccentButtonForeground}" />
|
||||
<TextBlock Text="{x:Static props:Resources.Create_new_layout}"
|
||||
Margin="12,-3,0,0"
|
||||
@@ -351,7 +343,7 @@
|
||||
Style="{StaticResource IconOnlyButtonStyle}">
|
||||
<Button.Content>
|
||||
<TextBlock Text=""
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
AutomationProperties.Name="{x:Static props:Resources.OpenSettings}" />
|
||||
</Button.Content>
|
||||
</Button>
|
||||
@@ -384,11 +376,11 @@
|
||||
AutomationProperties.Name="{x:Static props:Resources.Duplicate}"
|
||||
ToolTip="{x:Static props:Resources.Duplicate}"
|
||||
Style="{StaticResource IconOnlyButtonStyle}"
|
||||
|
||||
Visibility="{Binding Path=Type, Converter={StaticResource LayoutTypeCustomToVisibilityConverter}}">
|
||||
<Button.Content>
|
||||
<TextBlock Text=""
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
FontSize="16"
|
||||
AutomationProperties.Name="{x:Static props:Resources.Duplicate}" />
|
||||
</Button.Content>
|
||||
</Button>
|
||||
@@ -402,7 +394,8 @@
|
||||
Visibility="{Binding Path=Type, Converter={StaticResource LayoutTypeTemplateToVisibilityConverter}}">
|
||||
<Button.Content>
|
||||
<TextBlock Text=""
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
FontSize="16"
|
||||
AutomationProperties.Name="{x:Static props:Resources.Create_Custom_From_Template}" />
|
||||
</Button.Content>
|
||||
</Button>
|
||||
@@ -415,8 +408,9 @@
|
||||
Visibility="{Binding Path=Type, Converter={StaticResource LayoutTypeCustomToVisibilityConverter}}">
|
||||
<Button.Content>
|
||||
<TextBlock Text=""
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
Foreground="#c50500"
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
FontSize="16"
|
||||
Foreground="#C42B1C"
|
||||
AutomationProperties.Name="{x:Static props:Resources.Delete}" />
|
||||
</Button.Content>
|
||||
</Button>
|
||||
@@ -428,7 +422,7 @@
|
||||
HorizontalAlignment="Stretch"
|
||||
Visibility="{Binding IsCustom, Converter={StaticResource BooleanToVisibilityConverter}}">
|
||||
|
||||
<TextBlock FontFamily="Segoe MDL2 Assets"
|
||||
<TextBlock FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
ToolTip="{x:Static props:Resources.Name}"
|
||||
FontSize="16"
|
||||
VerticalAlignment="Bottom" Margin="0,0,0,8"
|
||||
@@ -456,7 +450,7 @@
|
||||
Orientation="Horizontal">
|
||||
<TextBlock x:Name="QuickKeyTitle"
|
||||
Text="{x:Static props:Resources.QuickKey_Title}" />
|
||||
<TextBlock FontFamily="Segoe MDL2 Assets"
|
||||
<TextBlock FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
Margin="8,4,0,0"
|
||||
Foreground="{DynamicResource SystemControlBackgroundAccentBrush}"
|
||||
Text=""
|
||||
@@ -468,7 +462,7 @@
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
||||
<TextBlock FontFamily="Segoe MDL2 Assets"
|
||||
<TextBlock FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="16"
|
||||
ToolTip="{x:Static props:Resources.QuickKey_Title}"
|
||||
@@ -496,8 +490,8 @@
|
||||
|
||||
<Button Content=""
|
||||
x:Name="editZoneLayoutButton"
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontSize="14"
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
FontSize="16"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Height="36"
|
||||
@@ -520,7 +514,7 @@
|
||||
Margin="0,16,0,0"
|
||||
Visibility="{Binding Path=Type, Converter={StaticResource LayoutTypeTemplateToVisibilityConverter}}">
|
||||
|
||||
<TextBlock FontFamily="Segoe MDL2 Assets"
|
||||
<TextBlock FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="16"
|
||||
Margin="0,16,0,0"
|
||||
@@ -573,7 +567,7 @@
|
||||
Margin="28,0,0,4"
|
||||
TextWrapping="Wrap" />
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock FontFamily="Segoe MDL2 Assets"
|
||||
<TextBlock FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="16"
|
||||
AutomationProperties.Name="{x:Static props:Resources.Space_Around_Zones}"
|
||||
@@ -633,7 +627,7 @@
|
||||
Margin="28,0,0,4"
|
||||
TextWrapping="Wrap" />
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock FontFamily="Segoe MDL2 Assets"
|
||||
<TextBlock FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="16"
|
||||
ToolTip="{x:Static props:Resources.Distance_adjacent_zones}"
|
||||
@@ -683,8 +677,8 @@
|
||||
Visibility="{Binding CanBeSetAsHorizontalDefault, Converter={StaticResource BooleanToVisibilityConverter}}">
|
||||
<Button.Content>
|
||||
<TextBlock AutomationProperties.Name="{x:Static props:Resources.Set_Layout_As_Horizontal_Default}"
|
||||
FontSize="14">
|
||||
<Run Text="" FontFamily="Segoe MDL2 Assets"/>
|
||||
FontSize="16">
|
||||
<Run Text="" FontFamily="{DynamicResource SymbolThemeFontFamily}"/>
|
||||
<Run Text="{x:Static props:Resources.Default_Layout_Horizontal}"/>
|
||||
</TextBlock>
|
||||
</Button.Content>
|
||||
@@ -697,8 +691,8 @@
|
||||
Visibility="{Binding IsHorizontalDefault, Converter={StaticResource BooleanToVisibilityConverter}}">
|
||||
<Button.Content>
|
||||
<TextBlock AutomationProperties.Name="{x:Static props:Resources.Default_Layout_Horizontal}"
|
||||
FontSize="14">
|
||||
<Run Text="" FontFamily="Segoe MDL2 Assets"/>
|
||||
FontSize="16">
|
||||
<Run Text="" FontFamily="{DynamicResource SymbolThemeFontFamily}"/>
|
||||
<Run Text="{x:Static props:Resources.Default_Layout_Horizontal}"/>
|
||||
</TextBlock>
|
||||
</Button.Content>
|
||||
@@ -712,8 +706,8 @@
|
||||
Visibility="{Binding CanBeSetAsVerticalDefault, Converter={StaticResource BooleanToVisibilityConverter}}">
|
||||
<Button.Content>
|
||||
<TextBlock AutomationProperties.Name="{x:Static props:Resources.Set_Layout_As_Vertical_Default}"
|
||||
FontSize="14">
|
||||
<Run Text="" FontFamily="Segoe MDL2 Assets"/>
|
||||
FontSize="16">
|
||||
<Run Text="" FontFamily="{DynamicResource SymbolThemeFontFamily}"/>
|
||||
<Run Text="{x:Static props:Resources.Default_Layout_Vertical}"/>
|
||||
</TextBlock>
|
||||
</Button.Content>
|
||||
@@ -726,8 +720,8 @@
|
||||
Visibility="{Binding IsVerticalDefault, Converter={StaticResource BooleanToVisibilityConverter}}">
|
||||
<Button.Content>
|
||||
<TextBlock AutomationProperties.Name="{x:Static props:Resources.Default_Layout_Vertical}"
|
||||
FontSize="14">
|
||||
<Run Text="" FontFamily="Segoe MDL2 Assets"/>
|
||||
FontSize="16">
|
||||
<Run Text="" FontFamily="{DynamicResource SymbolThemeFontFamily}"/>
|
||||
<Run Text="{x:Static props:Resources.Default_Layout_Vertical}"/>
|
||||
</TextBlock>
|
||||
</Button.Content>
|
||||
@@ -774,7 +768,7 @@
|
||||
Margin="0,4,0,0"
|
||||
AutomationProperties.Name="{x:Static props:Resources.Layout_Grid_Title}"
|
||||
HorizontalAlignment="Left"
|
||||
FontFamily="Segoe MDL2 Assets" />
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}" />
|
||||
<StackPanel Grid.Column="1"
|
||||
Orientation="Vertical">
|
||||
<TextBlock TextWrapping="Wrap"
|
||||
@@ -810,7 +804,7 @@
|
||||
AutomationProperties.Name="{x:Static props:Resources.Layout_Canvas_Title}"
|
||||
Margin="0,4,0,0"
|
||||
HorizontalAlignment="Left"
|
||||
FontFamily="Segoe MDL2 Assets" />
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}" />
|
||||
<StackPanel Grid.Column="1"
|
||||
Orientation="Vertical">
|
||||
<TextBlock TextWrapping="Wrap"
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace FancyZonesEditor.Utils
|
||||
}
|
||||
else
|
||||
{
|
||||
return ScreenBoundsWidth + " x " + ScreenBoundsHeight;
|
||||
return ScreenBoundsWidth + " × " + ScreenBoundsHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
VerticalAlignment="Stretch"
|
||||
UseLayoutRounding="False"
|
||||
Opacity="0"
|
||||
CornerRadius="2"
|
||||
CornerRadius="4"
|
||||
BorderThickness="2"
|
||||
BorderBrush="{DynamicResource SystemControlBackgroundAccentBrush}" />
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace FancyZonesEditor.ViewModels
|
||||
{
|
||||
public class MonitorViewModel : INotifyPropertyChanged
|
||||
{
|
||||
private const int MaxPreviewDisplaySize = 160;
|
||||
private const int MinPreviewDisplaySize = 98;
|
||||
private const int MaxPreviewDisplaySize = 180;
|
||||
private const int MinPreviewDisplaySize = 120;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
|
||||
@@ -30,21 +30,32 @@
|
||||
<RowDefinition Height="24" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding Name}"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="14"
|
||||
Margin="0,0,0,0"
|
||||
VerticalAlignment="Top"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}" />
|
||||
FontWeight="SemiBold"/>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Grid.Row="1"
|
||||
VerticalAlignment="Top">
|
||||
<TextBlock Text="{Binding Fit, Converter={StaticResource EnumValueConverter}, ConverterParameter=ThirdPersonSingular}" FontSize="12" Foreground="{DynamicResource SecondaryForegroundBrush}"/>
|
||||
<TextBlock Text="{Binding Width, Converter={StaticResource AutoDoubleConverter}, ConverterParameter=Auto}" FontWeight="SemiBold" FontSize="12" Margin="3,0,0,0" Foreground="{DynamicResource SecondaryForegroundBrush}"/>
|
||||
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="10" Visibility="{Binding ShowHeight, Converter={StaticResource BoolValueConverter}}" Margin="4,4,0,0" Foreground="{DynamicResource SecondaryForegroundBrush}"/>
|
||||
<TextBlock Text="{Binding Height, Converter={StaticResource AutoDoubleConverter}, ConverterParameter=Auto}" FontSize="12" Visibility="{Binding ShowHeight, Converter={StaticResource BoolValueConverter}}" FontWeight="SemiBold" Margin="4,0,0,0" Foreground="{DynamicResource SecondaryForegroundBrush}"/>
|
||||
<TextBlock Text="{Binding Unit, Converter={StaticResource EnumValueConverter}, ConverterParameter=ToLower}" FontSize="12"
|
||||
<TextBlock Text="{Binding Fit, Converter={StaticResource EnumValueConverter}, ConverterParameter=ThirdPersonSingular}"
|
||||
Style="{StaticResource CaptionTextBlockStyle}"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"/>
|
||||
<TextBlock Text="{Binding Width, Converter={StaticResource AutoDoubleConverter}, ConverterParameter=Auto}"
|
||||
Margin="4,0,0,0"
|
||||
Foreground="{DynamicResource SecondaryForegroundBrush}" />
|
||||
Style="{StaticResource CaptionTextBlockStyle}"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"/>
|
||||
<TextBlock Text="×"
|
||||
Margin="4,0,0,0"
|
||||
Style="{StaticResource CaptionTextBlockStyle}"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Visibility="{Binding ShowHeight, Converter={StaticResource BoolValueConverter}}"/>
|
||||
<TextBlock Text="{Binding Height, Converter={StaticResource AutoDoubleConverter}, ConverterParameter=Auto}"
|
||||
Margin="4,0,0,0"
|
||||
Style="{StaticResource CaptionTextBlockStyle}"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Visibility="{Binding ShowHeight, Converter={StaticResource BoolValueConverter}}"/>
|
||||
<TextBlock Text="{Binding Unit, Converter={StaticResource EnumValueConverter}, ConverterParameter=ToLower}"
|
||||
Margin="4,0,0,0"
|
||||
Style="{StaticResource CaptionTextBlockStyle}"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
@@ -54,10 +65,10 @@
|
||||
AutomationProperties.Name="{Binding Name}">
|
||||
|
||||
<TextBlock Text="{Binding Name}"
|
||||
FontWeight="SemiBold"
|
||||
FontSize="14"
|
||||
Margin="0,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="14"
|
||||
FontWeight="SemiBold"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
@@ -86,8 +97,8 @@
|
||||
</ui:NumberBox>
|
||||
<TextBlock VerticalAlignment="Center"
|
||||
Text=""
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
Width="25"
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
Width="24"
|
||||
Foreground="{DynamicResource SecondaryForegroundBrush}"
|
||||
Name="Times_Symbol"
|
||||
AutomationProperties.Name="{x:Static p:Resources.Times_Symbol}"
|
||||
@@ -166,7 +177,7 @@
|
||||
Margin="-8,0,0,0"
|
||||
Content=""
|
||||
Background="Transparent"
|
||||
FontFamily="Segoe MDL2 Assets"
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
FontSize="16"
|
||||
HorizontalAlignment="Left"
|
||||
ToolTipService.ToolTip="{x:Static p:Resources.Open_settings}"
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border x:Name="border"
|
||||
CornerRadius="2"
|
||||
CornerRadius="4"
|
||||
Background="Transparent"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
BorderBrush="Transparent"
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
x:Key="DefaultBorderBrush"
|
||||
Color="{ThemeResource SystemAccentColor}" />
|
||||
</ResourceDictionary>
|
||||
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid
|
||||
x:Name="RootGrid"
|
||||
MinWidth="170"
|
||||
@@ -51,38 +51,34 @@
|
||||
HorizontalAlignment="Center"
|
||||
Background="Black"
|
||||
BorderBrush="Black"
|
||||
BorderThickness="6"
|
||||
CornerRadius="4">
|
||||
BorderThickness="8"
|
||||
CornerRadius="12">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border
|
||||
Grid.RowSpan="3"
|
||||
Grid.RowSpan="2"
|
||||
Grid.ColumnSpan="2"
|
||||
CornerRadius="2"
|
||||
Opacity="0.8">
|
||||
Opacity="0.8"
|
||||
CornerRadius="4">
|
||||
<Image
|
||||
AutomationProperties.AccessibilityView="Raw"
|
||||
Source="{x:Bind WallpaperPath, Mode=OneWay}"
|
||||
Stretch="UniformToFill" />
|
||||
</Border>
|
||||
|
||||
<Grid
|
||||
Grid.Row="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Background="{ThemeResource SystemControlAcrylicElementBrush}" />
|
||||
<Border
|
||||
x:Name="Zone1"
|
||||
Grid.RowSpan="2"
|
||||
Margin="4,4,2,4"
|
||||
BorderThickness="1"
|
||||
CornerRadius="2">
|
||||
Margin="4,4,2,4"
|
||||
CornerRadius="2"
|
||||
Background="{ThemeResource SystemControlAcrylicElementBrush}">
|
||||
<TextBlock
|
||||
x:Name="Zone1Number"
|
||||
HorizontalAlignment="Center"
|
||||
@@ -94,9 +90,10 @@
|
||||
<Border
|
||||
x:Name="Zone2"
|
||||
Grid.Column="1"
|
||||
Margin="2,4,4,2"
|
||||
BorderThickness="1"
|
||||
CornerRadius="2">
|
||||
Margin="2,4,4,2"
|
||||
CornerRadius="2"
|
||||
Background="{ThemeResource SystemControlAcrylicElementBrush}">
|
||||
<TextBlock
|
||||
x:Name="Zone2Number"
|
||||
HorizontalAlignment="Center"
|
||||
@@ -109,9 +106,10 @@
|
||||
x:Name="Zone3"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="2,2,4,4"
|
||||
BorderThickness="1"
|
||||
CornerRadius="2">
|
||||
Margin="2,2,4,4"
|
||||
CornerRadius="2"
|
||||
Background="{ThemeResource SystemControlAcrylicElementBrush}">
|
||||
<TextBlock
|
||||
x:Name="Zone3Number"
|
||||
HorizontalAlignment="Center"
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</ItemsControl>
|
||||
<FontIcon
|
||||
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
||||
FontSize="14"
|
||||
FontSize="16"
|
||||
Glyph="" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
<ToolTipService.ToolTip>
|
||||
<TextBlock x:Uid="DocsTooltip"/>
|
||||
</ToolTipService.ToolTip>
|
||||
<FontIcon FontSize="14" Glyph="" />
|
||||
<FontIcon FontSize="16" Glyph="" />
|
||||
</Button>
|
||||
<Button
|
||||
x:Name="ReportBugBtn"
|
||||
@@ -132,7 +132,7 @@
|
||||
<ToolTipService.ToolTip>
|
||||
<TextBlock x:Uid="BugReportTooltip"/>
|
||||
</ToolTipService.ToolTip>
|
||||
<FontIcon FontSize="14" Glyph="" />
|
||||
<FontIcon FontSize="16" Glyph="" />
|
||||
</Button>
|
||||
<Button
|
||||
x:Name="SettingsBtn"
|
||||
@@ -158,7 +158,7 @@
|
||||
Style="{StaticResource FlyoutButtonStyle}"
|
||||
ToolTipService.ToolTip="Quit"
|
||||
Click="QuitButton_Click">
|
||||
<FontIcon FontSize="14" Glyph="" />
|
||||
<FontIcon FontSize="16" Glyph="" />
|
||||
</Button>-->
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -35,7 +35,9 @@
|
||||
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
||||
<labs:SettingsCard
|
||||
x:Uid="FancyZones_LaunchEditorButtonControl"
|
||||
ActionIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, FontSize=14, Glyph=}"
|
||||
ActionIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
||||
FontSize=14,
|
||||
Glyph=}"
|
||||
Command="{x:Bind ViewModel.LaunchEditorEventHandler}"
|
||||
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
||||
IsClickEnabled="True" />
|
||||
@@ -115,8 +117,8 @@
|
||||
<labs:SettingsExpander.Items>
|
||||
<labs:SettingsCard ContentAlignment="Left">
|
||||
<controls:FancyZonesPreviewControl
|
||||
Width="170"
|
||||
Height="86"
|
||||
Width="192"
|
||||
Height="108"
|
||||
CustomBorderColor="{x:Bind Path=ViewModel.ZoneBorderColor, Mode=OneWay}"
|
||||
CustomHighlightColor="{x:Bind Path=ViewModel.ZoneHighlightColor, Mode=OneWay}"
|
||||
CustomInActiveColor="{x:Bind Path=ViewModel.ZoneInActiveColor, Mode=OneWay}"
|
||||
|
||||
@@ -243,15 +243,11 @@
|
||||
Spacing="8">
|
||||
<TextBlock
|
||||
x:Name="pathTextBlock"
|
||||
Width="350"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="12"
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
||||
IsTextSelectionEnabled="True"
|
||||
Text="{x:Bind Mode=TwoWay, Path=ViewModel.SettingsBackupAndRestoreDir}"
|
||||
TextAlignment="Right"
|
||||
TextTrimming="CharacterEllipsis">
|
||||
TextTrimming="CharacterEllipsis"
|
||||
Foreground="{ThemeResource TextFillColorSecondaryBrush}">
|
||||
<ToolTipService.ToolTip>
|
||||
<ToolTip IsEnabled="{Binding ElementName=pathTextBlock, Path=IsTextTrimmed}">
|
||||
<TextBlock Text="{x:Bind Mode=TwoWay, Path=ViewModel.SettingsBackupAndRestoreDir}" />
|
||||
@@ -274,14 +270,9 @@
|
||||
x:Uid="General_SettingsBackupAndRestoreStatusInfo"
|
||||
HorizontalContentAlignment="Left"
|
||||
ContentAlignment="Vertical">
|
||||
<labs:SettingsCard.Resources>
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="FontSize" Value="12" />
|
||||
</Style>
|
||||
</labs:SettingsCard.Resources>
|
||||
<Grid Margin="0,0,0,6" ColumnSpacing="8">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" MinWidth="{StaticResource SettingActionControlMinWidth}"/>
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
|
||||
Reference in New Issue
Block a user