Commit 077105e1 authored by Seblu's avatar Seblu
Browse files

tagdisplay command handle titlecolor definition

parent 363c4626
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -42,6 +42,10 @@ class Command_tagdisplay(OptionCommand):
            self.set("color", self.args, self.options.setcolor)
        elif len(self.args) > 0 and self.options.delcolor:
            self.set("color", self.args, None)
        elif len(self.args) > 0 and self.options.settitlecolor:
            self.set("titlecolor", self.args, self.options.settitlecolor)
        elif len(self.args) > 0 and self.options.deltitlecolor:
            self.set("titlecolor", self.args, None)
        elif len(self.args) > 0 and self.options.settype:
            self.set("type", self.args, self.options.settype)
        elif len(self.args) > 0 and self.options.deltype:
@@ -66,6 +70,9 @@ class Command_tagdisplay(OptionCommand):
            self.printer.out("%sMy tag colors:%s"%(color["lblue"], color["reset"]))
            for (u,v) in self.cli.tagdisplay.tagcolor.items():
                self.printer.out("%s: %s"%(u,v))
            self.printer.out("%sMy tag tiltecolors:%s"%(color["lblue"], color["reset"]))
            for (u,v) in self.cli.tagdisplay.tagtitlecolor.items():
                self.printer.out("%s: %s"%(u,v))
            self.printer.out("%sMy tag types:%s"%(color["lblue"], color["reset"]))
            for (u,v) in self.cli.tagdisplay.tagtype.items():
                self.printer.out("%s: %s"%(u,v))
@@ -81,6 +88,9 @@ class Command_tagdisplay(OptionCommand):
        if what == "color":
            db = self.cli.tagdisplay.tagcolor
            vdb = [ c for c in color.keys() if c.isalpha() ]
        elif what == "titlecolor":
            db = self.cli.tagdisplay.tagtitlecolor
            vdb = [ c for c in color.keys() if c.isalpha() ]
        elif what == "type":
            db = self.cli.tagdisplay.tagtype
            vdb = self.cli.tagdisplay.types