summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-03 00:32:01 +0800
committerruki <[email protected]>2019-01-02 21:12:09 +0800
commita5edf8e991f7fcab4981657c4f5aa9821411b544 (patch)
treeb7f4342da7f937bcfb2e6ce80306d16f36bbd130
parent858030589a8747296ab94976d5fb7daf2053c150 (diff)
add dark and emoji styles
-rw-r--r--xmake/themes/dark/xmake.lua46
-rw-r--r--xmake/themes/emoji/xmake.lua46
2 files changed, 92 insertions, 0 deletions
diff --git a/xmake/themes/dark/xmake.lua b/xmake/themes/dark/xmake.lua
new file mode 100644
index 000000000..6d9171226
--- /dev/null
+++ b/xmake/themes/dark/xmake.lua
@@ -0,0 +1,46 @@
+--!A cross-platform build utility based on Lua
+--
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015 - 2019, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file xmake.lua
+--
+
+-- define theme
+theme("dark")
+
+ -- set color of the error info
+ set_color("error", "bright red")
+ set_color("error.verbose", "dim red")
+
+ -- set color of the warning info
+ set_color("warning", "bright cyan")
+ set_color("warning.verbose", "dim cyan")
+
+ -- the color of the building progress
+ set_color("build.progress", "green")
+
+ -- the color of the building object file
+ set_color("build.object", "clear")
+ set_color("build.object.verbose", "dim")
+
+ -- the color of the building target file
+ set_color("build.target", "magenta")
+ set_color("build.target.verbose", "dim magenta")
+
diff --git a/xmake/themes/emoji/xmake.lua b/xmake/themes/emoji/xmake.lua
new file mode 100644
index 000000000..f04bd84bd
--- /dev/null
+++ b/xmake/themes/emoji/xmake.lua
@@ -0,0 +1,46 @@
+--!A cross-platform build utility based on Lua
+--
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015 - 2019, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file xmake.lua
+--
+
+-- define theme
+theme("emoji")
+
+ -- set color of the error info
+ set_color("error", "x")
+ set_color("error.verbose", "x")
+
+ -- set color of the warning info
+ set_color("warning", "warning")
+ set_color("warning.verbose", "warning")
+
+ -- the color of the building progress
+ set_color("build.progress", "green")
+
+ -- the color of the building object file
+ set_color("build.object", "clear")
+ set_color("build.object.verbose", "dim")
+
+ -- the color of the building target file
+ set_color("build.target", "magenta")
+ set_color("build.target.verbose", "dim magenta")
+