diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2018-12-22 23:16:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-02 16:32:59 +0000 |
commit | 87e3a9739d2c28f7fb9d8991586430c2c9bf149c (patch) | |
tree | f916aa543d6d314818b72f1990e04910593fc631 /bitbake/lib/bb | |
parent | 004ec4fb4de5648db9aafcbd2f8dbe24a8b5f9d6 (diff) | |
download | poky-87e3a9739d2c28f7fb9d8991586430c2c9bf149c.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: 35769412de6387f55e5efa4ebc59a8d1e3c8870f)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 8 |
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): | |||
342 | def init_colors(enable_color): | 342 | def 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: |