From 3ce9c13a8a327c81997b637875c4fa6701f9ed07 Mon Sep 17 00:00:00 2001 From: David Wahlstrom Date: Thu, 4 Jun 2015 12:05:20 -0700 Subject: [PATCH] dota2win: provide overrides for color While the default values for the colors are probably reasonable, this patch provides the user with a way to override them. This will be particularly useful for colorblind users, or people who just don't like the defaults. --- i3pystatus/dota2wins.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/i3pystatus/dota2wins.py b/i3pystatus/dota2wins.py index 3d74988..f84fe3e 100644 --- a/i3pystatus/dota2wins.py +++ b/i3pystatus/dota2wins.py @@ -12,12 +12,18 @@ class Dota2wins(IntervalModule): ("matches", "Number of recent matches to calculate"), ("steamid", "Steam user to track"), ("steam_api_key", "Steam API key " - "(http://steamcommunity.com/dev/apikey"), + "(http://steamcommunity.com/dev/apikey)"), ("good_threshold", "Win percentage (or higher) which you are happy " "with"), ("bad_threshold", "Win percentage you want to be alerted (difference " "between good_threshold and bad_threshold is cautious_threshold)"), ("interval", "Update interval (games usually last at least 20 min)."), + ("good_color", "Color of text while win percentage is above " + "good_threshold"), + ("bad_color", "Color of text while win percentage is below " + "bad_threshold"), + ("cation_color", "Color of text while win precentage is between good " + "and bad thresholds"), "format" ) required = ("steamid", "steam_api_key")