mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-01 21:15:15 +08:00
fix(theme-constroller): fix theme flashing behavior when switching custom themes in apply() (@raaid3) (#6670)
### Description Closes [#6669](https://github.com/monkeytypegame/monkeytype/issues/6669) <!-- the issue(s) your PR resolves if any (delete if that is not the case) --> <!-- please also reference any issues and or PRs related to your pull request --> <!-- Also remove it if you are not following any issues. --> <!-- pro tip: you can mention an issue, PR, or discussion on GitHub by referencing its hash number e.g: [#1234](https://github.com/monkeytypegame/monkeytype/pull/1234) --> <!-- pro tip: you can press . (dot or period) in the code tab of any GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
This commit is contained in:
parent
83a34c64d7
commit
fdead53ba9
1 changed files with 3 additions and 1 deletions
|
|
@ -153,7 +153,9 @@ async function apply(
|
|||
customColorsOverride,
|
||||
isPreview
|
||||
);
|
||||
clearCustomTheme();
|
||||
if (!Config.customTheme) {
|
||||
clearCustomTheme();
|
||||
}
|
||||
const name = customColorsOverride ? "custom" : themeName;
|
||||
|
||||
ThemeColors.reset();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue