commit 4e8feafcc3f5bebf66457cdd064ca5f5fea8c1fa
parent aeaf7b0810eb08af51b968b751ab13d8dee7559e
Author: hhvn <dev@hhvn.uk>
Date: Sun, 13 Nov 2022 13:36:40 +0000
Rename unselbg to altbg
Diffstat:
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/gui.c b/src/gui.c
@@ -119,7 +119,7 @@ gui_tabs(int x, int y, int w, int h, Tabs *tabs) {
if (i == tabs->sel)
selx = cx;
else
- ui_draw_rectangle(cx, y, tabw, h, col_unselbg);
+ ui_draw_rectangle(cx, y, tabw, h, col_altbg);
ui_print(cx + padx + iw, y + pady, col_fg, "%s", tabs->tabs[i].name);
if (tabs->tabs[i].icon)
ui_draw_texture(*tabs->tabs[i].icon, cx + padx / 2,
@@ -220,7 +220,7 @@ gui_dropdown(int x, int y, int w, Dropdown *d) {
ui_print(x + TPX, y + TPY, col_info, "%s", d->placeholder);
if (focused) {
- ui_draw_rectangle(x, y + h, w, fh - h, col_unselbg);
+ ui_draw_rectangle(x, y + h, w, fh - h, col_altbg);
for (i = 0; i < d->n; i++) {
ui_print(x + TPX, y + TPY + (i+1) * h, col_fg, "%s", d->str[i]);
}
@@ -263,7 +263,7 @@ gui_input(int x, int y, int w, Input *in) {
in->cur = in->len;
ui_draw_border_around(x, y, w, h, 1);
- ui_draw_rectangle(x, y, w, h, focused ? col_bg : col_unselbg);
+ ui_draw_rectangle(x, y, w, h, focused ? col_bg : col_altbg);
if (in->len)
ui_print(x + TPX, y + TPY, col_fg, "%S", in->wstr);
else if (!focused && in->placeholder)
diff --git a/src/pane.c b/src/pane.c
@@ -27,7 +27,7 @@ pane_end(void) {
f->geom->y,
SCROLLBAR_W,
f->geom->h,
- col_unselbg);
+ col_altbg);
ui_draw_rectangle(f->geom->x + f->geom->w - SCROLLBAR_W,
f->geom->y + f->geom->h * f->off / f->max,
SCROLLBAR_W,
diff --git a/src/style.h b/src/style.h
@@ -29,7 +29,7 @@
/* colours */
extern const Color col_fg;
extern const Color col_bg;
-extern const Color col_unselbg;
+extern const Color col_altbg;
extern const Color col_border;
extern const Color col_info;
extern const Color col_orbit;
diff --git a/styles/aurora.c b/styles/aurora.c
@@ -9,7 +9,7 @@
const Color col_fg = WHITE;
const Color col_bg = { 0x00, 0x00, 0x3c, 0xff };
-const Color col_unselbg = { 0x00, 0x00, 0x2c, 0xff };
+const Color col_altbg = { 0x00, 0x00, 0x2c, 0xff };
const Color col_border = { 0x1e, 0x1e, 0x1e, 0xff };
const Color col_info = AURORA_GREEN;
const Color col_orbit = AURORA_GREEN;
diff --git a/styles/hhvn.c b/styles/hhvn.c
@@ -5,7 +5,7 @@
const Color col_fg = WHITE;
const Color col_bg = { 0x05, 0x0a, 0x10, 0xff };
-const Color col_unselbg = { 0x0c, 0x17, 0x26, 0xff };
+const Color col_altbg = { 0x0c, 0x17, 0x26, 0xff };
const Color col_border = { 0x1b, 0x36, 0x4b, 0xff };
const Color col_info = { 0x00, 0x77, 0x77, 0xff };
const Color col_orbit = { 0x57, 0x5b, 0x72, 0xff };