Skip to content

Commit

Permalink
Merge pull request #93 from wenijinew/np
Browse files Browse the repository at this point in the history
Fix dynamic theme creation. Support pass dark base color by the new o…
  • Loading branch information
wenijinew authored Dec 11, 2024
2 parents 7b34767 + b460597 commit d187de5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eutmux.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ setup(){
NEW_THEME_NAME=""
ROTATE_THEME=${FALSE}
CREATE_DYNMIC_THEME=${FALSE}
DARK_BASE_COLOR="" #23272e

# set working directory to eutmux project path
pushd "${_DIR}" >/dev/null 2>/dev/null || exit ${EXIT_ABNORMAL}
Expand Down Expand Up @@ -137,7 +138,7 @@ generate_palette_colors(){
color_name="${1:-color.ColorName.RANDOM}"
min_color="${2:-20}"
max_color="${3:-40}"
dark_base_color="${4:-#23272e}" # elite-dark-blue: #1a1b26, github-dimmed: #23272e
dark_base_color="${4:-${DARK_BASE_COLOR}}" # elite-dark-blue: #1a1b26, github-dimmed: #23272e
install_python_modules="${5:-${FALSE}}"
append_gray="${6:-${TRUE}}"
token_min_color="${7:-60}"
Expand Down Expand Up @@ -353,6 +354,7 @@ setup
while getopts "adDrRt:T:" opt; do
case $opt in
a) show_all_themes; exit $? ;;
c) DARK_BASE_COLOR="${OPTARG}" ;;
d) CREATE_DYNMIC_THEME=${TRUE} ;;
D) THEME_NAME="eutmux" ;;
r) ROTATE_THEME=${TRUE} ;;
Expand Down

0 comments on commit d187de5

Please sign in to comment.