aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2018-11-14 02:51:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-16 13:54:57 +0000
commitf1a2c23520832ee91e85338c1ad8af1fec0d0b19 (patch)
treecc55e7d65d5814c1674f499581824957f2090d1f
parentbbf3cbae775383265292a778cd522d4e2f69a3a0 (diff)
downloadbitbake-f1a2c23520832ee91e85338c1ad8af1fec0d0b19.tar.gz
siggen: Adapt colors used by bitbake-diffsigs to support light themes
The colors specified for use with bitbake-diffsigs were adapted for a dark theme, e.g., by setting the background color to black, which made it look very bad when used with a light theme. To make it look good both with a dark or a light theme, it is better to drop the background color. It is also better to leave out the color altogether for the title and just use bold. Finally, dropping bold for the red and green texts indicating removed/added values better matches other colorized diff implementations as, e.g., git diff. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/siggen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py
index c619b596d..fdbb2a399 100644
--- a/lib/bb/siggen.py
+++ b/lib/bb/siggen.py
@@ -342,10 +342,10 @@ def dump_this_task(outfile, d):
def init_colors(enable_color):
"""Initialise colour dict for passing to compare_sigfiles()"""
# First set up the colours
- colors = {'color_title': '\033[1;37;40m',
- 'color_default': '\033[0;37;40m',
- 'color_add': '\033[1;32;40m',
- 'color_remove': '\033[1;31;40m',
+ colors = {'color_title': '\033[1m',
+ 'color_default': '\033[0m',
+ 'color_add': '\033[0;32m',
+ 'color_remove': '\033[0;31m',
}
# Leave all keys present but clear the values
if not enable_color: