8000 feat(reader): add a setting to hide the account chip by valentin-morice · Pull Request #546 · hyprlab/hylki · GitHub
[go: up one dir, main page]

Skip to content

feat(reader): add a setting to hide the account chip - #546

Closed
valentin-morice wants to merge 1 commit into
hyprlab:mainfrom
valentin-morice:feat/hide-account-chip
Closed

valentin-morice wants to merge 1 commit into
hyprlab:mainfrom
valentin-morice:feat/hide-account-chip

Conversation

@valentin-morice
@valentin-morice valentin-morice commented Oct 29, 2026 •
Copy link
Copy Markdown
Contributor

The reader header names the message's account in a chip above the subject. With a single account it says the same thing on every message, and there is no way to turn it off.

This adds Settings → Reading → Show account in message header, under the Light / Dark Mode switch. It is stored as account_chip in privacy.toml, on by default, and goes through PrefOutput and on_prefs_reader_pref like pgp_labels, so it applies at once to the main reader and to messages open in their own windows.

Hiding the chip keeps its container, which is what pushes the Light / Dark Mode and Reader View switches to the right end of the line. When the chip and both switches are off, the line itself is hidden instead of leaving an empty row and its 12px of spacing above the subject.

Also: a short section in docs/DOCUMENTATION.md (check-docs.py passes), the template and catalogues refreshed with tools/update-pot.sh, and the config snapshot files updated for the new key.

Tested:

  • Built with the Flatpak manifest's dependencies (GNOME 50 SDK, rust-stable) on Fedora 44. cargo test: 1151 passed; the 4 failures (tray::indicator ×3 and a_card_from_your_own_mailbox_wears_that_mailboxs_face) fail the same way on main there, as glycin can't start its loader sandbox inside flatpak build. cargo fmt --check is clean.
  • Ran it in demo mode with HYLKI_SHOWCASE captures: chip on (unchanged), chip off (switches stay at the right, subject unmoved), and chip plus both switches off (the line goes and the subject moves up to the header's top padding).
hylki-account-chip-before-after hylki-account-chip-setting

The reader header names the message's account above the subject, which says nothing new to someone with a single account. Settings, Reading, Show account in message header turns it off, stored as account_chip in privacy.toml and on by default. The chip's spacer stays so the switches keep their place, and the line goes when nothing is left on it.
@hyprlab
hyprlab commented Oct 29, 2026
Copy link
Copy Markdown
Owner

Hey thanks for the PR, this will be landing in today's stable build 1.46.0 with your credit :)

hyprlab added a commit that referenced this pull request Oct 29, 2026
With a single account the chip says the same thing on every message. The chip's container stays when it is hidden, since it is what pushes the switches to the right.

Co-Authored-By: Valentin Morice <100000204+valentin-morice@users.noreply.github.com>
hyprlab added a commit that referenced this pull request Oct 29, 2026
@valentin-morice
Copy link
Copy Markdown
Contributor Author

Glad you like the PRs! Thanks for maintaining the project, it's a pleasure to use it :-)

hyprlab added a commit that referenced this pull request Oct 29, 2026
Everything from 1.46.0-beta.1 to 1.46.0-beta.5, plus main since: #547, #548, #549, #545, #546, lone card folding and marks, the AppImage and the ARM packages.
@hyprlab
hyprlab commented Oct 29, 2026
Copy link
Copy Markdown
Owner

Agentic reply:

The build is in the repo now: flatpak update picks it up.

@hyprlab hyprlab closed this Oct 29, 2026
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.

2 participants

0