summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-23 23:34:39 +0800
committerruki <[email protected]>2020-10-23 23:34:39 +0800
commite46c2b93962d96c6ef0a9d46fb99ab7ab53b173d (patch)
tree1d61b69b6a1bd5a16858d34d0ac1c958b4358d87
parentc52d3d2210a6a56cca5dde8c1e06a1c962cd36c6 (diff)
improve xmake logo
-rw-r--r--xmake/core/base/option.lua2
-rw-r--r--xmake/modules/private/xrepo/main.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua
index 28710df38..775f98b7e 100644
--- a/xmake/core/base/option.lua
+++ b/xmake/core/base/option.lua
@@ -507,7 +507,7 @@ function option.show_logo(logo, opt)
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}%s", line2, opt.bright and "bright" or "", code, c)
+ line2 = string.format("%s${bright %s}%s", line2, code, c)
i = i + 1
end)
table.insert(lines, line2)
diff --git a/xmake/modules/private/xrepo/main.lua b/xmake/modules/private/xrepo/main.lua
index 1a6d3fd6f..26938f285 100644
--- a/xmake/modules/private/xrepo/main.lua
+++ b/xmake/modules/private/xrepo/main.lua
@@ -41,7 +41,7 @@ function _show_version()
by ruki, xmake.io
]]
- option.show_logo(logo, {seed = 680, bright = true})
+ option.show_logo(logo, {seed = 680})
end
-- get main menu options