Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions themux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ run "#{d:current_file}/utils/load_theme.sh"
set -g status-style "default"
set -g @_tmx_status_bg "default"

%hidden TMX_MESSAGE_BACKGROUND="default"
# The status bar is transparent, but the message/command-prompt overlay needs an
# opaque background: it draws OVER the status line, so a transparent fill would
# leave the status-format bleeding through the prompt (rename, command mode, ...).
%hidden TMX_MESSAGE_BACKGROUND="#{@thm_mantle}"
%else
# Treat @themux_status_background as a format string.
set -gF status-style "bg=#{E:@themux_status_background},fg=#{@thm_fg}"
Expand Down Expand Up @@ -42,9 +45,13 @@ source -F "#{d:current_file}/modules/zoom.conf"
set -g @_tmx_module_divider \
"#[fg=#{E:@themux_module_divider_color},bg=default]#{E:@themux_module_divider}"

# messages
set -gF message-style "fg=#{@thm_teal},bg=$TMX_MESSAGE_BACKGROUND,align=centre"
set -gF message-command-style "fg=#{@thm_teal},bg=$TMX_MESSAGE_BACKGROUND,align=centre"
# messages / command-prompt (rename-window, command mode, confirm-before). `fill`
# repaints the whole status line with the message background so the prompt fully
# replaces the status-format instead of drawing over it — without `fill` the
# window list and modules bleed through the prompt. `align` must NOT be set: any
# alignment defeats the fill and the status re-appears on the uncovered side.
set -gF message-style "fg=#{@thm_teal},bg=$TMX_MESSAGE_BACKGROUND,fill=$TMX_MESSAGE_BACKGROUND"
set -gF message-command-style "fg=#{@thm_teal},bg=$TMX_MESSAGE_BACKGROUND,fill=$TMX_MESSAGE_BACKGROUND"

# menu
%if "#{>=:#{version},3.4}"
Expand Down