ui: box fixes
This commit is contained in:
+5
-5
@@ -91,8 +91,8 @@ void query_loop(app_t *app) {
|
||||
}
|
||||
}
|
||||
|
||||
/* process request from the server */
|
||||
if (FD_ISSET(sd, &readfds)) {
|
||||
/* process request from the server */
|
||||
qlen = read(sd, query_args->buf, INBUFSIZE);
|
||||
if (qlen == 0) {
|
||||
EXIT_APP("*** server closed the connection ***", app, 1)
|
||||
@@ -105,22 +105,22 @@ void query_loop(app_t *app) {
|
||||
}
|
||||
}
|
||||
|
||||
/* process upload/download */
|
||||
if (query_args->file && query_args->file->fd > -1 &&
|
||||
FD_ISSET(query_args->file->fd, &readfds)) {
|
||||
/* process upload/download */
|
||||
query_args->buf_used =
|
||||
read(query_args->file->fd, query_args->buf, INBUFSIZE);
|
||||
process_query(app);
|
||||
}
|
||||
|
||||
if (FD_ISSET(STDIN_FILENO, &readfds)) {
|
||||
if (app->main_ui.cb_b_press != NULL) {
|
||||
if (app->main_ui.cb_b_press != NULL && app->modal.is_initiated == false) {
|
||||
if (ERR == app->main_ui.cb_b_press(app, &d_args)) {
|
||||
EXIT_APP("*** error while processing user input ***", app, 4)
|
||||
w_alert("error while processing user input");
|
||||
}
|
||||
} else {
|
||||
if (ERR == process_user_input(app, &d_args)) {
|
||||
EXIT_APP("*** error while processing user input ***", app, 4)
|
||||
w_alert("error while processing user input");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -248,10 +248,10 @@ int32_t w_dialogue_draw(w_dialogue_t *d) {
|
||||
|
||||
switch (d->color_scheme) {
|
||||
case dc_normal:
|
||||
wattrset(d->win, COLOR_PAIR(0) | A_BOLD | A_REVERSE);
|
||||
wattrset(d->win, COLOR_PAIR(0) | A_REVERSE);
|
||||
break;
|
||||
case dc_alert:
|
||||
wattrset(d->win, COLOR_PAIR(4) | A_BOLD | A_REVERSE);
|
||||
wattrset(d->win, COLOR_PAIR(4) | A_REVERSE);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -80,9 +80,9 @@ int32_t w_input_draw(w_input_t *input, uint32_t active_id) {
|
||||
}
|
||||
|
||||
if (input->w.id == active_id) {
|
||||
wattrset(win, COLOR_PAIR(3));
|
||||
wattrset(win, COLOR_PAIR(3) | A_BOLD);
|
||||
} else {
|
||||
wattrset(win, COLOR_PAIR(0) | A_REVERSE | A_BOLD);
|
||||
wattrset(win, COLOR_PAIR(0) | A_REVERSE);
|
||||
}
|
||||
|
||||
mvwhline(win, pos_y, pos_x, 0, input->w.sz.x);
|
||||
|
||||
Reference in New Issue
Block a user