mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
uniblock demo: set pbar background to 0
This commit is contained in:
parent
3ecdde74d0
commit
14c64a2aa2
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user