@@ -12,6 +12,7 @@ import styled from "styled-components";
1212import { useSelector } from "react-redux" ;
1313import { MenuOutlined } from "@ant-design/icons" ;
1414import { Drawer , Button } from "antd" ;
15+ import { getBrandingSetting } from "@lowcoder-ee/redux/selectors/enterpriseSelectors" ;
1516
1617type LayoutProps = {
1718sections :SideBarSectionProps [ ] ;
@@ -59,6 +60,7 @@ const DrawerContentWrapper = styled.div`
5960export function Layout ( props :LayoutProps ) {
6061const [ drawerVisible , setDrawerVisible ] = useState ( false ) ;
6162const [ isMobile , setIsMobile ] = useState ( false ) ;
63+ const brandingSettings = useSelector ( getBrandingSetting ) ;
6264
6365const toggleDrawer = ( ) => {
6466setDrawerVisible ( ! drawerVisible ) ;
@@ -124,7 +126,13 @@ export function Layout(props: LayoutProps) {
124126destroyOnHidden // Ensure drawer content is removed when closed
125127>
126128< DrawerContentWrapper >
127- < SideBarV2 className = { CNSidebar } >
129+ < SideBarV2
130+ className = { CNSidebar }
131+ $bgColor = { brandingSettings ?. config_set ?. adminSidebarColor }
132+ $fontColor = { brandingSettings ?. config_set ?. adminSidebarFontColor }
133+ $activeBgColor = { brandingSettings ?. config_set ?. adminSidebarActiveBgColor }
134+ $activeFontColor = { brandingSettings ?. config_set ?. adminSidebarActiveFontColor }
135+ >
128136{ mobileSections
129137. filter ( ( section ) => section . items . length > 0 )
130138. map ( ( section , index ) => (
@@ -141,7 +149,13 @@ export function Layout(props: LayoutProps) {
141149{ /* Desktop Layout */ }
142150< AntdLayout >
143151{ ! isMobile && (
144- < SideBarV2 className = { `${ CNSidebar } desktop-only` } >
152+ < SideBarV2
153+ className = { `${ CNSidebar } desktop-only` }
154+ $bgColor = { brandingSettings ?. config_set ?. adminSidebarColor }
155+ $fontColor = { brandingSettings ?. config_set ?. adminSidebarFontColor }
156+ $activeBgColor = { brandingSettings ?. config_set ?. adminSidebarActiveBgColor }
157+ $activeFontColor = { brandingSettings ?. config_set ?. adminSidebarActiveFontColor }
158+ >
145159{ desktopSections
146160. filter ( ( section ) => section . items . length > 0 )
147161. map ( ( section , index ) => (