config: use a packed bitfield for “use custom color” flags

This commit is contained in:
Daniel Eklöf 2021-02-06 10:35:48 +01:00
parent 0d17fd6a5d
commit fcbb5a0bf7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 9 additions and 4 deletions

View file

@ -139,7 +139,10 @@ struct config {
uint16_t alpha;
uint32_t selection_fg;
uint32_t selection_bg;
bool selection_uses_custom_colors;
struct {
bool selection:1;
} use_custom;
} colors;
struct {