diff options
Diffstat (limited to 'lib/bsddialog_theme.h')
| -rw-r--r-- | lib/bsddialog_theme.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/lib/bsddialog_theme.h b/lib/bsddialog_theme.h index 853eb5f9d864..65ba5f5e94e8 100644 --- a/lib/bsddialog_theme.h +++ b/lib/bsddialog_theme.h @@ -1,7 +1,7 @@ /*- * SPDX-License-Identifier: BSD-2-Clause * - * Copyright (c) 2021 Alfonso Sabato Siciliano + * Copyright (c) 2021-2022 Alfonso Sabato Siciliano * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -28,11 +28,15 @@ #ifndef _LIBBSDDIALOG_THEME_H_ #define _LIBBSDDIALOG_THEME_H_ -/* f_ focus/active element */ +/* color flags */ +#define BSDDIALOG_BOLD 1U +#define BSDDIALOG_REVERSE 2U +#define BSDDIALOG_UNDERLINE 4U + struct bsddialog_theme { struct { int color; - } terminal; + } screen; struct { int color; unsigned int h; @@ -47,9 +51,6 @@ struct bsddialog_theme { int bottomtitlecolor; } dialog; struct { - unsigned int hmargin; - } text; - struct { int arrowcolor; int selectorcolor; int f_namecolor; @@ -87,7 +88,7 @@ enum bsddialog_default_theme { BSDDIALOG_THEME_BLACKWHITE, BSDDIALOG_THEME_BSDDIALOG, BSDDIALOG_THEME_DEFAULT, - BSDDIALOG_THEME_DIALOG, + BSDDIALOG_THEME_DIALOG }; enum bsddialog_color { @@ -98,13 +99,9 @@ enum bsddialog_color { BSDDIALOG_BLUE, BSDDIALOG_MAGENTA, BSDDIALOG_CYAN, - BSDDIALOG_WHITE, + BSDDIALOG_WHITE }; -#define BSDDIALOG_BOLD 1U -#define BSDDIALOG_REVERSE 2U -#define BSDDIALOG_UNDERLINE 4U - int bsddialog_color(enum bsddialog_color foreground, enum bsddialog_color background, unsigned int flags); @@ -112,4 +109,4 @@ int bsddialog_get_theme(struct bsddialog_theme *theme); int bsddialog_set_default_theme(enum bsddialog_default_theme theme); int bsddialog_set_theme(struct bsddialog_theme *theme); -#endif +#endif
\ No newline at end of file |
