summaryrefslogtreecommitdiff
path: root/src/bin/options_colors.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-09-08 19:41:16 +0200
committerBoris Faure <billiob@gmail.com>2019-09-08 19:41:16 +0200
commitb8af21128e64ab2ca52dad694afecbdded081e89 (patch)
treef81283e1566067f2fe1b7ee66f9fde73a64a5ed2 /src/bin/options_colors.c
parent67805411a411487d4821d11a3b4d271b4f42da98 (diff)
config: simplify API
Diffstat (limited to 'src/bin/options_colors.c')
-rw-r--r--src/bin/options_colors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/options_colors.c b/src/bin/options_colors.c
index 62b1640..4fbde83 100644
--- a/src/bin/options_colors.c
+++ b/src/bin/options_colors.c
@@ -101,7 +101,7 @@ _cb_op_color_chg(void *data,
101 config->colors[(j * 12) + i].b = b * a / 256; 101 config->colors[(j * 12) + i].b = b * a / 256;
102 config->colors[(j * 12) + i].a = a; 102 config->colors[(j * 12) + i].a = a;
103 termio_config_update(ctx->term); 103 termio_config_update(ctx->term);
104 config_save(config, NULL); 104 config_save(config);
105 return; 105 return;
106 } 106 }
107 } 107 }
@@ -184,7 +184,7 @@ _cb_op_reset(void *data,
184 elm_colorselector_palette_item_color_get(ctx->curitem, &r, &g, &b, &a); 184 elm_colorselector_palette_item_color_get(ctx->curitem, &r, &g, &b, &a);
185 elm_colorselector_color_set(ctx->colorsel, r, g, b, a); 185 elm_colorselector_color_set(ctx->colorsel, r, g, b, a);
186 termio_config_update(term); 186 termio_config_update(term);
187 config_save(config, NULL); 187 config_save(config);
188} 188}
189 189
190/* make color palettes wrap back. :) works with elm git. */ 190/* make color palettes wrap back. :) works with elm git. */