Use plain bold for unread items

This commit is contained in:
Mike Sharov 2022-05-16 17:03:34 -04:00
parent f634289f12
commit 70e83a214c
1 changed files with 4 additions and 18 deletions

22
ui.c
View File

@ -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;