dracula / tmux

🧛🏻‍♂️ Dark theme for tmux
https://draculatheme.com/tmux
MIT License
659 stars 310 forks source link

Bug: Colors settings make a mess #223

Closed Erimus-Koo closed 1 year ago

Erimus-Koo commented 1 year ago

Describe the bug

After setting the color of the plugins, I got the wrong appearance.

image

To Reproduce

Steps to reproduce the behavior:

  1. Set the separator
    set -g @dracula-show-left-sep 
  2. Set the colors of the plugins
    set -g @dracula-ram-usage-colors "black green"
  3. It seems the black is fg not bg, and green does not work, the plugin inherits the previous bg.


And I found after once you set up a property and even you delete it, it still works, until you set up it again. But I don't know the correct value of the plugins' colors, so I can not revert them now. I need some help, please tell me where the changes are saved. (I've tried to uninstall the plugin but not work)

System

Erimus-Koo commented 1 year ago

Below is all my settings about dracula:

# dracula theme ------------------------
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, network, network-bandwidth, network-ping, attached-clients, network-vpn, weather, time, spotify-tui, kubernetes-context
set -g @dracula-plugins "network-ping git ram-usage cpu-usage network-vpn weather battery time"

# # available colors: white, gray, dark_gray, light_purple, dark_purple, cyan, green, orange, red, pink, yellow
# set -g @dracula-[plugin-name]-colors "[background] [foreground]"

# # Enable powerline symbols
set -g @dracula-show-powerline false
# # for left
# set -g @dracula-show-left-sep 
set -g @dracula-show-left-sep 
# # for right symbol (can set any symbol you like as seperator)
# set -g @dracula-show-right-sep 
# set -g @dracula-show-right-sep 
set -g @dracula-show-right-sep ''

set -g @dracula-show-flags false  #F recent window

# default is 1, it can accept any number and 0 disables padding.
set -g @dracula-left-icon-padding 0

set -g @dracula-border-contrast true        # pane edge highlight
set -g @dracula-show-empty-plugins false    # hide empty plugin

# set -g @dracula-battery-label "Battery"

# ram & cpu
set -g @dracula-ram-usage-colors "black green"
set -g @dracula-ram-usage-label ""
set -g @dracula-cpu-usage-label ""
set -g @dracula-cpu-display-load false

# network
set -g @dracula-network-ping-colors "black yellow"
# set -g @dracula-network-bandwidth eth0
# set -g @dracula-network-bandwidth-interval 0
# set -g @dracula-network-bandwidth-show-interface false

set -g @dracula-ping-server "baidu.com"
set -g @dracula-ping-rate 5

# weather
set -g @dracula-show-fahrenheit false   # use celsius
# set -g @dracula-fixed-location "Beijing"
set -g @dracula-show-location false

# time
set -g @dracula-time-colors "black white"
set -g @dracula-military-time true      # 24 hours format
set -g @dracula-show-timezone false     # hide timezone
Erimus-Koo commented 1 year ago

My fault, there's no "black" in the palette.