Add color getter-setter for source wrapper
This commit is contained in:
@@ -94,7 +94,18 @@ class BaseWrapper:
|
||||
|
||||
|
||||
class SourceWrapper(BaseWrapper):
|
||||
pass
|
||||
|
||||
def __init__(self, item):
|
||||
super().__init__(item)
|
||||
self._color = None
|
||||
|
||||
@property
|
||||
def color(self):
|
||||
return self._color
|
||||
|
||||
@color.setter
|
||||
def color(self, value):
|
||||
self._color = value
|
||||
|
||||
|
||||
class TargetWrapper(BaseWrapper):
|
||||
|
||||
@@ -42,7 +42,7 @@ class LineColor(ViewColumn):
|
||||
|
||||
def getToolTip(self, stuff):
|
||||
if isinstance(stuff, SourceWrapper):
|
||||
return ''
|
||||
return 'Change line color'
|
||||
return ''
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user