Skip to content

Commit

Permalink
Bug fix for custom registered themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokyyn committed Sep 15, 2023
1 parent 41148c9 commit b799fdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/Lucid/Theming/ThemeProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class ThemeProvider
static ThemeProvider()
{
_allThemes = System.Reflection.Assembly.GetExecutingAssembly().GetTypes().Where(t => !t.IsInterface && (t.BaseType == typeof(BaseDarkTheme) || t.BaseType == typeof(BaseLightTheme))).Select(c => (ITheme)Activator.CreateInstance(c)).Where(u => u.Enabled).ToList();
_userRegisteredThemes = new List<ITheme>();

LoadAddtionalThemes();
}
Expand Down

0 comments on commit b799fdb

Please sign in to comment.