Skip to content

Commit 827eb96

Browse files
authored
Added IsImportedTheme property (#8126)
1 parent af0483a commit 827eb96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Files/Helpers/ExternalResourcesHelper.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,12 @@ public async Task<ResourceDictionary> TryLoadResourceDictionary(AppTheme theme)
9393
if (theme.AbsolutePath.Contains(ImportedThemesFolder.Path))
9494
{
9595
file = await ImportedThemesFolder.GetFileAsync(theme.Path);
96+
theme.IsImportedTheme = true;
9697
}
9798
else
9899
{
99100
file = await ThemeFolder.GetFileAsync(theme.Path);
101+
theme.IsImportedTheme = false;
100102
}
101103

102104
var code = await FileIO.ReadTextAsync(file);
@@ -138,5 +140,6 @@ public class AppTheme
138140
public string Path { get; set; }
139141
public string AbsolutePath { get; set; }
140142
public string Key => $"{Name}";
143+
public bool IsImportedTheme { get; set; }
141144
}
142145
}

0 commit comments

Comments
 (0)