Skip to content

Commit

Permalink
fix: gpu page background
Browse files Browse the repository at this point in the history
  • Loading branch information
KochiyaOcean committed Sep 6, 2024
1 parent deba12d commit e2feabc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion views/components/settings/about/gpu-status.es
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ export class GPUStatus extends PureComponent {
const gpuWindow = open(fileUrl(path.join(ROOT, 'index-plugin.html')), 'plugin[gpuinfo]')
gpuWindow.addEventListener('DOMContentLoaded', () => {
const div = gpuWindow.document.createElement('div')
const color = window.isDarkTheme ? '#3d3d3d' : 'white'
div.style.height = '100%'
div.innerHTML = '<webview src="chrome://gpu" style="width: 100%; height: 100%" />'
div.innerHTML =
'<webview src="chrome://gpu" style="width: 100%; height: 100%" webpreferences="transparent=yes" />'
gpuWindow.document.body.style.height = '100vh'
gpuWindow.document.body.style.margin = 0
gpuWindow.document.body.style.backgroundColor = color
gpuWindow.document.body.appendChild(div)
})
}
Expand Down

0 comments on commit e2feabc

Please sign in to comment.