refactor: collapse client label settings; drop CLI/settings toggles
The "top vs bottom" client label setting was cluttering the UI and
codebase with toggles that added little value. This consolidates client
label handling into one option, removes unused CLI/settings knobs, and
makes NoteView’s API consistent and fluent. Result: fewer knobs, less
branching, and a clearer, more predictable UI.
Now client labels are only shown in one place: selected notes.
- Drop `--show-client` arg in notedeck and `--show-note-client=top|bottom`
args in notedeck_columns
- Remove `NotedeckOptions::ShowClient` and related CLI parsing
- Delete `ShowSourceClientOption` enum, settings UI, and
`SettingsAction::SetShowSourceClient`
- Collapse `NoteOptions::{ClientNameTop, ClientNameBottom}` into a single
`NoteOptions::ClientName`
- Add `NoteOptions::{Framed, UnreadIndicator}`
- Move “framed” and unread indicator into flags (no more ad‑hoc bools)
- Add new NoteView builder methods: `.client_name()`, `.frame()`,
`.unread_indicator()`, and `.selected_style()`
- CLI flags for showing client labels have been removed
- `ClientNameTop`/`ClientNameBottom` replaced with `ClientName`
- API using `framed` or `show_unread_indicator` booleans must now use
the new flag setters
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -23,13 +23,18 @@ bitflags! {
|
||||
/// will end with a ... and a "Show more" button.
|
||||
const Truncate = 1 << 11;
|
||||
/// Show note's client in the note content
|
||||
const ClientNameTop = 1 << 12;
|
||||
const ClientNameBottom = 1 << 13;
|
||||
const ClientName = 1 << 12;
|
||||
|
||||
const RepliesNewestFirst = 1 << 14;
|
||||
const RepliesNewestFirst = 1 << 13;
|
||||
|
||||
/// Show note's full created at date at the bottom
|
||||
const FullCreatedDate = 1 << 15;
|
||||
const FullCreatedDate = 1 << 14;
|
||||
|
||||
/// Note has a framed border
|
||||
const Framed = 1 << 15;
|
||||
|
||||
/// Note has a framed border
|
||||
const UnreadIndicator = 1 << 16;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user