From 84137fe7739f14c9dc5697105cf1ae2af4271b4e Mon Sep 17 00:00:00 2001 From: Louie S Date: Fri, 15 Mar 2024 18:30:48 -0400 Subject: Fix coloring bug --- src/entryLayout.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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() + "entry.link.toString() + "\" " "style=\"color: " + (this->entry.color.isEmpty() ? "default" : this->entry.color ) + ";\">"); + body->setText(body->text() + "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()) { -- cgit