Skip to content

"feat: add option to hide date headers in article list (#1155)" - #1341

Open
Kumarkrishna123 wants to merge 1 commit into
ReadYouApp:mainfrom
Kumarkrishna123:feat/1155-hide-date-headers
Open

Kumarkrishna123 wants to merge 1 commit into
ReadYouApp:mainfrom
Kumarkrishna123:feat/1155-hide-date-headers

Conversation

@Kumarkrishna123

Copy link
Copy Markdown

Closes #1155

What

Adds a "Publication date header" switch under Settings → Color/Style→ Flow page → Article
list. Turning it off hides the date separators in the article flow.

How

  • New FlowArticleListDateHeaderPreference (defaults to ON, so existing users see no
    change)
  • ArticleList skips drawing ArticleFlowItem.Date items when the setting is off. The
    items stay in the paging data, so index-based logic (mark above/below as read, opening
    articles) keeps working
  • The "Sticky publication date header" switch is disabled while date headers are hidden

Testing

  • Toggled the setting on and off; headers hide and show immediately
  • Checked mark above/below as read and opening articles with headers hidden
  • Setting is kept after restarting the app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow hiding date headers in feed

1 participant