diff --git a/Wox/Converters/HighlightTextConverter.cs b/Wox/Converters/HighlightTextConverter.cs index b7d6d0683..4a3f6fc21 100644 --- a/Wox/Converters/HighlightTextConverter.cs +++ b/Wox/Converters/HighlightTextConverter.cs @@ -7,6 +7,7 @@ using System.Windows; using System.Windows.Data; using System.Windows.Documents; +using System.Windows.Media; namespace Wox.Converters { @@ -30,11 +31,17 @@ public object Convert(object[] value, Type targetType, object parameter, Culture var currentCharacter = text.Substring(i, 1); if (this.ShouldHighlight(highlightData, i)) { - textBlock.Inlines.Add(new Bold(new Run(currentCharacter))); + textBlock.Inlines.Add((new Run(currentCharacter) + { + FontWeight = FontWeights.Bold + })); } else { - textBlock.Inlines.Add(new Run(currentCharacter)); + textBlock.Inlines.Add(new Run(currentCharacter) + { + Foreground = Brushes.LightGray + }); } } return textBlock; diff --git a/Wox/ResultListBox.xaml b/Wox/ResultListBox.xaml index dc3100e0e..68a8c9dc4 100644 --- a/Wox/ResultListBox.xaml +++ b/Wox/ResultListBox.xaml @@ -48,7 +48,7 @@ + RenderOptions.ClearTypeHint="Enabled" > @@ -57,7 +57,8 @@ + Grid.Row="1" x:Name="SubTitle" + RenderOptions.ClearTypeHint="Enabled" > diff --git a/Wox/Themes/Base.xaml b/Wox/Themes/Base.xaml index 6f6083035..0392464af 100644 --- a/Wox/Themes/Base.xaml +++ b/Wox/Themes/Base.xaml @@ -11,6 +11,24 @@ + + + + + + + + + + + + + + + + + - + - + diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 5307ec006..000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,34 +0,0 @@ -# .NET Desktop -# Build and run tests for .NET Desktop or Windows classic desktop solutions. -# Add steps that publish symbols, save build artifacts, and more: -# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net - -trigger: -- master -- dev - -pool: - vmImage: 'vs2017-win2016' #'due to windows SDK dependency for building UWP project' - -variables: - solution: '**/*.sln' - buildPlatform: 'Any CPU' - buildConfiguration: 'Release' - -steps: -- task: NuGetToolInstaller@1 - -- task: NuGetCommand@2 - inputs: - restoreSolution: '$(solution)' - -- task: VSBuild@1 - inputs: - solution: '$(solution)' - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' - -- task: VSTest@2 - inputs: - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)'