Merge pull request #5034 from beetbox/YES_NO_COLOR

This commit is contained in:
J0J0 Todos 2023-12-14 23:37:56 +01:00 committed by GitHub
commit bf6eb04827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -591,7 +591,7 @@ def colorize(color_name, text):
"""Colorize text if colored output is enabled. (Like _colorize but """Colorize text if colored output is enabled. (Like _colorize but
conditional.) conditional.)
""" """
if config["ui"]["color"]: if config["ui"]["color"] and "NO_COLOR" not in os.environ:
global COLORS global COLORS
if not COLORS: if not COLORS:
# Read all color configurations and set global variable COLORS. # Read all color configurations and set global variable COLORS.

View file

@ -13,7 +13,7 @@ Major new features:
* The beets importer UI received a major overhaul. Several new configuration * The beets importer UI received a major overhaul. Several new configuration
options are available for customizing layout and colors: :ref:`ui_options`. options are available for customizing layout and colors: :ref:`ui_options`.
:bug:`3721` :bug:`3721` :bug:`5028`
New features: New features: