Change color_no_updates to None to default to i3bar color

If ``statusline`` is not set in ``~/.config/i3/config``, it defaults to
``#ffffff`` (white). Therefore, the default behavior of the updates
module in this case is to show white for both ``color_no_updates``
(system is up-to-date) and ``color_working`` (update check in progress).

However, if one sets ``statusline`` in their ``~/.config/i3/config``,
then the color will be white when the system is up-to-date, forcing the
user to manually set ``color_no_updates`` if they would prefer it match
their default i3bar color.

This commit changes the default value of ``color_no_updates`` to
``None`` so that it matches the default i3bar unless overridden.
This commit is contained in:
Erik Johnson 2016-03-25 00:29:19 -05:00
parent 0b49c4058a
commit 4867afeda1

View File

@ -65,7 +65,7 @@ class Updates(Module):
format_no_updates = None
format_working = None
color = "#00DD00"
color_no_updates = "#FFFFFF"
color_no_updates = None
color_working = None
on_leftclick = "run"