To enable the gray topbar, add data-topbar-color="gray" to the <html> tag in your layout. You can apply this dynamically using the LayoutStoreService with setTopbarColor('gray').