Skip to content

Commit

Permalink
fix(window_builder): number position left (#205)
Browse files Browse the repository at this point in the history
Middle separator color was inverted when number position left
  • Loading branch information
vdbe authored May 10, 2024
1 parent a101630 commit c0e072c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builder/window_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ build_window_format() {
fi

if [ "$fill" = "number" ]; then
local show_middle_separator
local show_number="#[fg=$background,bg=$color]$number"
local show_middle_separator="#[fg=$color,bg=$background,nobold,nounderscore,noitalics]$window_middle_separator"
local show_text="#[fg=$thm_fg,bg=$background]$text"

if [ "$window_number_position" = "right" ]; then
show_middle_separator="#[fg=$color,bg=$background,nobold,nounderscore,noitalics]$window_middle_separator"
if [ "$status_connect_separator" = "yes" ]; then
local show_left_separator="#[fg=$background,bg=$thm_bg,nobold,nounderscore,noitalics]$window_left_separator"
local show_right_separator="#[fg=$color,bg=$thm_bg]$window_right_separator"
Expand All @@ -65,6 +66,8 @@ build_window_format() {
fi

if [ "$window_number_position" = "left" ]; then
show_middle_separator="#[fg=$background,bg=$color,nobold,nounderscore,noitalics]$window_middle_separator"

if [ "$status_connect_separator" = "yes" ]; then
local show_right_separator="#[fg=$background,bg=$thm_bg,nobold,nounderscore,noitalics]$window_right_separator"
local show_left_separator="#[fg=$color,bg=$thm_bg]$window_left_separator"
Expand Down

0 comments on commit c0e072c

Please sign in to comment.