Skip to content

Commit e2feabc

Browse files
committed
fix: gpu page background
1 parent deba12d commit e2feabc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

views/components/settings/about/gpu-status.es

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ export class GPUStatus extends PureComponent {
1717
const gpuWindow = open(fileUrl(path.join(ROOT, 'index-plugin.html')), 'plugin[gpuinfo]')
1818
gpuWindow.addEventListener('DOMContentLoaded', () => {
1919
const div = gpuWindow.document.createElement('div')
20+
const color = window.isDarkTheme ? '#3d3d3d' : 'white'
2021
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" />'
2224
gpuWindow.document.body.style.height = '100vh'
2325
gpuWindow.document.body.style.margin = 0
26+
gpuWindow.document.body.style.backgroundColor = color
2427
gpuWindow.document.body.appendChild(div)
2528
})
2629
}

0 commit comments

Comments
 (0)