示例#1
0
        protected virtual void GenerateSidebarVariables(ThemeSidebarOptions sidebarOptions)
        {
            if (sidebarOptions.BackgroundColor != null)
            {
                variables[$"--b-sidebar-background"] = ToHex(ParseColor(sidebarOptions.BackgroundColor));
            }

            if (sidebarOptions.Color != null)
            {
                variables[$"--b-sidebar-color"] = ToHex(ParseColor(sidebarOptions.Color));
            }
        }
示例#2
0
        protected virtual void GenerateSidebarVariables(ThemeSidebarOptions sidebarOptions)
        {
            if (sidebarOptions.BackgroundColor != null)
            {
                variables[ThemeVariables.SidebarBackground] = ToHex(ParseColor(sidebarOptions.BackgroundColor));
            }

            if (sidebarOptions.Color != null)
            {
                variables[ThemeVariables.SidebarColor] = ToHex(ParseColor(sidebarOptions.Color));
            }
        }