#######################################################
# Fancy White bash-git-prompt theme.                  #
# This theme is using symbols from the font:          #
# DejaVuSansMono Nerd Font included in the repositoty #
#######################################################

override_git_prompt_colors() {

  local redc=$(echo -e "\e[38;5;196m")
  local greenc=$(echo -e "\e[38;5;41m")

  local white_bluec=$(echo -e "\e[97;48;5;25m")
  local black_whitec=$(echo -e "\e[30;107m")
  local white_redc=$(echo -e "\e[97;48;5;196m")

  local arrow_black_blue=$(echo -e "\e[30;48;5;25m")
  local arrow_blue_white=$(echo -e "\e[38;5;25;107m")
  local arrow_white_black=$(echo -e "\e[97;40m")
  local arrow_blue_red=$(echo -e "\e[38;5;25;48;5;196m")
  local arrow_red_black=$(echo -e "\e[38;5;196;40m")

  Time12a="\$(date +%H:%M)"

  GIT_PROMPT_THEME_NAME="fancy-white"
  GIT_PROMPT_ONLY_IN_REPO=1
  GIT_PROMPT_LEADING_SPACE=0
  GIT_PROMPT_REMOTE=""

  GIT_PROMPT_BRANCH="${white_bluec}  "

  GIT_PROMPT_PREFIX=""
  GIT_PROMPT_SUFFIX=""
  GIT_PROMPT_SEPARATOR=""
  GIT_PROMPT_STAGED="${white_bluec} "
  GIT_PROMPT_CONFLICTS="${white_bluec} ✗"
  GIT_PROMPT_CHANGED="${white_bluec} +"
  GIT_PROMPT_UNTRACKED="${white_bluec} "
  GIT_PROMPT_STASHED="${white_bluec} "
  GIT_PROMPT_CLEAN="${white_bluec} ✔"
  GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="${white_bluec} "

  GIT_PROMPT_COMMAND_OK="${greenc}✔ "
  GIT_PROMPT_COMMAND_FAIL="${redc}✗ "

  GIT_PROMPT_START_USER="${arrow_black_blue}${ResetColor}"
  GIT_PROMPT_START_ROOT="${arrow_black_blue}${ResetColor}"
  GIT_PROMPT_END_USER="${arrow_blue_white}${black_whitec}${PathShort}${arrow_white_black}${ResetColor} "
  GIT_PROMPT_END_ROOT="${arrow_blue_red}${white_redc}${PathShort}${arrow_red_black}${ResetColor} "

  GIT_PROMPT_SYMBOLS_AHEAD="${white_bluec} "
  GIT_PROMPT_SYMBOLS_BEHIND="${white_bluec} "

}

reload_git_prompt_colors "fancy-white"