Fix color issue in search box (#6222)

This commit is contained in:
Divyansh Srivastava
2020-08-28 17:18:46 -07:00
committed by GitHub
parent fe8727bd94
commit 777e1dc48c

View File

@@ -9,7 +9,7 @@
d:DesignWidth="720"> d:DesignWidth="720">
<UserControl.Resources> <UserControl.Resources>
<Style x:Key="QueryTextBoxStyle" TargetType="{x:Type TextBox}"> <Style x:Key="QueryTextBoxStyle" TargetType="{x:Type TextBox}">
<Setter Property="Background" Value="{DynamicResource SystemChromeLow}" /> <Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" /> <Setter Property="BorderThickness" Value="0" />
<Setter Property="Foreground" Value="{DynamicResource ControlTextBrushKey}"/> <Setter Property="Foreground" Value="{DynamicResource ControlTextBrushKey}"/>
<Setter Property="CaretBrush" Value="{DynamicResource ControlTextBrushKey}"/> <Setter Property="CaretBrush" Value="{DynamicResource ControlTextBrushKey}"/>
@@ -102,11 +102,12 @@
x:Name="AutoCompleteTextBlock" x:Name="AutoCompleteTextBlock"
x:FieldModifier="public" x:FieldModifier="public"
Opacity="0.6" Opacity="0.6"
Canvas.ZIndex="0" Canvas.ZIndex="-1"
Margin="24, 0, 14, 0" Margin="24, 0, 14, 0"
VerticalAlignment="Center" VerticalAlignment="Center"
FontSize="24" FontSize="24"
Foreground="{DynamicResource TextControlPlaceholderForeground}" Foreground="{DynamicResource TextControlPlaceholderForeground}"
Background="{DynamicResource SystemChromeLow}"
RenderOptions.ClearTypeHint="Enabled" RenderOptions.ClearTypeHint="Enabled"
/> />
<TextBlock <TextBlock