diff options
author | Eric Wang <gnawrice@gmail.com> | 2018-10-18 20:49:30 -0700 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-10-21 23:29:09 +0200 |
commit | 377360635fe6cb127e2ec105746a19ba0d130255 (patch) | |
tree | 663de578a5d7da44456990058d6ad00ca3ad94c2 | |
parent | 1238c70c1ed0a80da98ab8c4d431e4b09fd7a908 (diff) | |
download | wee-slack-377360635fe6cb127e2ec105746a19ba0d130255.tar.gz |
Gray out muted channels in buflist
Similar to how Slack grays out muted channels in their own UI.
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 030f697..a0f4c6d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1391,9 +1391,10 @@ class SlackChannel(SlackChannelCommon): prepend = config.shared_name_prefix else: prepend = "#" + sidebar_color = w.color("darkgray") if self.muted else "" select = { "default": prepend + self.slack_name, - "sidebar": prepend + self.slack_name, + "sidebar": sidebar_color + prepend + self.slack_name, "base": self.slack_name, "long_default": "{}.{}{}".format(self.team.preferred_name, prepend, self.slack_name), "long_base": "{}.{}".format(self.team.preferred_name, self.slack_name), |