diff options
| author | OpportunityLiu <[email protected]> | 2019-07-13 22:50:28 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-14 00:04:53 +0800 |
| commit | d5489da5f95a1ce5a39c3a40d5ef77729cbb6e1f (patch) | |
| tree | e06d7a5836d236c936e1dc30a82be25274cda84d | |
| parent | 6f49281f6397fbb876ea9f88a72fe47da36af89d (diff) | |
use emoji name
| -rw-r--r-- | xmake/core/base/dump.lua | 7 | ||||
| -rw-r--r-- | xmake/themes/emoji/xmake.lua | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/xmake/core/base/dump.lua b/xmake/core/base/dump.lua index 42f09e2c6..4cf76f115 100644 --- a/xmake/core/base/dump.lua +++ b/xmake/core/base/dump.lua @@ -28,8 +28,11 @@ local table = require("base/table") -- format string with theme colors function dump._format(fmtkey, fmtdefault, ...) local theme = colors.theme() - local fmt = theme and theme:get(fmtkey) or fmtdefault - return string.format(fmt, ...) + if theme then + return colors.translate(string.format(theme:get(fmtkey), ...)) + else + return string.format(fmtdefault, ...) + end end function dump._translate(str) diff --git a/xmake/themes/emoji/xmake.lua b/xmake/themes/emoji/xmake.lua index 39a1bee8f..da189e23f 100644 --- a/xmake/themes/emoji/xmake.lua +++ b/xmake/themes/emoji/xmake.lua @@ -55,8 +55,8 @@ theme("emoji") set_text("dump.default_format", "<%s>") set_text("dump.udata_format", "[%s]") set_text("dump.table_format", "{%s}") - set_text("dump.anchor", "⚓ %s") - set_text("dump.reference", "⛵ %s") + set_text("dump.anchor", "${anchor} %s") + set_text("dump.reference", "${sailboat} %s") set_color("dump.anchor", "yellow") set_color("dump.reference", "yellow") set_color("dump.default", "bright") |
