summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-03-15 18:30:48 -0400
committerLouie S <louie@example.com>2024-03-15 18:30:48 -0400
commit84137fe7739f14c9dc5697105cf1ae2af4271b4e (patch)
treefc0511e55e2b2e533b044f7530c5331652b375b7
parenteed10c754c6ac1ea92df843f68b151a79b0e55d8 (diff)
Fix coloring bug
-rw-r--r--src/entryLayout.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/entryLayout.cpp b/src/entryLayout.cpp
index b3e742f..f569829 100644
--- a/src/entryLayout.cpp
+++ b/src/entryLayout.cpp
@@ -70,7 +70,14 @@ EntryLayout::EntryLayout(const Entry &e) :
if(!this->entry.link.isEmpty()) {
body->setOpenExternalLinks(true);
- body->setText(body->text() + "<a href=\"" + this->entry.link.toString() + "\" " "style=\"color: " + (this->entry.color.isEmpty() ? "default" : this->entry.color ) + ";\">");
+ body->setText(body->text() + "<a href=\"" + this->entry.link.toString() + "\" " "style=\"color: ");
+ if(this->entry.done)
+ body->setText(body->text() + "green");
+ else if(this->entry.color.isEmpty())
+ body->setText(body->text() + "default");
+ else
+ body->setText(body->text() + this->entry.color);
+ body->setText(body->text() + ";\">");
}
body->setText(body->text() + this->entry.desc);
if(!this->entry.link.isEmpty()) {