From 70e83a214c438edb360f981d6a2e7d74e98dd1f7 Mon Sep 17 00:00:00 2001 From: Mike Sharov Date: Mon, 16 May 2022 17:03:34 -0400 Subject: [PATCH] Use plain bold for unread items --- ui.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/ui.c b/ui.c index 625c5b9..c275a17 100644 --- a/ui.c +++ b/ui.c @@ -270,15 +270,8 @@ static int UIDisplayFeed (struct feed* current_feed) move (ypos, 0); clrtoeol(); - if (!item->data->readstatus) { - // Apply color style. - if (!_settings.monochrome) { - attron (COLOR_PAIR (2)); - if (_settings.color.newitemsbold) - attron (WA_BOLD); - } else - attron (WA_BOLD); - } + if (!item->data->readstatus) + attron (WA_BOLD); if (item == highlighted) { current_item = item; @@ -312,15 +305,8 @@ static int UIDisplayFeed (struct feed* current_feed) ++ypos; if (item == highlighted) attroff (WA_REVERSE); - if (!item->data->readstatus) { - // Disable color style. - if (!_settings.monochrome) { - attroff (COLOR_PAIR (2)); - if (_settings.color.newitemsbold) - attroff (WA_BOLD); - } else - attroff (WA_BOLD); - } + if (!item->data->readstatus) + attroff (WA_BOLD); if (itemnum >= ymax) break;