diff options
| author | ruki <[email protected]> | 2020-10-23 00:32:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-23 00:32:25 +0800 |
| commit | a5978fb4707fe52520a5c4e5c2ba10a1aee095fe (patch) | |
| tree | 4cdd8e120520821322af3752f03cd59d7ab7d4b1 /xmake/core/base/option.lua | |
| parent | 640e807fdd4ff05534d784f6d706e0c990e63c6e (diff) | |
improve xrepo logo
Diffstat (limited to 'xmake/core/base/option.lua')
| -rw-r--r-- | xmake/core/base/option.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua index ef6cac2e4..28710df38 100644 --- a/xmake/core/base/option.lua +++ b/xmake/core/base/option.lua @@ -484,7 +484,7 @@ function option.show_update_tips() end -- show logo -function option.show_logo(logo) +function option.show_logo(logo, opt) -- define logo logo = logo or [[ @@ -498,15 +498,16 @@ function option.show_logo(logo) ]] -- make rainbow for logo + opt = opt or {} if colors.truecolor() or colors.color256() then local lines = {} - local seed = 236 + local seed = opt.seed or 236 for _, line in ipairs(logo:split("\n")) do local i = 0 local line2 = "" line:gsub(".", function (c) local code = colors.truecolor() and colors.rainbow24(i, seed) or colors.rainbow256(i, seed) - line2 = string.format("%s${%s}%s", line2, code, c) + line2 = string.format("%s${%s %s}%s", line2, opt.bright and "bright" or "", code, c) i = i + 1 end) table.insert(lines, line2) |
