summaryrefslogtreecommitdiff
path: root/src/rule.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.py')
-rw-r--r--src/rule.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rule.py b/src/rule.py
index 6ecf7d7..414ccf0 100644
--- a/src/rule.py
+++ b/src/rule.py
@@ -30,11 +30,15 @@ class Rule:
# TODO Consider making this a color selector widget
color_widget = QLineEdit()
color_widget.setPlaceholderText("Color")
+ if self.color:
+ color_widget.setText(self.color)
output.addWidget(color_widget)
# TODO Consider making this a color selector widget
highlight_widget = QLineEdit()
highlight_widget.setPlaceholderText("Highlight")
+ if self.highlight:
+ highlight_widget.setText(self.highlight)
output.addWidget(highlight_widget)
return output