Remove Icon X & Y hard coded dependency

This commit is contained in:
Garulf 2022-08-30 04:27:17 -04:00
parent 239c9d7a93
commit 70ea6a89e3
2 changed files with 4 additions and 2 deletions

View file

@ -82,8 +82,8 @@
BorderThickness="0">
<Image
x:Name="ImageIcon"
Width="32"
Height="32"
Width="{Binding IconXY}"
Height="{Binding IconXY}"
Margin="0,0,0,0"
HorizontalAlignment="Center"
Source="{Binding Image, TargetNullValue={x:Null}}"

View file

@ -165,6 +165,8 @@ namespace Flow.Launcher.ViewModel
public string QuerySuggestionText { get; set; }
public double IconXY { get; set; } = 32;
public override bool Equals(object obj)
{
return obj is ResultViewModel r && Result.Equals(r.Result);