mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-14 04:55:41 +01:00
40202a522a
The recent change to add the background config broke the color setup via the config file due. Fix the regression by restoring the initialization order back again, and changing the logic for the default background color to be re-initializing color pairs instead. Link: https://github.com/alsa-project/alsa-utils/issues/137 Signed-off-by: Takashi Iwai <tiwai@suse.de>
42 lines
728 B
C
42 lines
728 B
C
#ifndef COLORS_H_INCLUDED
|
|
#define COLORS_H_INCLUDED
|
|
|
|
#define TRICOLOR_VOLUME_BAR
|
|
|
|
struct attributes {
|
|
// Alphabetically sorted
|
|
#ifdef TRICOLOR_VOLUME_BAR
|
|
int ctl_bar_hi;
|
|
#endif
|
|
int ctl_bar_lo;
|
|
#ifdef TRICOLOR_VOLUME_BAR
|
|
int ctl_bar_mi;
|
|
#endif
|
|
int ctl_capture;
|
|
int ctl_frame;
|
|
int ctl_inactive;
|
|
int ctl_label;
|
|
int ctl_label_focus;
|
|
int ctl_label_inactive;
|
|
int ctl_mark_focus;
|
|
int ctl_mute;
|
|
int ctl_nocapture;
|
|
int ctl_nomute;
|
|
int errormsg;
|
|
int infomsg;
|
|
int menu;
|
|
int menu_selected;
|
|
int mixer_active;
|
|
int mixer_frame;
|
|
int mixer_text;
|
|
int textbox;
|
|
int textfield;
|
|
};
|
|
|
|
extern struct attributes attrs;
|
|
|
|
void init_colors(int use_color);
|
|
void reinit_colors(short bg);
|
|
int get_color_pair(short fg, short bg);
|
|
|
|
#endif
|