diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2018-10-21 23:34:41 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-10-21 23:34:41 +0200 |
commit | dd1fed42794362eebb87d75ca0bf2a05170d5406 (patch) | |
tree | f61f62ca2a00427c2a3f7394265d945bf86f895c /wee_slack.py | |
parent | 377360635fe6cb127e2ec105746a19ba0d130255 (diff) | |
download | wee-slack-dd1fed42794362eebb87d75ca0bf2a05170d5406.tar.gz |
Add config for color for muted channels in buflist
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index a0f4c6d..b871219 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1391,7 +1391,7 @@ class SlackChannel(SlackChannelCommon): prepend = config.shared_name_prefix else: prepend = "#" - sidebar_color = w.color("darkgray") if self.muted else "" + sidebar_color = w.color(config.color_buflist_muted_channels) if self.muted else "" select = { "default": prepend + self.slack_name, "sidebar": sidebar_color + prepend + self.slack_name, @@ -3874,6 +3874,9 @@ class PluginConfig(object): desc='Change the prefix of a channel from # to > when someone is' ' typing in it. Note that this will (temporarily) affect the sort' ' order if you sort buffers by name rather than by number.'), + 'color_buflist_muted_channels': Setting( + default='darkgray', + desc='Color to use for muted channels in the buflist'), 'color_reaction_suffix': Setting( default='darkgray', desc='Color to use for the [:wave:(@user)] suffix on messages that' @@ -4038,6 +4041,7 @@ class PluginConfig(object): default = self.default_settings.get(key).default return w.config_get_plugin(key) == default + get_color_buflist_muted_channels = get_string get_color_reaction_suffix = get_string get_color_thread_suffix = get_string get_debug_level = get_int |