Skip to content

Commit fb18869

Browse files
authored
Merge pull request #278 from taooceros/ImageQuality
Image quality
2 parents 3aa678b + 182cdd1 commit fb18869

File tree

9 files changed

+21
-6
lines changed

9 files changed

+21
-6
lines changed
File renamed without changes.

Flow.Launcher.Infrastructure/Constant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static class Constant
3030

3131
public static string PythonPath;
3232

33-
public static readonly string QueryTextBoxIconImagePath = $"{ProgramDirectory}\\Images\\mainsearch.png";
33+
public static readonly string QueryTextBoxIconImagePath = $"{ProgramDirectory}\\Images\\mainsearch.svg";
3434

3535
public const string DefaultTheme = "Darker";
3636

Flow.Launcher/Flow.Launcher.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
8383
</PackageReference>
8484
<PackageReference Include="PropertyChanged.Fody" Version="2.5.13" />
85+
<PackageReference Include="SharpVectors" Version="1.7.1" />
8586
</ItemGroup>
8687

8788
<ItemGroup>
Lines changed: 10 additions & 0 deletions
Loading

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<system:String x:Key="deleteCustomHotkeyWarning">Are you sure you want to delete {0} plugin hotkey?</system:String>
7373
<system:String x:Key="queryWindowShadowEffect">Query window shadow effect</system:String>
7474
<system:String x:Key="shadowEffectCPUUsage">Shadow effect has a substantial usage of GPU.</system:String>
75-
<system:String x:Key="shadowEffectPerformance">Not recommended if you computer performance is limited.</system:String>
75+
<system:String x:Key="shadowEffectPerformance">Not recommended if your computer performance is limited.</system:String>
7676

7777
<!--Setting Proxy-->
7878
<system:String x:Key="proxy">HTTP Proxy</system:String>

Flow.Launcher/MainWindow.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
xmlns:converters="clr-namespace:Flow.Launcher.Converters"
9+
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
910
mc:Ignorable="d"
1011
Title="Flow Launcher"
1112
Topmost="True"
@@ -92,7 +93,8 @@
9293
</ContextMenu>
9394
</TextBox.ContextMenu>
9495
</TextBox>
95-
<Image Source="{Binding Image, IsAsync=True}" Width="48" HorizontalAlignment="Right" />
96+
<svgc:SvgControl Source="{Binding Image}" HorizontalAlignment="Right" Width="48" Height="48"
97+
Background="Transparent"/>
9698
</Grid>
9799
<Line x:Name="ProgressBar" HorizontalAlignment="Right"
98100
Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay}"

Flow.Launcher/SettingWindow.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
xmlns:userSettings="clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure"
99
xmlns:sys="clr-namespace:System;assembly=mscorlib"
1010
xmlns:ui="http://schemas.modernwpf.com/2019"
11+
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
1112
x:Class="Flow.Launcher.SettingWindow"
1213
mc:Ignorable="d"
1314
Icon="Images\app.png"
@@ -252,7 +253,8 @@
252253
Text="{DynamicResource hiThere}" IsReadOnly="True"
253254
Style="{DynamicResource QueryBoxStyle}"
254255
Margin="18 0 56 0" />
255-
<Image Source="{Binding ThemeImage}" HorizontalAlignment="Right" />
256+
<svgc:SvgControl Source="{Binding ThemeImage}" Height="48" Width="48" HorizontalAlignment="Right"
257+
Background="Transparent" />
256258
<ContentControl Grid.Row="1">
257259
<flowlauncher:ResultListBox DataContext="{Binding PreviewResults, Mode=OneTime}" Visibility="Visible" />
258260
</ContentControl>

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private ResultsViewModel SelectedResults
285285

286286
public string OpenResultCommandModifiers { get; private set; }
287287

288-
public ImageSource Image => ImageLoader.Load(Constant.QueryTextBoxIconImagePath);
288+
public string Image => Constant.QueryTextBoxIconImagePath;
289289

290290
#endregion
291291

Flow.Launcher/ViewModel/SettingWindowViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public FamilyTypeface SelectedResultFontFaces
438438
}
439439
}
440440

441-
public ImageSource ThemeImage => ImageLoader.Load(Constant.QueryTextBoxIconImagePath);
441+
public string ThemeImage => Constant.QueryTextBoxIconImagePath;
442442

443443
#endregion
444444

0 commit comments

Comments
 (0)