Remove pango_highlight, it's useless.

This commit is contained in:
speedie 2023-07-14 01:39:00 +02:00
parent 49eda6745b
commit 70f1970684
5 changed files with 1 additions and 5 deletions

View file

@ -245,7 +245,6 @@ spmenu = {
/* Pango markup options */ /* Pango markup options */
pango = ( { item = 1; // Interpret Pango markup for items (0/1) pango = ( { item = 1; // Interpret Pango markup for items (0/1)
highlight = 1; // Intepret Pango markup for highlighting (0/1)
prompt = 1; // Interpret Pango markup for the prompt (0/1) prompt = 1; // Interpret Pango markup for the prompt (0/1)
input = 1; // Interpret Pango markup for the input (0/1) input = 1; // Interpret Pango markup for the input (0/1)
leftarrow = 0; // Interpret Pango markup for the left arrow (0/1) leftarrow = 0; // Interpret Pango markup for the left arrow (0/1)

View file

@ -798,7 +798,6 @@ void conf_init(void) {
// look up // look up
config_setting_lookup_int(conf, "item", &pango_item); // spmenu.pango.input config_setting_lookup_int(conf, "item", &pango_item); // spmenu.pango.input
config_setting_lookup_int(conf, "highlight", &pango_highlight); // spmenu.pango.highlight
config_setting_lookup_int(conf, "prompt", &pango_prompt); // spmenu.pango.rarrow config_setting_lookup_int(conf, "prompt", &pango_prompt); // spmenu.pango.rarrow
config_setting_lookup_int(conf, "input", &pango_input); // spmenu.pango.input config_setting_lookup_int(conf, "input", &pango_input); // spmenu.pango.input
config_setting_lookup_int(conf, "leftarrow", &pango_leftarrow); // spmenu.pango.leftarrow config_setting_lookup_int(conf, "leftarrow", &pango_leftarrow); // spmenu.pango.leftarrow

View file

@ -28,7 +28,7 @@ void drawhighlights(struct item *item, int x, int y, int w, int p, const char *i
x + indent + (p), x + indent + (p),
y, y,
MIN(w - indent - sp.lrpad, TEXTW(highlight) - sp.lrpad), MIN(w - indent - sp.lrpad, TEXTW(highlight) - sp.lrpad),
sp.bh, 0, highlight, 0, pango_highlight ? True : False, sp.bh, 0, highlight, 0, False,
item == sel ? col_hlselfg : col_hlnormfg, item == sel ? col_hlselfg : col_hlnormfg,
item == sel ? col_hlselbg : col_hlnormbg, item == sel ? col_hlselbg : col_hlnormbg,
item == sel ? alpha_hlselfg : alpha_hlnormfg, item == sel ? alpha_hlselfg : alpha_hlnormfg,

View file

@ -247,7 +247,6 @@ static int alpha_capsbg = 200; /* Alpha for the caps lock indicat
/* Pango options */ /* Pango options */
static int pango_item = 1; /* Enable support for pango markup for the items */ static int pango_item = 1; /* Enable support for pango markup for the items */
static int pango_highlight = 1; /* Enable support for pango markup for the highlighting */
static int pango_prompt = 1; /* Enable support for pango markup for the prompt */ static int pango_prompt = 1; /* Enable support for pango markup for the prompt */
static int pango_caps = 1; /* Enable support for pango markup for the caps lock indicator */ static int pango_caps = 1; /* Enable support for pango markup for the caps lock indicator */
static int pango_input = 1; /* Enable support for pango markup for user input */ static int pango_input = 1; /* Enable support for pango markup for user input */

View file

@ -460,7 +460,6 @@ void theme_load(void) {
// look up // look up
config_setting_lookup_int(conf, "item", &pango_item); // theme.pango.input config_setting_lookup_int(conf, "item", &pango_item); // theme.pango.input
config_setting_lookup_int(conf, "highlight", &pango_highlight); // theme.pango.highlight
config_setting_lookup_int(conf, "prompt", &pango_prompt); // theme.pango.rarrow config_setting_lookup_int(conf, "prompt", &pango_prompt); // theme.pango.rarrow
config_setting_lookup_int(conf, "input", &pango_input); // theme.pango.input config_setting_lookup_int(conf, "input", &pango_input); // theme.pango.input
config_setting_lookup_int(conf, "leftarrow", &pango_leftarrow); // theme.pango.leftarrow config_setting_lookup_int(conf, "leftarrow", &pango_leftarrow); // theme.pango.leftarrow