From e46c2b93962d96c6ef0a9d46fb99ab7ab53b173d Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 23 Oct 2020 23:34:39 +0800 Subject: improve xmake logo --- xmake/core/base/option.lua | 2 +- xmake/modules/private/xrepo/main.lua | 2 +- 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 -- cgit v1.3.1