diff --git a/Oqtane.Client/Themes/ThemeBase.cs b/Oqtane.Client/Themes/ThemeBase.cs index 62bc44cc..91091dbf 100644 --- a/Oqtane.Client/Themes/ThemeBase.cs +++ b/Oqtane.Client/Themes/ThemeBase.cs @@ -84,6 +84,16 @@ namespace Oqtane.Themes } } + // property for obtaining theme information about this theme component + public Theme ThemeState + { + get + { + var type = GetType().Namespace + ", " + GetType().Assembly.GetName().Name; + return PageState?.Site.Themes.FirstOrDefault(item => item.ThemeName == type); + } + } + // path method public string ThemePath()