mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-06-22 16:24:47 +03:00
ui(client_row): sentence-case "Peer version" and "Ours" labels
These are user-visible labels in the version-status subtitle, so sentence-case reads better than the lowercase first-pass. "matched" stays lowercase since it's a status descriptor, not a label. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
Ferdinand Schober
parent
72c86c0d83
commit
62b22e1764
@@ -175,13 +175,13 @@ impl ClientRow {
|
||||
let local = crate::local_commit_str();
|
||||
let markup = match peer.as_deref() {
|
||||
None => format!(
|
||||
r##"<span foreground="#ffaa33">peer version: unknown · ours: {local}</span>"##
|
||||
r##"<span foreground="#ffaa33">Peer version: unknown · Ours: {local}</span>"##
|
||||
),
|
||||
Some(p) if p == local.as_str() => format!(
|
||||
r##"<span foreground="#33cc66">peer version: {p} · matched</span>"##
|
||||
r##"<span foreground="#33cc66">Peer version: {p} · matched</span>"##
|
||||
),
|
||||
Some(p) => format!(
|
||||
r##"<span foreground="#ffaa33">peer version: {p} · ours: {local}</span>"##
|
||||
r##"<span foreground="#ffaa33">Peer version: {p} · Ours: {local}</span>"##
|
||||
),
|
||||
};
|
||||
self.set_subtitle(&markup);
|
||||
|
||||
Reference in New Issue
Block a user