File tree 1 file changed +4
-1
lines changed
views/components/settings/about
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,13 @@ export class GPUStatus extends PureComponent {
17
17
const gpuWindow = open ( fileUrl ( path . join ( ROOT , 'index-plugin.html' ) ) , 'plugin[gpuinfo]' )
18
18
gpuWindow . addEventListener ( 'DOMContentLoaded' , ( ) => {
19
19
const div = gpuWindow . document . createElement ( 'div' )
20
+ const color = window . isDarkTheme ? '#3d3d3d' : 'white'
20
21
div . style . height = '100%'
21
- div . innerHTML = '<webview src="chrome://gpu" style="width: 100%; height: 100%" />'
22
+ div . innerHTML =
23
+ '<webview src="chrome://gpu" style="width: 100%; height: 100%" webpreferences="transparent=yes" />'
22
24
gpuWindow . document . body . style . height = '100vh'
23
25
gpuWindow . document . body . style . margin = 0
26
+ gpuWindow . document . body . style . backgroundColor = color
24
27
gpuWindow . document . body . appendChild ( div )
25
28
} )
26
29
}
You can’t perform that action at this time.
0 commit comments