Removed manual cleartype (#10568)

Co-authored-by: Niels Laute <niels9001@hotmail.com>
This commit is contained in:
Niels Laute
2021-04-05 16:26:24 +02:00
committed by GitHub
parent 8e78892712
commit ed21dba8f0
3 changed files with 7 additions and 21 deletions

View File

@@ -55,9 +55,7 @@
<ScrollViewer.ContentTemplate> <ScrollViewer.ContentTemplate>
<DataTemplate> <DataTemplate>
<Grid <Grid
Background="{Binding Background, ElementName=PART_ContentHost}" Background="{Binding Background, ElementName=PART_ContentHost}">
RenderOptions.ClearTypeHint="Enabled"
TextOptions.TextFormattingMode="Display">
<ContentPresenter Content="{Binding Path=Content, ElementName=PART_ContentHost}"/> <ContentPresenter Content="{Binding Path=Content, ElementName=PART_ContentHost}"/>
</Grid> </Grid>
</DataTemplate> </DataTemplate>
@@ -113,7 +111,6 @@
FontSize="24" FontSize="24"
Style="{StaticResource QueryTextBoxStyle}" Style="{StaticResource QueryTextBoxStyle}"
Tag="{x:Static p:Resources.startTyping}" Tag="{x:Static p:Resources.startTyping}"
RenderOptions.ClearTypeHint="Enabled"
/> />
<TextBlock <TextBlock
x:Name="AutoCompleteTextBlock" x:Name="AutoCompleteTextBlock"
@@ -125,7 +122,6 @@
FontSize="24" FontSize="24"
Foreground="{DynamicResource TextControlPlaceholderForeground}" Foreground="{DynamicResource TextControlPlaceholderForeground}"
Background="{DynamicResource SystemChromeLow}" Background="{DynamicResource SystemChromeLow}"
RenderOptions.ClearTypeHint="Enabled"
/> />
<TextBlock <TextBlock
AutomationProperties.Name="{x:Static p:Resources.SearchIcon}" AutomationProperties.Name="{x:Static p:Resources.SearchIcon}"
@@ -136,8 +132,6 @@
HorizontalAlignment="Center" HorizontalAlignment="Center"
VerticalAlignment="Center" VerticalAlignment="Center"
Foreground="{DynamicResource TextControlPlaceholderForeground}" Foreground="{DynamicResource TextControlPlaceholderForeground}"
RenderOptions.ClearTypeHint="Enabled"
TextOptions.TextRenderingMode="Auto"
SnapsToDevicePixels="True"/> SnapsToDevicePixels="True"/>
</Grid> </Grid>
</UserControl> </UserControl>

View File

@@ -10,8 +10,6 @@
Topmost="True" Topmost="True"
SizeToContent="Height" SizeToContent="Height"
ResizeMode="NoResize" ResizeMode="NoResize"
TextOptions.TextRenderingMode="ClearType"
RenderOptions.ClearTypeHint="Enabled"
WindowStyle="None" WindowStyle="None"
WindowStartupLocation="Manual" WindowStartupLocation="Manual"
AllowDrop="True" AllowDrop="True"

View File

@@ -209,13 +209,11 @@
Style="{DynamicResource CollapsableTextblock}" Style="{DynamicResource CollapsableTextblock}"
FontWeight="Bold" FontWeight="Bold"
Text="{Binding Result.ToolTipData.Title}" Text="{Binding Result.ToolTipData.Title}"
TextWrapping="Wrap" TextWrapping="Wrap" />
RenderOptions.ClearTypeHint="Enabled" />
<TextBlock <TextBlock
Style="{DynamicResource CollapsableTextblock}" Style="{DynamicResource CollapsableTextblock}"
Text="{Binding Result.ToolTipData.Text}" Text="{Binding Result.ToolTipData.Text}"
TextWrapping="Wrap" TextWrapping="Wrap" />
RenderOptions.ClearTypeHint="Enabled" />
</StackPanel> </StackPanel>
</ToolTip> </ToolTip>
</Grid.ToolTip> </Grid.ToolTip>
@@ -235,8 +233,7 @@
FontWeight="SemiBold" FontWeight="SemiBold"
FontSize="20" FontSize="20"
Margin="0,0,0,-2" Margin="0,0,0,-2"
VerticalAlignment="Bottom" VerticalAlignment="Bottom"/>
RenderOptions.ClearTypeHint="Enabled"/>
<TextBlock <TextBlock
AutomationProperties.Name="{x:Static p:Resources.Subtitle}" AutomationProperties.Name="{x:Static p:Resources.Subtitle}"
x:Name="Path" x:Name="Path"
@@ -245,8 +242,7 @@
Grid.Row="1" Grid.Row="1"
Foreground="{DynamicResource SecondaryTextForeground}" Foreground="{DynamicResource SecondaryTextForeground}"
Margin="0,2,0,0" Margin="0,2,0,0"
VerticalAlignment="Top" VerticalAlignment="Top"/>
RenderOptions.ClearTypeHint="Enabled"/>
<ListView <ListView
AutomationProperties.Name="{x:Static p:Resources.ContextMenuItemsCollection}" AutomationProperties.Name="{x:Static p:Resources.ContextMenuItemsCollection}"
HorizontalAlignment="Right" HorizontalAlignment="Right"
@@ -284,8 +280,7 @@
<ToolTip > <ToolTip >
<TextBlock <TextBlock
AutomationProperties.Name="{x:Static p:Resources.ContextMenuItemAdditionalInformation}" AutomationProperties.Name="{x:Static p:Resources.ContextMenuItemAdditionalInformation}"
Text="{Binding Title}" Text="{Binding Title}"/>
RenderOptions.ClearTypeHint="Enabled"/>
</ToolTip> </ToolTip>
</ToolTipService.ToolTip> </ToolTipService.ToolTip>
<Button.Content> <Button.Content>
@@ -293,8 +288,7 @@
AutomationProperties.Name="{x:Static p:Resources.ContextMenuIcon}" AutomationProperties.Name="{x:Static p:Resources.ContextMenuIcon}"
FontFamily="{Binding FontFamily}" FontFamily="{Binding FontFamily}"
FontSize="16" FontSize="16"
Text="{Binding Glyph}" Text="{Binding Glyph}"/>
RenderOptions.ClearTypeHint="Enabled"/>
</Button.Content> </Button.Content>
</Button> </Button>
</DataTemplate> </DataTemplate>