diff options
| author | ruki <[email protected]> | 2021-01-24 23:17:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-24 23:17:53 +0800 |
| commit | 2dbcfa78413449dc82c7e909f8f4c9b5ccb8b60d (patch) | |
| tree | 2b9afb5fb2853f40cfe29f496b3f16d739c5d8d4 | |
| parent | 4e39a9f9da50f54eef30e289078d8794fd5d74ad (diff) | |
fix theme
| -rw-r--r-- | xmake/themes/dark/xmake.lua | 6 | ||||
| -rw-r--r-- | xmake/themes/default/xmake.lua | 6 | ||||
| -rw-r--r-- | 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 |
