mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 00:03:44 +08:00
fixed custom theme being cleared sometimes from the command line
This commit is contained in:
parent
493a7d4d92
commit
080106c1df
1 changed files with 5 additions and 3 deletions
|
@ -1877,7 +1877,8 @@ $("#commandLineWrapper #commandLine .suggestions").on("mouseover", (e) => {
|
|||
"activeKeyboard"
|
||||
);
|
||||
if (isPreviewingTheme) {
|
||||
previewTheme(config.theme, false);
|
||||
applyCustomThemeColors();
|
||||
// previewTheme(config.theme, false);
|
||||
}
|
||||
let hoverId = $(e.target).attr("command");
|
||||
try {
|
||||
|
@ -1909,7 +1910,8 @@ $("#commandLineWrapper").click((e) => {
|
|||
|
||||
$(document).keydown((e) => {
|
||||
if (isPreviewingTheme) {
|
||||
previewTheme(config.theme, false);
|
||||
applyCustomThemeColors();
|
||||
// previewTheme(config.theme, false);
|
||||
}
|
||||
if (!$("#commandLineWrapper").hasClass("hidden")) {
|
||||
$("#commandLine input").focus();
|
||||
|
@ -2046,7 +2048,7 @@ function triggerCommand(command) {
|
|||
|
||||
function hideCommandLine() {
|
||||
previewFontFamily(config.fontFamily);
|
||||
previewTheme(config.theme);
|
||||
applyCustomThemeColors();
|
||||
$("#commandLineWrapper")
|
||||
.stop(true, true)
|
||||
.css("opacity", 1)
|
||||
|
|
Loading…
Reference in a new issue