From 2dbcfa78413449dc82c7e909f8f4c9b5ccb8b60d Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 24 Jan 2021 23:17:53 +0800 Subject: fix theme --- xmake/themes/dark/xmake.lua | 6 +++--- xmake/themes/default/xmake.lua | 6 +++--- xmake/themes/ninja/xmake.lua | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/xmake/themes/dark/xmake.lua b/xmake/themes/dark/xmake.lua index c9b47a3d7..d6e61d94e 100644 --- a/xmake/themes/dark/xmake.lua +++ b/xmake/themes/dark/xmake.lua @@ -53,10 +53,10 @@ theme("dark") set_color("build.target", "magenta") -- the spinner chars - if not is_subhost("msys", "cygwin") then - set_text("spinner.chars", '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏') - else + if (is_subhost("windows") and winos.version():lt("win10")) or is_subhost("msys", "cygwin") then set_text("spinner.chars", '\\', '-', '/', '|') + else + set_text("spinner.chars", '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏') end -- color dump diff --git a/xmake/themes/default/xmake.lua b/xmake/themes/default/xmake.lua index 93be14266..275ac6481 100644 --- a/xmake/themes/default/xmake.lua +++ b/xmake/themes/default/xmake.lua @@ -53,10 +53,10 @@ theme("default") set_color("build.target", "magenta bright") -- the spinner chars - if not is_subhost("msys", "cygwin") then - set_text("spinner.chars", '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏') - else + if (is_subhost("windows") and winos.version():lt("win10")) or is_subhost("msys", "cygwin") then set_text("spinner.chars", '\\', '-', '/', '|') + else + set_text("spinner.chars", '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏') end -- color dump diff --git a/xmake/themes/ninja/xmake.lua b/xmake/themes/ninja/xmake.lua index 3e4a0f9f2..84353e788 100644 --- a/xmake/themes/ninja/xmake.lua +++ b/xmake/themes/ninja/xmake.lua @@ -53,10 +53,10 @@ theme("ninja") set_color("build.target", "magenta bright") -- the spinner chars - if not is_subhost("msys", "cygwin") then - set_text("spinner.chars", '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏') - else + if (is_subhost("windows") and winos.version():lt("win10")) or is_subhost("msys", "cygwin") then set_text("spinner.chars", '\\', '-', '/', '|') + else + set_text("spinner.chars", '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏') end -- color dump -- cgit v1.3.1