Skip to content

Commit 8e0e95b

Browse files
committed
fix: transparent bg color on the Chrome GPU page
1 parent 1f667fc commit 8e0e95b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/renderer/DesktopAPI/ThemesApplier.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as E from "electron";
2-
import { DEFAULT_THEME, SELECTORS_TO_IGNORE, PROPS_WITH_COLOR } from "Const";
2+
import { DEFAULT_THEME, SELECTORS_TO_IGNORE, PROPS_WITH_COLOR, CHROME_GPU } from "Const";
33
import { getColorsMap, variablesColorsMap } from "Utils/Common";
44

55
export class ThemesApplier {
@@ -183,6 +183,12 @@ export class ThemesApplier {
183183
this.targetElements.add(document.body);
184184

185185
const figmaCoreStylesheet = this.getCoreStylesheet();
186+
if (location.href.match(CHROME_GPU)) {
187+
const newStyles = document.createElement("style");
188+
newStyles.innerText = "html { background-color: cadetblue; }";
189+
190+
document.head.appendChild(newStyles);
191+
}
186192

187193
if (!figmaCoreStylesheet) {
188194
return;

0 commit comments

Comments
 (0)