summaryrefslogtreecommitdiff
path: root/src/rule.py
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-09-18 14:31:14 -0400
committerLouie S <louie@example.com>2023-09-18 14:31:14 -0400
commitb4ca417b7e02f7cabba6689dc63eb7b733164fdf (patch)
tree5d78b2deaa0b63f6bf5c2b6cb99f41e437c00e43 /src/rule.py
parent1d26be43535c34b05513c92e700d5cc92610fa63 (diff)
rules working
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