ad35547582
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>
32 lines
715 B
Rust
32 lines
715 B
Rust
pub mod account_login_view;
|
|
pub mod accounts;
|
|
pub mod add_column;
|
|
pub mod column;
|
|
pub mod configure_deck;
|
|
pub mod edit_deck;
|
|
pub mod images;
|
|
pub mod mentions_picker;
|
|
pub mod note;
|
|
pub mod post;
|
|
pub mod preview;
|
|
pub mod profile;
|
|
pub mod relay;
|
|
pub mod search;
|
|
pub mod settings;
|
|
pub mod side_panel;
|
|
pub mod support;
|
|
pub mod thread;
|
|
pub mod timeline;
|
|
pub mod wallet;
|
|
pub mod widgets;
|
|
|
|
pub use accounts::AccountsView;
|
|
pub use note::{PostReplyView, PostView};
|
|
pub use preview::{Preview, PreviewApp, PreviewConfig};
|
|
pub use profile::ProfileView;
|
|
pub use relay::RelayView;
|
|
pub use settings::SettingsView;
|
|
pub use side_panel::{DesktopSidePanel, SidePanelAction};
|
|
pub use thread::ThreadView;
|
|
pub use timeline::TimelineView;
|