From d7417e3fb3f5837b0166edc52a9af99031059332 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Fri, 14 Jun 2024 00:40:07 +0100 Subject: [PATCH] Style dialog --- dotfiles/.dialogrc | 147 +++++++++++++++++++++++++++++++++++++++++++++ install.sh | 3 + 2 files changed, 150 insertions(+) create mode 100644 dotfiles/.dialogrc diff --git a/dotfiles/.dialogrc b/dotfiles/.dialogrc new file mode 100644 index 00000000..3f41deb7 --- /dev/null +++ b/dotfiles/.dialogrc @@ -0,0 +1,147 @@ +# +# Run-time configuration file for dialog +# +# Automatically generated by "dialog --create-rc " +# +# +# Types of values: +# +# Number - +# String - "string" +# Boolean - +# Attribute - (foreground,background,highlight?,underline?,reverse?) + +# Set aspect-ration. +aspect = 0 + +# Set separator (for multiple widgets output). +separate_widget = "" + +# Set tab-length (for textbox tab-conversion). +tab_len = 0 + +# Make tab-traversal for checklist, etc., include the list. +visit_items = OFF + +# Show scrollbar in dialog boxes? +use_scrollbar = OFF + +# Shadow dialog boxes? This also turns on color. +use_shadow = ON + +# Turn color support ON or OFF +use_colors = ON + +# Screen color +screen_color = (WHITE,BLACK,OFF) + +# Shadow color +shadow_color = (BLACK,BLACK,ON) + +# Dialog box color +dialog_color = (BLACK,WHITE,OFF) + +# Dialog box title color +title_color = (BLACK,WHITE,OFF) + +# Dialog box border color +border_color = (WHITE,WHITE,ON) + +# Active button color +button_active_color = (WHITE,BLACK,ON) + +# Inactive button color +button_inactive_color = dialog_color + +# Active button key color +button_key_active_color = button_active_color + +# Inactive button key color +button_key_inactive_color = (BLACK,WHITE,OFF) + +# Active button label color +button_label_active_color = (WHITE,BLACK,ON) + +# Inactive button label color +button_label_inactive_color = (BLACK,WHITE,ON) + +# Input box color +inputbox_color = dialog_color + +# Input box border color +inputbox_border_color = dialog_color + +# Search box color +searchbox_color = dialog_color + +# Search box title color +searchbox_title_color = title_color + +# Search box border color +searchbox_border_color = border_color + +# File position indicator color +position_indicator_color = title_color + +# Menu box color +menubox_color = dialog_color + +# Menu box border color +menubox_border_color = border_color + +# Item color +item_color = dialog_color + +# Selected item color +item_selected_color = button_active_color + +# Tag color +tag_color = title_color + +# Selected tag color +tag_selected_color = button_label_active_color + +# Tag key color +tag_key_color = button_key_inactive_color + +# Selected tag key color +tag_key_selected_color = (WHITE,BLACK,ON) + +# Check box color +check_color = dialog_color + +# Selected check box color +check_selected_color = button_active_color + +# Up arrow color +uarrow_color = (GREEN,WHITE,ON) + +# Down arrow color +darrow_color = uarrow_color + +# Item help-text color +itemhelp_color = screen_color + +# Active form text color +form_active_text_color = button_active_color + +# Form text color +form_text_color = (WHITE,BLACK,ON) + +# Readonly form item color +form_item_readonly_color = (BLACK,WHITE,ON) + +# Dialog box gauge color +gauge_color = title_color + +# Dialog box border2 color +border2_color = dialog_color + +# Input box border2 color +inputbox_border2_color = dialog_color + +# Search box border2 color +searchbox_border2_color = dialog_color + +# Menu box border2 color +menubox_border2_color = dialog_color diff --git a/install.sh b/install.sh index f0b91c76..e00e3544 100755 --- a/install.sh +++ b/install.sh @@ -4,6 +4,9 @@ if ! command -v dialog; then sudo apt-get install dialog -y fi +# Set dialog colors +cp -f dotfiles/.dialogrc $HOME/.dialogrc + BACKTITLE="Trude's FreeBSD Toolkit" dialog --erase-on-exit \ --backtitle "$BACKTITLE" \