From ca75d29bd2208ea7e2f5ccdb2b146953419be9b2 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Wed, 16 Nov 2022 13:36:25 +0000 Subject: Add placeholder text options. --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c70daea..142991b 100644 --- a/src/main.c +++ b/src/main.c @@ -642,6 +642,8 @@ static void usage() " --text-color Color of text.\n" " --prompt-text Prompt text.\n" " --prompt-padding Padding between prompt and input.\n" +" --placeholder-text Placeholder input text.\n" +" --placeholder-color Color of placeholder input text.\n" " --num-results Maximum number of results to display.\n" " --selection-color Color of selected result.\n" " --selection-match-color Color of the matching portion of the\n" @@ -707,6 +709,8 @@ const struct option long_options[] = { {"outline-color", required_argument, NULL, 0}, {"prompt-text", required_argument, NULL, 0}, {"prompt-padding", required_argument, NULL, 0}, + {"placeholder-text", required_argument, NULL, 0}, + {"placeholder-color", required_argument, NULL, 0}, {"result-spacing", required_argument, NULL, 0}, {"min-input-width", required_argument, NULL, 0}, {"border-width", required_argument, NULL, 0}, @@ -884,6 +888,7 @@ int main(int argc, char *argv[]) .outline_width = 4, .background_color = {0.106f, 0.114f, 0.118f, 1.0f}, .foreground_color = {1.0f, 1.0f, 1.0f, 1.0f}, + .placeholder_color = {1.0f, 1.0f, 1.0f, 0.66f}, .selection_foreground_color = {0.976f, 0.149f, 0.447f, 1.0f}, .border_color = {0.976f, 0.149f, 0.447f, 1.0f}, .outline_color = {0.031f, 0.031f, 0.0f, 1.0f}, -- cgit v1.2.3