@@ -7,6 +7,7 @@ interface TopPanelProps {
77 current : number ;
88 scalePanel : number ;
99 visibleNewProjectBtn : boolean ;
10+ isMaximized : boolean ;
1011
1112 newTab ( ) : void ;
1213 onMainTab ( e : React . MouseEvent < HTMLDivElement > ) : void ;
@@ -21,12 +22,15 @@ const TopPanel: React.FunctionComponent<TopPanelProps> = props => {
2122 return (
2223 < div className = "top-panel" style = { { zoom : props . scalePanel ? props . scalePanel : 1 } } >
2324 < div className = "panelButtons" >
24- < Button className = { `button_clear button_title${ ! props . current ? " tab_active" : "" } ` } onClick = { props . onMainTab } >
25- < Icon color = "var(--fg-tab)" type = "Main" size = "18" />
25+ < Button
26+ className = { `button_clear button_title button_main${ ! props . current ? " tab_active tab_main_active" : "" } ` }
27+ onClick = { props . onMainTab }
28+ >
29+ < Icon color = "currentColor" type = "Figma" size = "17" />
2630 </ Button >
2731 { props . visibleNewProjectBtn ? (
2832 < Button className = "button_clear button_title" onClick = { props . onNewProject } >
29- < Icon color = "var(--fg-tab) " type = "Plus" size = "18 " />
33+ < Icon color = "currentColor " type = "Plus" size = "15 " />
3034 </ Button >
3135 ) : (
3236 ""
@@ -35,16 +39,16 @@ const TopPanel: React.FunctionComponent<TopPanelProps> = props => {
3539 < Tabs />
3640 < div className = "panelButtons" >
3741 < Button className = "button_clear button_title" onClick = { props . openMenu } >
38- < Icon color = "var(--fg-tab) " type = "MenuCorner" size = "18 " />
42+ < Icon color = "currentColor " type = "MenuCorner" size = "14 " />
3943 </ Button >
4044 < Button className = "button_clear button_control" onClick = { props . miniw } >
41- < Icon color = "var(--fg-header-control)" type = "Minimize" size = "18 " />
45+ < Icon color = "var(--fg-header-control)" type = "Minimize" size = "16 " />
4246 </ Button >
4347 < Button className = "button_clear button_control" onClick = { props . maxiw } >
44- < Icon color = "var(--fg-header-control)" type = " Maximize" size = "18 " />
48+ < Icon color = "var(--fg-header-control)" type = { props . isMaximized ? "Restore" : " Maximize"} size = "16 " />
4549 </ Button >
4650 < Button className = "button_clear button_control button_close" onClick = { props . closew } >
47- < Icon color = "var(--fg-header-control)" type = "Close" size = "18 " />
51+ < Icon color = "var(--fg-header-control)" type = "Close" size = "16 " />
4852 </ Button >
4953 </ div >
5054 </ div >
0 commit comments