Fixed: Issue where Settings icon was blurred on high dpi devices.

This commit is contained in:
Adrien Allard committed 2019-04-17 19:22:56 +02:00
1 parent 8d67366c25
commit a5952eafd6
4 files changed
+7 -4

No files matched your search

@@ -374,9 +374,6 @@
<ItemGroup>
<Resource Include="Resources\FileConverterUsage.gif" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\Settings-Icon.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\WebSite-Icon.png" />
</ItemGroup>
@@ -392,6 +389,9 @@
<Name>FileConverterExtension</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\SettingsIcon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy /Y "$(SolutionDir)Middleware\ffmpeg\$(PlatformName)\ffmpeg.exe" "$(TargetDir)ffmpeg.exe"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

@@ -47,7 +47,10 @@
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Image HorizontalAlignment="Left" Height="48" Width="48" VerticalAlignment="Top" Source="..\Resources\Settings-Icon.png" />
<Image HorizontalAlignment="Left" Height="48" Width="48" VerticalAlignment="Top"
Source="{Binding Source=/FileConverter;component/Resources/SettingsIcon.ico, Converter={StaticResource IcoFileSizeSelector}, ConverterParameter=96}">
</Image>
<Label Grid.Column="1" Content="{x:Static project:Resources.Settings}" FontSize="20" Margin="4" VerticalAlignment="Center" />
<Label Grid.Column="2" HorizontalAlignment="Right" FontStyle="Italic" FontSize="14" VerticalAlignment="Center" Foreground="#FF999999">
<Label.Content>