polish strikethrough a bit
This commit is contained in:
parent
5427272db8
commit
1f56c0d77e
2 changed files with 3 additions and 4 deletions
|
@ -554,9 +554,8 @@ QVariant FeedsModel::data(const QModelIndex& index, int role) const {
|
|||
case Qt::ItemDataRole::FontRole: {
|
||||
RootItem* it = itemForIndex(index);
|
||||
bool is_bold = it->countOfUnreadMessages() > 0;
|
||||
bool is_striked = it->kind() == RootItem::Kind::Feed &&
|
||||
qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::StrikethroughDisabledFeeds)).toBool() &&
|
||||
qobject_cast<Feed*>(it)->isSwitchedOff();
|
||||
bool is_striked = it->kind() == RootItem::Kind::Feed && it->toFeed()->isSwitchedOff() &&
|
||||
qApp->settings()->value(GROUP(Feeds), SETTING(Feeds::StrikethroughDisabledFeeds)).toBool();
|
||||
|
||||
return is_bold ? (is_striked ? m_boldStrikedFont : m_boldFont)
|
||||
: (is_striked ? m_normalStrikedFont : m_normalFont);
|
||||
|
|
|
@ -101,7 +101,7 @@ DKEY Feeds::EnableTooltipsFeedsMessages = "show_tooltips";
|
|||
DVALUE(bool) Feeds::EnableTooltipsFeedsMessagesDef = true;
|
||||
|
||||
DKEY Feeds::StrikethroughDisabledFeeds = "strikethrough_disabled_feeds";
|
||||
DVALUE(bool) Feeds::StrikethroughDisabledFeedsDef = false;
|
||||
DVALUE(bool) Feeds::StrikethroughDisabledFeedsDef = true;
|
||||
|
||||
DKEY Feeds::PauseFeedFetching = "pause_feed_fetching";
|
||||
DVALUE(bool) Feeds::PauseFeedFetchingDef = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue