3
3
4
4
import {
5
5
JupyterFrontEnd ,
6
- JupyterFrontEndPlugin
6
+ JupyterFrontEndPlugin ,
7
7
} from '@jupyterlab/application' ;
8
8
9
9
import {
10
10
IToolbarWidgetRegistry ,
11
11
createToolbarFactory ,
12
- setToolbar
12
+ setToolbar ,
13
13
} from '@jupyterlab/apputils' ;
14
14
15
15
import {
16
16
IFileBrowserFactory ,
17
17
FileBrowser ,
18
- Uploader
18
+ Uploader ,
19
19
} from '@jupyterlab/filebrowser' ;
20
20
21
21
import { ISettingRegistry } from '@jupyterlab/settingregistry' ;
@@ -27,7 +27,8 @@ import { ITranslator } from '@jupyterlab/translation';
27
27
import {
28
28
caretDownIcon ,
29
29
folderIcon ,
30
- runningIcon
30
+ runningIcon ,
31
+ TabBarSvg ,
31
32
} from '@jupyterlab/ui-components' ;
32
33
33
34
import { Menu , MenuBar , TabPanel } from '@lumino/widgets' ;
@@ -70,10 +71,10 @@ const createNew: JupyterFrontEndPlugin<void> = {
70
71
'terminal:create-new' ,
71
72
'console:create' ,
72
73
'filebrowser:create-new-file' ,
73
- 'filebrowser:create-new-directory'
74
+ 'filebrowser:create-new-directory' ,
74
75
] ;
75
76
76
- newCommands . forEach ( command => {
77
+ newCommands . forEach ( ( command ) => {
77
78
newMenu . addItem ( { command } ) ;
78
79
} ) ;
79
80
@@ -89,7 +90,7 @@ const createNew: JupyterFrontEndPlugin<void> = {
89
90
}
90
91
) ;
91
92
}
92
- }
93
+ } ,
93
94
} ;
94
95
95
96
/**
@@ -101,7 +102,7 @@ const browserWidget: JupyterFrontEndPlugin<void> = {
101
102
IFileBrowserFactory ,
102
103
ITranslator ,
103
104
ISettingRegistry ,
104
- IToolbarWidgetRegistry
105
+ IToolbarWidgetRegistry ,
105
106
] ,
106
107
optional : [ IRunningSessionManagers ] ,
107
108
autoStart : true ,
@@ -113,7 +114,11 @@ const browserWidget: JupyterFrontEndPlugin<void> = {
113
114
toolbarRegistry : IToolbarWidgetRegistry ,
114
115
manager : IRunningSessionManagers | null
115
116
) : void => {
116
- const tabPanel = new TabPanel ( { tabPlacement : 'top' , tabsMovable : true } ) ;
117
+ const tabPanel = new TabPanel ( {
118
+ tabPlacement : 'top' ,
119
+ tabsMovable : true ,
120
+ renderer : TabBarSvg . defaultRenderer ,
121
+ } ) ;
117
122
tabPanel . addClass ( 'jp-TreePanel' ) ;
118
123
119
124
const trans = translator . load ( 'notebook' ) ;
@@ -135,7 +140,7 @@ const browserWidget: JupyterFrontEndPlugin<void> = {
135
140
new Uploader ( {
136
141
model : browser . model ,
137
142
translator,
138
- label : trans . __ ( 'Upload' )
143
+ label : trans . __ ( 'Upload' ) ,
139
144
} )
140
145
) ;
141
146
@@ -173,7 +178,7 @@ const browserWidget: JupyterFrontEndPlugin<void> = {
173
178
} ) ;
174
179
175
180
app . shell . add ( tabPanel , 'main' , { rank : 100 } ) ;
176
- }
181
+ } ,
177
182
} ;
178
183
179
184
/**
0 commit comments