If your terminal supports 24-bit color, you can adjust the theme colors by
specifying gamma, contrast, hue rotation, etc. This also works for the
terminals without the 24-bit color support if bleopt term_index_colors
is
properly set up, but the resulting colors would be reduced to a smaller number
of colors.
ble-import contrib/colorglass
# If your terminal does not support the 24-bit colors, please explicitly
# configure it by putting the following line:
#bleopt term_true_colors=
This option specifies the change of gamma by percentage. For example, bleopt colorglass_gamma=5
performs the gamma correction with bleopt colorglass_gamma=-5
performs the gamma correction with
# default
bleopt colorglass_gamma=0
This option specifies the contrast modification in the range -100..100.
# default
bleopt colorglass_contrast=0
This option specifies the angle of hue rotation in degrees.
# default
bleopt colorglass_rotate=0
This option specifies the change of saturation in the range -100..100.
# default
bleopt colorglass_saturation=0
This option specifies the change of brightness in the range -100..100.
# default
bleopt colorglass_brightness=0
This option specifies the opacity in the range 0..255 when the color is
synthesized with the background color specified by bleopt colorglass_color
.
# defualt
bleopt colorglass_alpha=255
This option specifies the background color used by the color synthesis by
bleopt colorglass_alpha
.
# defualt
bleopt colorglass_color=0x8888FF
This option specifies a color scheme of base16
colors (index colors 0..15).
When this option is set to a (non-empty) palette name, index colors 0..15 in
the output of ble.sh
will be replaced by the corresponding 24-bit colors in
the palette. See List of base16 palettes
or colorglass.base16.dat
for the list of available palettes.
# defualt
bleopt colorglass_base16_palette=
When this option is set to a non-empty value, the colors under color blindness
are simulated. Five values none
, protanopia
, deuteranopia
, tritanopia
,
and achromatopsia
are supported.
# default
bleopt colorglass_blindness=none