Allow setting dynamic_color in cpu_usage_bar (#767)

This commit is contained in:
Facetoe 2020-02-10 17:43:13 +08:00 committed by GitHub
parent 607584f160
commit ad4ae456a5

View File

@ -29,7 +29,8 @@ class CpuUsageBar(CpuUsage, ColorRangeModule):
("cpu", "cpu to base the colors on. Choices are 'usage_cpu' for all or 'usage_cpu*'."
" Replace '*' by core number starting at 0."),
("start_color", "Hex or English name for start of color range, eg '#00FF00' or 'green'"),
("end_color", "Hex or English name for end of color range, eg '#FF0000' or 'red'")
("end_color", "Hex or English name for end of color range, eg '#FF0000' or 'red'"),
("dynamic_color", "Use dynamic color"),
)
def init(self):