Add folder icon support to MacOS
This commit is contained in:
parent
cf9ec9facf
commit
b9c2a1cce3
10 changed files with 761 additions and 18 deletions
|
|
@ -18,11 +18,8 @@ namespace WindowsConfigApp
|
|||
|
||||
try
|
||||
{
|
||||
var icon = Image.Load(File.ReadAllBytes(image)).ToIcon();
|
||||
iconPath = Path.Combine(directory, $"{Guid.NewGuid()}.ico");
|
||||
File.WriteAllBytes(iconPath, icon);
|
||||
|
||||
new DirectoryInfo(directory)?.SetIcon(iconPath, "Music");
|
||||
var icon = Image.Load(image).ToIcon();
|
||||
new DirectoryInfo(directory)?.SetIcon(icon, "Music");
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue