Lines Matching +full:home +full:- +full:button
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2022-2024 Alfonso Sabato Siciliano
114 {"\n# Menus: --checklist, --menu, --radiolist\n"
137 {"\n# Bar of --gauge, --mixedgauge, --pause, --rangebox\n",
142 "theme.button.minmargin", UINT, &t.button.minmargin},
143 {"", "theme.button.maxmargin", UINT, &t.button.maxmargin},
144 {"", "theme.button.leftdelim", CHAR, &t.button.leftdelim},
145 {"", "theme.button.rightdelim", CHAR, &t.button.rightdelim},
146 {"", "theme.button.f_delimcolor", COLOR, &t.button.f_delimcolor},
147 {"", "theme.button.delimcolor", COLOR, &t.button.delimcolor},
148 {"", "theme.button.f_color", COLOR, &t.button.f_color},
149 {"", "theme.button.color", COLOR, &t.button.color},
150 {"", "theme.button.f_shortcutcolor", COLOR, &t.button.f_shortcutcolor},
151 {"", "theme.button.shortcutcolor", COLOR, &t.button.shortcutcolor},
174 fprintf(fp, "### bsddialog theme - %s\n", ctime(&clock));
340 char *env, *file, *home, path[PATH_MAX];
346 if ((home = getenv("HOME")) != NULL) {
347 sep = (strcmp(home, "/") == 0) ? false : true;
350 home, sep ? "/" : "");
356 home, sep ? "/" : "", file);
424 t.button.minmargin = 1,
425 t.button.maxmargin = 5,
427 t.button.leftdelim = delim[i];
428 t.button.rightdelim = delim[i + 4];
429 t.button.f_delimcolor = bsddialog_color(col[5], col[3], 0);
430 t.button.delimcolor = bsddialog_color(col[0], col[5], 0);
431 t.button.f_color = bsddialog_color(col[2], col[3], 0);
432 t.button.color = bsddialog_color(col[0], col[5], 0);
433 t.button.f_shortcutcolor = bsddialog_color(col[5], col[3], 0);
434 t.button.shortcutcolor = bsddialog_color(col[1], col[5], 0);
440 conf->button.always_active = (~rand() & 1) ? true : false;
442 conf->date.format = (i & 1) ? "m/d/y" : "y/m/d" ;
443 if (conf->title != NULL) {
447 strcpy(title + margin, conf->title);
449 conf->title = title;