implement custom waterfall option

This commit is contained in:
Jakob Ketterl
2021-02-16 17:48:12 +01:00
parent 9175629838
commit 409370aba2
2 changed files with 12 additions and 9 deletions

View File

@ -1,4 +1,5 @@
from owrx.form import DropdownEnum
from owrx.config import Config
class Waterfall(object):
@ -285,8 +286,8 @@ class Ha7ilmWaterfall(Waterfall):
class CustomWaterfall(Waterfall):
def __init__(self):
# TODO: read waterfall_colors from config
super().__init__([0x00000])
config = Config.get()
super().__init__(config["waterfall_colors"])
class WaterfallOptions(DropdownEnum):