mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user