From eacb7c80619dd0c2d8bf601215374f64779373b6 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sat, 25 Jun 2022 11:28:23 +0100 Subject: Fix padding and split into top/bottom/left/right. --- src/entry.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/entry.h') diff --git a/src/entry.h b/src/entry.h index f59411f..5fa29c4 100644 --- a/src/entry.h +++ b/src/entry.h @@ -41,22 +41,23 @@ struct entry { /* Options */ bool horizontal; uint32_t num_results; + int32_t result_spacing; uint32_t font_size; char font_name[MAX_FONT_NAME_LENGTH]; char prompt_text[MAX_PROMPT_LENGTH]; uint32_t corner_radius; - uint32_t padding; + uint32_t padding_top; + uint32_t padding_bottom; + uint32_t padding_left; + uint32_t padding_right; uint32_t input_width; - int32_t result_padding; + uint32_t border_width; + uint32_t outline_width; struct color foreground_color; struct color background_color; struct color selection_color; - struct { - struct color color; - struct color outline_color; - uint32_t width; - uint32_t outline_width; - } border; + struct color border_color; + struct color outline_color; }; void entry_init(struct entry *entry, uint8_t *restrict buffer, uint32_t width, uint32_t height); -- cgit v1.2.3