Add option to enable high contrast on pane borders

This commit is contained in:
Moisés Carvalho 2020-05-27 02:43:13 -03:00
parent efe6ff2220
commit 9c9cde3e44
2 changed files with 8 additions and 1 deletions

View file

@ -23,3 +23,4 @@ Customize the status bar by adding any of these lines to your .tmux.conf as desi
* Switch powerline symbols `set -g @dracula-show-left-sep ` for left and `set -g @dracula-show-right-sep ` for right symbol (can set any symbol you like as seperator) * Switch powerline symbols `set -g @dracula-show-left-sep ` for left and `set -g @dracula-show-right-sep ` for right symbol (can set any symbol you like as seperator)
* Enable military time: `set -g @dracula-military-time true` * Enable military time: `set -g @dracula-military-time true`
* Switch the left smiley icon `set -g @dracula-show-left-icon session` it can accept `session`, `smiley`, or any character. * Switch the left smiley icon `set -g @dracula-show-left-icon session` it can accept `session`, `smiley`, or any character.
* Enable high contrast pane border: `set -g @dracula-border-contrast true`

View file

@ -25,6 +25,7 @@ main()
show_military=$(get_tmux_option "@dracula-military-time" false) show_military=$(get_tmux_option "@dracula-military-time" false)
show_left_sep=$(get_tmux_option "@dracula-show-left-sep") show_left_sep=$(get_tmux_option "@dracula-show-left-sep")
show_right_sep=$(get_tmux_option "@dracula-show-right-sep") show_right_sep=$(get_tmux_option "@dracula-show-right-sep")
show_border_contrast=$(get_tmux_option "@dracula-border-contrast" false)
# Dracula Color Pallette # Dracula Color Pallette
white='#f8f8f2' white='#f8f8f2'
gray='#44475a' gray='#44475a'
@ -67,7 +68,12 @@ main()
tmux set-option -g status-right-length 100 tmux set-option -g status-right-length 100
# pane border styling # pane border styling
tmux set-option -g pane-active-border-style "fg=${dark_purple}" if $show_border_contrast; then
tmux set-option -g pane-active-border-style "fg=${light_purple}"
else
tmux set-option -g pane-active-border-style "fg=${dark_purple}"
fi
tmux set-option -g pane-border-style "fg=${gray}" tmux set-option -g pane-border-style "fg=${gray}"
# message styling # message styling