From 56cad83a4b8e52514294e635622ccdfe406fecff Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 5 Dec 2019 03:53:51 -0500 Subject: [PATCH] widecolor-demo: improve background colors --- src/demo/widecolor.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/demo/widecolor.c b/src/demo/widecolor.c index 0371f1a67..31e136b6e 100644 --- a/src/demo/widecolor.c +++ b/src/demo/widecolor.c @@ -79,8 +79,10 @@ static int message(struct ncplane* n, int maxy, int maxx, int num, int total, int bytes_out, int egs_out, int cols_out){ uint64_t channels = 0; + ncplane_fg_rgb8(n, 64, 128, 240); + ncplane_bg_rgb8(n, 32, 64, 32); notcurses_fg_prep(&channels, 255, 255, 255); - ncplane_bg_default(n); + notcurses_bg_default_prep(&channels); ncplane_cursor_move_yx(n, 3, 1); if(ncplane_rounded_box(n, 0, channels, 5, 57, 0)){ return -1; @@ -123,11 +125,11 @@ message(struct ncplane* n, int maxy, int maxx, int num, int total, ncplane_cursor_move_yx(n, 3, 20); ncplane_putegc(n, "╨", 0, 0, NULL); ncplane_cursor_move_yx(n, 2, 5); - ncplane_styles_on(n, CELL_STYLE_BOLD); + ncplane_styles_on(n, CELL_STYLE_ITALIC); ncplane_printf(n, " %03dx%03d (%d/%d) ", maxx, maxy, num + 1, total); ncplane_cursor_move_yx(n, 4, 2); - ncplane_styles_off(n, CELL_STYLE_BOLD); - ncplane_fg_rgb8(n, 200, 20, 200); + ncplane_styles_off(n, CELL_STYLE_ITALIC); + ncplane_fg_rgb8(n, 224, 128, 224); ncplane_putstr(n, " 🔥 wide chars, multiple colors, resize awareness…🔥 "); ncplane_fg_rgb8(n, 255, 255, 255); return 0;