diff options
| author | ruki <[email protected]> | 2021-05-30 14:50:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-30 14:50:13 +0800 |
| commit | b8664ee65f731b47213436a1858b5072b7d7b18f (patch) | |
| tree | 23ff8189a084d1c00ce76977be8d2d7ef3e69bde | |
| parent | 1581e24742625d79eb79ab48bdeccfcb6580cab0 (diff) | |
improve default theme
| -rw-r--r-- | xmake/themes/default/xmake.lua | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/xmake/themes/default/xmake.lua b/xmake/themes/default/xmake.lua index 554b15c1a..31c42eeab 100644 --- a/xmake/themes/default/xmake.lua +++ b/xmake/themes/default/xmake.lua @@ -50,7 +50,11 @@ theme("default") set_color("build.object", "") -- the building target file - set_color("build.target", "magenta bright") + if is_subhost("windows") and (os.term() == "powershell" or os.term() == "pwsh") then + set_color("build.target", "cyan bright") + else + set_color("build.target", "magenta bright") + end -- the spinner chars if (is_subhost("windows") and winos.version():lt("win10")) or is_subhost("msys", "cygwin") then @@ -70,8 +74,13 @@ theme("default") set_color("dump.default", "red") set_color("dump.udata", "yellow") set_color("dump.table", "bright") - set_color("dump.string", "magenta bright") - set_color("dump.string_quote", "magenta") + if is_subhost("windows") and (os.term() == "powershell" or os.term() == "pwsh") then + set_color("dump.string", "red bright") + set_color("dump.string_quote", "red") + else + set_color("dump.string", "magenta bright") + set_color("dump.string_quote", "magenta") + end set_color("dump.keyword", "blue") set_color("dump.number", "green bright") set_color("dump.function", "cyan") |
