]> git.sur5r.net Git - i3/i3/commitdiff
i3bar: change error block color to hex
authorTony Crisci <tony@dubstepdish.com>
Wed, 12 Jul 2017 21:50:10 +0000 (17:50 -0400)
committerTony Crisci <tony@dubstepdish.com>
Wed, 12 Jul 2017 21:53:15 +0000 (17:53 -0400)
Named colors are not supported by the i3bar protocol so give the error block
color in hex.

i3bar/src/child.c

index 60ab462a5a73fba00e62b11e93f79439c86f265b..814f041110d48db57c296a6cc0a47d59ce98954d 100644 (file)
@@ -112,13 +112,13 @@ __attribute__((format(printf, 1, 2))) static void set_statusline_error(const cha
     struct status_block *err_block = scalloc(1, sizeof(struct status_block));
     err_block->full_text = i3string_from_utf8("Error: ");
     err_block->name = sstrdup("error");
-    err_block->color = sstrdup("red");
+    err_block->color = sstrdup("#ff0000");
     err_block->no_separator = true;
 
     struct status_block *message_block = scalloc(1, sizeof(struct status_block));
     message_block->full_text = i3string_from_utf8(message);
     message_block->name = sstrdup("error_message");
-    message_block->color = sstrdup("red");
+    message_block->color = sstrdup("#ff0000");
     message_block->no_separator = true;
 
     TAILQ_INSERT_HEAD(&statusline_head, err_block, blocks);