diff options
| author | ktyl <me@ktyl.dev> | 2023-02-14 22:55:53 +0000 |
|---|---|---|
| committer | ktyl <me@ktyl.dev> | 2023-02-14 22:55:53 +0000 |
| commit | de0569da9dfdace48fc504f9ad6c9ba0eba16aad (patch) | |
| tree | 39ee22221b37570808b70645bf03ee45324fdf7e | |
| parent | a72b8228b428588db111c71c99d91ef8542c88ea (diff) | |
| download | dwlb-de0569da9dfdace48fc504f9ad6c9ba0eba16aad.tar.gz | |
disambiguate 16bit color formatting
| -rw-r--r-- | config.def.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index 53119b4..8a27b30 100644 --- a/config.def.h +++ b/config.def.h @@ -8,8 +8,9 @@ static bool hide_vacant = false; #define TAGSLEN 9 static char *tags[TAGSLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; -// set colors for bar -// TODO: explain the formatting? or at least how a hex color code would be translated +// set 16-bit colors for bar +// 8-bit color can be converted to 16-bit color by simply duplicating values e.g +// 0x55 -> 0x5555, 0xf1 -> 0xf1f1 static pixman_color_t activecolor = { .red = 0x0000, .green = 0x5555, .blue = 0x7777, .alpha = 0xffff, }; static pixman_color_t inactivecolor = { .red = 0x2222, .green = 0x2222, .blue = 0x2222, .alpha = 0xffff, }; static pixman_color_t textcolor = { .red = 0xeeee, .green = 0xeeee, .blue = 0xeeee, .alpha = 0xffff, }; |