From 080106c1dfa4ff45be6f1f94827ca4b4d103d5b5 Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 29 Jan 2021 02:23:57 +0000 Subject: [PATCH] fixed custom theme being cleared sometimes from the command line --- src/js/commandline.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/js/commandline.js b/src/js/commandline.js index f725ae887..8a2f9848d 100644 --- a/src/js/commandline.js +++ b/src/js/commandline.js @@ -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)