Icons work again

Colors work again
This commit is contained in:
Geoffroy BONNEVILLE
2020-04-14 17:49:29 +02:00
parent 3def21bc7d
commit 9603c1ff01
14 changed files with 103 additions and 61 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
@@ -242,6 +243,12 @@ namespace ModernKeePass.Infrastructure.KeePass
case EntryFieldName.Icon:
pwEntry.IconId = IconMapper.MapIconToPwIcon((Icon)fieldValue);
break;
case EntryFieldName.BackgroundColor:
pwEntry.BackgroundColor = (Color)fieldValue;
break;
case EntryFieldName.ForegroundColor:
pwEntry.ForegroundColor = (Color)fieldValue;
break;
}
}