mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Icons - Dropped SVG support and fixed filling
This commit is contained in:
1 parent
dd40bdd544
commit
0d3890e560
30 files changed
+163
-571
No files matched your search
@@ -304,10 +304,7 @@ namespace Artemis.Core.Services
|
||||
{
|
||||
if (profileConfiguration.Icon.IconType == ProfileConfigurationIconType.MaterialIcon)
|
||||
return;
|
||||
|
||||
// This can happen if the icon was saved before the original file name was stored (pre-Avalonia)
|
||||
profileConfiguration.Entity.IconOriginalFileName ??= profileConfiguration.Icon.IconType == ProfileConfigurationIconType.BitmapImage ? "icon.png" : "icon.svg";
|
||||
|
||||
|
||||
using Stream? stream = _profileCategoryRepository.GetProfileIconStream(profileConfiguration.Entity.FileIconId);
|
||||
if (stream != null)
|
||||
profileConfiguration.Icon.SetIconByStream(profileConfiguration.Entity.IconOriginalFileName, stream);
|
||||
|
||||
Reference in new issue
Block a user