uniblock demo: set pbar background to 0

This commit is contained in:
nick black 2021-01-15 06:06:42 -05:00
parent 3ecdde74d0
commit 14c64a2aa2
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -40,11 +40,14 @@ pbar_make(struct notcurses* nc, int row){
if(pbar == NULL){ if(pbar == NULL){
return NULL; return NULL;
} }
uint64_t channels = 0;
channels_set_bg_rgb(&channels, 0);
ncplane_set_base(pbar, "", 0, channels);
int posy, posx, pdimy, pdimx; int posy, posx, pdimy, pdimx;
ncplane_yx(pbar, &posy, &posx); ncplane_yx(pbar, &posy, &posx);
ncplane_dim_yx(pbar, &pdimy, &pdimx); ncplane_dim_yx(pbar, &pdimy, &pdimx);
ncplane_cursor_move_yx(std, posy - 1, posx - 1); ncplane_cursor_move_yx(std, posy - 1, posx - 1);
uint64_t channels = 0; channels = 0;
channels_set_fg_rgb8(&channels, 0, 0xde, 0xde); channels_set_fg_rgb8(&channels, 0, 0xde, 0xde);
if(ncplane_rounded_box(std, 0, channels, posy + pdimy, posx + pdimx, 0)){ if(ncplane_rounded_box(std, 0, channels, posy + pdimy, posx + pdimx, 0)){
ncplane_destroy(pbar); ncplane_destroy(pbar);