wfxr / tmux-power

🎨 Tmux powerline theme
Other
546 stars 125 forks source link

incorrect background #29

Closed opennomad closed 2 years ago

opennomad commented 2 years ago

it looks like the first left triangle on the right side doesn't set the BG here: https://github.com/wfxr/tmux-power/blob/2c5dd0f998993c8a999c66e9ac1d0ab8f79bd972/tmux-power.tmux#L122

adding ,bg=$BG near the fron of the line seems to correct it for me.

Here is a diff:

diff --git a/tmux-power.tmux b/tmux-power.tmux
index 54b7b0f..3caac63 100755
--- a/tmux-power.tmux
+++ b/tmux-power.tmux
@@ -119,7 +119,7 @@ tmux_set status-left "$LS"
 tmux_set status-right-bg "$G04"
 tmux_set status-right-fg "G12"
 tmux_set status-right-length 150
-RS="#[fg=$G06]$left_arrow_icon#[fg=$TC,bg=$G06] $time_icon $time_format #[fg=$TC,bg=$G06]$left_arrow_icon#[fg=$G04,bg=$TC] $date_icon $date_format "
+RS="#[fg=$G06,bg=$BG]$left_arrow_icon#[fg=$TC,bg=$G06] $time_icon $time_format #[fg=$TC,bg=$G06]$left_arrow_icon#[fg=$G04,bg=$TC] $date_icon $date_format "
 if "$show_download_speed"; then
     RS="#[fg=$G05,bg=$BG]$left_arrow_icon#[fg=$TC,bg=$G05] $download_speed_icon #{download_speed} $RS"
 fi
wfxr commented 2 years ago

Hi @opennomad, would you like to provide a pr?

opennomad commented 2 years ago

Will do later today or tomorrow.