File tree Expand file tree Collapse file tree 9 files changed +21
-6
lines changed
Flow.Launcher.Infrastructure Expand file tree Collapse file tree 9 files changed +21
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public static class Constant
30
30
31
31
public static string PythonPath ;
32
32
33
- public static readonly string QueryTextBoxIconImagePath = $ "{ ProgramDirectory } \\ Images\\ mainsearch.png ";
33
+ public static readonly string QueryTextBoxIconImagePath = $ "{ ProgramDirectory } \\ Images\\ mainsearch.svg ";
34
34
35
35
public const string DefaultTheme = "Darker" ;
36
36
Original file line number Diff line number Diff line change 82
82
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
83
83
</PackageReference >
84
84
<PackageReference Include =" PropertyChanged.Fody" Version =" 2.5.13" />
85
+ <PackageReference Include =" SharpVectors" Version =" 1.7.1" />
85
86
</ItemGroup >
86
87
87
88
<ItemGroup >
Original file line number Diff line number Diff line change 72
72
<system : String x : Key =" deleteCustomHotkeyWarning" >Are you sure you want to delete {0} plugin hotkey?</system : String >
73
73
<system : String x : Key =" queryWindowShadowEffect" >Query window shadow effect</system : String >
74
74
<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 >
76
76
77
77
<!-- Setting Proxy-->
78
78
<system : String x : Key =" proxy" >HTTP Proxy</system : String >
Original file line number Diff line number Diff line change 6
6
xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
7
7
xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
8
8
xmlns : converters =" clr-namespace:Flow.Launcher.Converters"
9
+ xmlns : svgc =" http://sharpvectors.codeplex.com/svgc/"
9
10
mc : Ignorable =" d"
10
11
Title =" Flow Launcher"
11
12
Topmost =" True"
92
93
</ContextMenu >
93
94
</TextBox .ContextMenu>
94
95
</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" />
96
98
</Grid >
97
99
<Line x : Name =" ProgressBar" HorizontalAlignment =" Right"
98
100
Style =" {DynamicResource PendingLineStyle}" Visibility =" {Binding ProgressBarVisibility, Mode=TwoWay}"
Original file line number Diff line number Diff line change 8
8
xmlns : userSettings =" clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure"
9
9
xmlns : sys =" clr-namespace:System;assembly=mscorlib"
10
10
xmlns : ui =" http://schemas.modernwpf.com/2019"
11
+ xmlns : svgc =" http://sharpvectors.codeplex.com/svgc/"
11
12
x : Class =" Flow.Launcher.SettingWindow"
12
13
mc : Ignorable =" d"
13
14
Icon =" Images\app.png"
252
253
Text =" {DynamicResource hiThere}" IsReadOnly =" True"
253
254
Style =" {DynamicResource QueryBoxStyle}"
254
255
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" />
256
258
<ContentControl Grid.Row=" 1" >
257
259
<flowlauncher : ResultListBox DataContext =" {Binding PreviewResults, Mode=OneTime}" Visibility =" Visible" />
258
260
</ContentControl >
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ private ResultsViewModel SelectedResults
285
285
286
286
public string OpenResultCommandModifiers { get ; private set ; }
287
287
288
- public ImageSource Image => ImageLoader . Load ( Constant . QueryTextBoxIconImagePath ) ;
288
+ public string Image => Constant . QueryTextBoxIconImagePath ;
289
289
290
290
#endregion
291
291
Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ public FamilyTypeface SelectedResultFontFaces
438
438
}
439
439
}
440
440
441
- public ImageSource ThemeImage => ImageLoader . Load ( Constant . QueryTextBoxIconImagePath ) ;
441
+ public string ThemeImage => Constant . QueryTextBoxIconImagePath ;
442
442
443
443
#endregion
444
444
You can’t perform that action at this time.
0 commit comments