From d501055760a40bb79f1550e1a588cb5ea8e3c913 Mon Sep 17 00:00:00 2001 From: natemaia Date: Wed, 4 Nov 2020 20:53:43 -0800 Subject: [PATCH] Create dialogrc if one doesn't already exist --- installer | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/installer b/installer index a17287a..859f4a8 100755 --- a/installer +++ b/installer @@ -3316,6 +3316,99 @@ umount_dir() done } +dialog_cfg() +{ + [[ -f /etc/dialogrc ]] && return + cat > /etc/dialogrc <<- EOF + # + # Run-time configuration file for dialog + # + # Types of values: + # + # Number - + # String - "string" + # Boolean - + # Attribute - (foreground,background,highlight?) + + aspect = 25 + + separate_widget = "" + + tab_len = 0 + + visit_items = OFF + + use_shadow = ON + use_colors = ON + + screen_color = (CYAN,BLACK,ON) + + shadow_color = (BLACK,BLACK,ON) + + dialog_color = (WHITE,BLACK,ON) + + title_color = (RED,BLACK,ON) + + border_color = (WHITE,BLACK,ON) + border2_color = border_color + + button_active_color = (BLACK,WHITE,ON) + button_inactive_color = (WHITE,BLACK,ON) + + button_key_active_color = (BLACK,WHITE,ON) + button_key_inactive_color = (RED,BLACK,ON) + + button_label_active_color = (BLACK,WHITE,ON) + button_label_inactive_color = (WHITE,BLACK,ON) + + inputbox_color = (WHITE,BLACK,ON) + + inputbox_border_color = (WHITE,BLACK,ON) + inputbox_border2_color = inputbox_border_color + + searchbox_color = (WHITE,BLACK,ON) + searchbox_title_color = (RED,BLACK,ON) + + searchbox_border_color = (WHITE,BLACK,ON) + searchbox_border2_color = searchbox_border_color + + position_indicator_color = (GREEN,BLACK,ON) + + menubox_color = (WHITE,BLACK,ON) + + gauge_color = (WHITE,BLACK,ON) + + menubox_border_color = (WHITE,BLACK,ON) + menubox_border2_color = menubox_border_color + + item_color = (WHITE,BLACK,ON) + item_selected_color = (BLACK,WHITE,ON) + + tag_color = (WHITE,BLACK,ON) + tag_selected_color = (BLACK,WHITE,ON) + + tag_key_color = (RED,BLACK,ON) + tag_key_selected_color = (BLACK,WHITE,ON) + + check_color = (WHITE,BLACK,ON) + check_selected_color = (BLACK,WHITE,ON) + + uarrow_color = (GREEN,BLACK,ON) + darrow_color = (GREEN,BLACK,ON) + + itemhelp_color = (BLACK,WHITE,ON) + + form_text_color = (WHITE,BLACK,ON) + form_active_text_color = (BLACK,WHITE,ON) + form_item_readonly_color = (WHITE,BLACK,ON) + + bindkey formfield TAB form_NEXT + bindkey formbox TAB form_NEXT + bindkey formfield BTAB form_prev + bindkey formbox BTAB form_prev + EOF +} + chk_connect() { if [[ ! -f /tmp/new ]]; then @@ -3406,6 +3499,7 @@ system_identify() # entry point termcol +dialog_cfg MISSING="" for i in dialog find parted curl arch-chroot; do