]> git.alsa-project.org Git - alsa-utils.git/commit
alsamixer: Use a struct for storing color attributes
authorbraph <braph93@gmx.de>
Thu, 3 Oct 2019 15:36:52 +0000 (17:36 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 1 Jul 2020 14:10:35 +0000 (16:10 +0200)
commit32dc22c2bf089d51a8d8e46d56cf57e0e99412bc
tree85a6f874f01121b23feef849b15c56517db5a6a6
parentba1c5357a1b796b2844d44002ee1d6ab78cd06e1
alsamixer: Use a struct for storing color attributes

This commit is a preparation for the configuration file parser.

The `int attr_*` variables have been moved into a separate struct.
Members of that struct are alphabetically ordered, so an attribute can
later be accessed by its name.

Added `int get_color_pair(short fg, short bg)` for returning or
creating a color pair number.

Added call to `use_default_colors()` for enabling access to the
terminal's default color (-1).

Signed-off-by: Benjamin Abendroth <braph93@gmx.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsamixer/card_select.c
alsamixer/colors.c
alsamixer/colors.h
alsamixer/device_name.c
alsamixer/mixer_display.c
alsamixer/mixer_widget.c
alsamixer/proc_files.c
alsamixer/textbox.c