shithub: microui

Download patch

ref: 8fffdb8daa7147db84c1cd1254d08eaa4ab8f420
parent: f4f74d28b45ce23ca1e2424f229584d318f265dd
author: rxi <rxi@users.noreply.github.com>
date: Sat Feb 23 06:02:23 EST 2019

Minor adjustment in background color preview on demo project

--- a/demo/main.c
+++ b/demo/main.c
@@ -103,7 +103,7 @@
     /* background color sliders */
     static int show_sliders = 1;
     if (mu_header(ctx, &show_sliders, "Background Color")) {
-      mu_layout_row(ctx, 2, (int[]) { -78, -1 }, 76);
+      mu_layout_row(ctx, 2, (int[]) { -78, -1 }, 74);
       /* sliders */
       mu_layout_begin_column(ctx);
       mu_layout_row(ctx, 2, (int[]) { 46, -1 }, 0);
@@ -114,7 +114,6 @@
       /* color preview */
       mu_Rect r = mu_layout_next(ctx);
       mu_draw_rect(ctx, r, mu_color(bg[0], bg[1], bg[2], 255));
-      mu_draw_box(ctx, r, ctx->style->colors[MU_COLOR_BORDER]);
       char buf[32];
       sprintf(buf, "#%02X%02X%02X", (int) bg[0], (int) bg[1], (int) bg[2]);
       mu_draw_control_text(ctx, buf, r, MU_COLOR_TEXT, MU_OPT_ALIGNCENTER);