tmus

TUI Music Player
git clone https://git.sinitax.com/sinitax/tmus
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

style.h (487B)


      1#pragma once
      2
      3#define NCURSES_WIDECHAR 1
      4
      5#include <ncurses.h>
      6
      7#define ATTR_ON(win, attr) wattr_on(win, attr, NULL)
      8#define ATTR_OFF(win, attr) wattr_off(win, attr, NULL)
      9
     10enum {
     11	STYLE_DEFAULT,
     12	STYLE_TITLE,
     13	STYLE_PANE_SEP,
     14	STYLE_ITEM_SEL,
     15	STYLE_ITEM_HOVER,
     16	STYLE_ITEM_HOVER_SEL,
     17	STYLE_PREV,
     18	STYLE_ERROR,
     19	STYLE_COUNT
     20};
     21
     22void style_init(void);
     23
     24void style_add(int style, int fg, int bg, int attr);
     25void style_on(WINDOW *win, int style);
     26void style_off(WINDOW *win, int style);
     27