diff options
| author | ruki <[email protected]> | 2019-08-10 21:49:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-10 21:49:01 +0800 |
| commit | 35878524802b5144368f4bcad14264611a2fcff9 (patch) | |
| tree | 5ef10932fde9c5bda3ffd29b1db12867097304a5 /xmake/core/base/option.lua | |
| parent | 30689071c8b0043c65b161308a387d69d40f70be (diff) | |
add menu theme
Diffstat (limited to 'xmake/core/base/option.lua')
| -rw-r--r-- | xmake/core/base/option.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua index 60824bd1d..bae74b35a 100644 --- a/xmake/core/base/option.lua +++ b/xmake/core/base/option.lua @@ -877,7 +877,7 @@ function option.show_menu(task) -- print usage if taskmenu.usage then io.print("") - io.print(colors.translate("${bright}Usage: $${default cyan}" .. taskmenu.usage)) + io.print(colors.translate("${bright}Usage: $${default color.menu.usage}" .. taskmenu.usage .. "${clear}")) end -- print description @@ -919,7 +919,7 @@ function option.show_main() -- print usage if main.usage then io.print("") - io.print(colors.translate("${bright}Usage: $${default cyan}" .. main.usage)) + io.print(colors.translate("${bright}Usage: $${default color.menu.usage}" .. main.usage .. "${clear}")) end -- print description @@ -992,7 +992,7 @@ function option.show_main() taskline = taskline .. taskname -- append color - taskline = "${magenta}" .. taskline .. "${clear}" + taskline = colors.translate("${color.menu.main.task.name}" .. taskline .. "${clear}") -- append spaces for i = (#taskline), padding do @@ -1084,7 +1084,7 @@ function option.show_options(options) end -- append color - option_info = "${green}" .. option_info .. "${clear}" + option_info = colors.translate("${color.menu.option.name}" .. option_info .. "${clear}") -- get width of console local console_width = os.getwinsize()["width"] |
