[PT Run] Updated borderbrush to improve accessibility for dark mode (#7141)

* Updated borderbrush

* Update src/modules/launcher/PowerLauncher/LauncherControl.xaml

Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com>

* Fixed bug

Co-authored-by: htcfreek <61519853+htcfreek@users.noreply.github.com>
This commit is contained in:
Niels Laute
2020-10-09 05:14:00 +02:00
committed by GitHub
parent 210426a020
commit 274c009f20
10 changed files with 166 additions and 44 deletions

View File

@@ -26,7 +26,6 @@
Deactivated="OnDeactivated"
IsVisibleChanged="OnVisibilityChanged"
Visibility="{Binding MainWindowVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
d:DataContext="{d:DesignInstance vm:MainViewModel}">
<Window.Resources>
<CubicEase x:Key="CubicEaseOut" EasingMode="EaseOut"/>
@@ -59,7 +58,12 @@
x:Name="SearchBoxBorder"
Grid.Row="0"
Margin="24,24,24,24">
<Rectangle Fill="{DynamicResource SystemChromeLow}" RadiusX="4" RadiusY="4" Stroke="{DynamicResource BorderBrush}" StrokeThickness="1">
<Rectangle
Fill="{DynamicResource SystemChromeLow}"
RadiusX="4"
RadiusY="4"
Stroke="{DynamicResource DialogBorderBrush}"
StrokeThickness="1">
<Rectangle.Effect>
<DropShadowEffect BlurRadius="32" Opacity="0.28" ShadowDepth="1" />
</Rectangle.Effect>
@@ -82,7 +86,12 @@
<!--<Border.RenderTransform>
<TranslateTransform />
</Border.RenderTransform>-->
<Rectangle RadiusX="4" RadiusY="4" Fill="{DynamicResource SystemChromeLow}" Stroke="{DynamicResource BorderBrush}" StrokeThickness="1">
<Rectangle
RadiusX="4"
RadiusY="4"
Fill="{DynamicResource SystemChromeLow}"
Stroke="{DynamicResource DialogBorderBrush}"
StrokeThickness="1">
<Rectangle.Effect>
<DropShadowEffect BlurRadius="32" Opacity="0.28" ShadowDepth="1" />
</Rectangle.Effect>
@@ -93,12 +102,20 @@
<TranslateTransform />
</local:ResultList.RenderTransform>-->
</local:ResultList>
<Rectangle RadiusX="4" RadiusY="4" Stroke="{DynamicResource SystemChromeLow}" StrokeThickness="1" />
<Rectangle
RadiusX="4"
RadiusY="4"
Stroke="{DynamicResource DialogBorderBrush}"
StrokeThickness="1" />
</Grid>
</Grid>
<Window.InputBindings>
<KeyBinding Key="Escape" Command="{Binding EscCommand}" />
<KeyBinding Key="Enter" Command="{Binding OpenResultWithKeyboardCommand}" />
<KeyBinding Modifiers="Alt" Key="F4" Command="{Binding IgnoreCommand}" />
<KeyBinding Key="Escape"
Command="{Binding EscCommand}" />
<KeyBinding Key="Enter"
Command="{Binding OpenResultWithKeyboardCommand}" />
<KeyBinding Modifiers="Alt"
Key="F4"
Command="{Binding IgnoreCommand}" />
</Window.InputBindings>
</Window>