From e2feabc481ad967cd8e73943262707ea611eeda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B1=E9=A2=A8=E8=B0=B7=E3=82=AA=E3=83=BC=E3=82=B7?= =?UTF-8?q?=E3=83=A3=E3=83=B3?= Date: Fri, 6 Sep 2024 23:33:07 +0900 Subject: [PATCH] fix: gpu page background --- views/components/settings/about/gpu-status.es | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/components/settings/about/gpu-status.es b/views/components/settings/about/gpu-status.es index 856f2269e..a6430da36 100644 --- a/views/components/settings/about/gpu-status.es +++ b/views/components/settings/about/gpu-status.es @@ -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 = '' + div.innerHTML = + '' gpuWindow.document.body.style.height = '100vh' gpuWindow.document.body.style.margin = 0 + gpuWindow.document.body.style.backgroundColor = color gpuWindow.document.body.appendChild(div) }) }