summaryrefslogtreecommitdiffstats
path: root/bitbake
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-19 17:03:24 +0000
commit07e1a65f076133da3fa631f315010c32ca42e244 (patch)
treecbfcfeb7fc0bd5b513cf305f7193d092d83462b1 /bitbake
parent6e706b3927f0d673353fd5dc102814c14a9411b5 (diff)
downloadpoky-07e1a65f076133da3fa631f315010c32ca42e244.tar.gz
bitbake: 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. (Bitbake rev: f1a2c23520832ee91e85338c1ad8af1fec0d0b19) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/siggen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index c619b596d8..fdbb2a3998 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -342,10 +342,10 @@ def dump_this_task(outfile, d):
342def init_colors(enable_color): 342def init_colors(enable_color):
343 """Initialise colour dict for passing to compare_sigfiles()""" 343 """Initialise colour dict for passing to compare_sigfiles()"""
344 # First set up the colours 344 # First set up the colours
345 colors = {'color_title': '\033[1;37;40m', 345 colors = {'color_title': '\033[1m',
346 'color_default': '\033[0;37;40m', 346 'color_default': '\033[0m',
347 'color_add': '\033[1;32;40m', 347 'color_add': '\033[0;32m',
348 'color_remove': '\033[1;31;40m', 348 'color_remove': '\033[0;31m',
349 } 349 }
350 # Leave all keys present but clear the values 350 # Leave all keys present but clear the values
351 if not enable_color: 351 if not enable_color: