11import React , { useRef , useState , Suspense } from 'react' ;
22import { InsertRowAboveOutlined , OrderedListOutlined } from '@ant-design/icons' ;
3- import { Segmented , Space , Flex } from 'antd' ;
3+ import { Segmented , Space , Flex , theme } from 'antd' ;
44import { IStudioQueryProps , localStorageVars } from '../context' ;
55import { useContext } from '../context' ;
66import { Utils } from '@graphscope/studio-components' ;
@@ -20,6 +20,8 @@ const options = [
2020 { icon : < OrderedListOutlined /> , value : 'flow' } ,
2121] ;
2222
23+ const { useToken } = theme ;
24+
2325const ModeSwitch = ( ) => {
2426 const { updateStore, store } = useContext ( ) ;
2527 const { mode } = store ;
@@ -72,12 +74,15 @@ const Header: React.FunctionComponent<IHeaderProps> = props => {
7274 const { connectComponent, displaySidebarPosition } = props ;
7375 const { store } = useContext ( ) ;
7476 const { language } = store ;
77+ const { token } = useToken ( ) ;
7578
7679 return (
7780 < div
7881 style = { {
7982 width : '100%' ,
80- padding : '8px 0px' ,
83+ padding : '10px 0px' ,
84+ backgroundColor : token . colorBgContainer ,
85+ boxShadow : '0 1px 2px rgba(0, 0, 0, 0.03)'
8186 } }
8287 >
8388 < Flex justify = "space-between" align = "center" >
0 commit comments