Skip to content

Commit 9c52a41

Browse files
committed
fix(edge-icons): correct separator colors with transparent bg:
Fixed the edge icons colors and styles when `$transparent_powerline_bg` is false. This ensures that the correct colors are applied based on the edge icon configuration.
1 parent d2b7b1a commit 9c52a41

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

scripts/dracula.sh

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ export LC_ALL=en_US.UTF-8
55
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66
source $current_dir/utils.sh
77

8-
main()
9-
{
8+
main() {
109
# set configuration option variables
1110
show_krbtgt_label=$(get_tmux_option "@dracula-krbtgt-context-label" "")
1211
krbtgt_principal=$(get_tmux_option "@dracula-krbtgt-principal" "")
@@ -62,15 +61,27 @@ main()
6261

6362
# Set transparency variables - Colors and window dividers
6463
if $transparent_powerline_bg; then
65-
bg_color="default"
66-
window_sep_fg=${dark_purple}
67-
window_sep_bg=default
68-
window_sep="$show_inverse_divider"
64+
bg_color="default"
65+
if $show_edge_icons; then
66+
window_sep_fg=${dark_purple}
67+
window_sep_bg=default
68+
window_sep="$show_right_sep"
69+
else
70+
window_sep_fg=${dark_purple}
71+
window_sep_bg=default
72+
window_sep="$show_inverse_divider"
73+
fi
6974
else
7075
bg_color=${gray}
71-
window_sep_fg=${gray}
72-
window_sep_bg=${dark_purple}
73-
window_sep="$show_left_sep"
76+
if $show_edge_icons; then
77+
window_sep_fg=${dark_purple}
78+
window_sep_bg=${gray}
79+
window_sep="$show_inverse_divider"
80+
else
81+
window_sep_fg=${gray}
82+
window_sep_bg=${dark_purple}
83+
window_sep="$show_left_sep"
84+
fi
7485
fi
7586

7687
# Handle left icon configuration

0 commit comments

Comments
 (0)