File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 17
17
"react-dom" : " ^18.2.0"
18
18
},
19
19
"devDependencies" : {
20
- "@centml/deepview-ui" : " ^0.1.5 " ,
20
+ "@centml/deepview-ui" : " ^0.1.7 " ,
21
21
"@centml/ui" : " ^1.8.9" ,
22
22
"@testing-library/react" : " ^14.2.2" ,
23
23
"@types/node" : " ^20.12.2" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const Layout = ({ children }: PropsWithChildren) => {
6
6
return (
7
7
< div className = "flex h-screen flex-col" >
8
8
< Header />
9
- < div className = "flex grow flex-col bg-gray-100 px-4" >
9
+ < div className = "flex grow flex-col bg-gray-100 px-4 dark:bg-neutral-900 " >
10
10
< TabGroup
11
11
items = { [
12
12
{
Original file line number Diff line number Diff line change @@ -401,12 +401,13 @@ export class SkylineSession {
401
401
const scriptUri = this . webviewPanel . webview . asWebviewUri ( scriptPathOnDisk ) ;
402
402
const stylePathOnDisk = vscode . Uri . file ( path . join ( buildPath , 'build' , mainStyle ) ) ;
403
403
const styleUri = this . webviewPanel . webview . asWebviewUri ( stylePathOnDisk ) ;
404
+ const themeClass = vscode . window . activeColorTheme . kind === vscode . ColorThemeKind . Dark ? 'dark' : 'light' ;
404
405
405
406
// Use a nonce to whitelist which scripts can be run
406
407
const nonce = crypto . randomBytes ( 16 ) . toString ( 'base64' ) ;
407
408
408
409
return `<!DOCTYPE html>
409
- <html lang="en">
410
+ <html lang="en" class=" ${ themeClass } " >
410
411
<head>
411
412
<meta charset="utf-8">
412
413
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
You can’t perform that action at this time.
0 commit comments