summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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()) {