fix(icon): use omp.sh favicon for oh-my-pi harness (#1243)

* fix(agents): draw Oh My Pi from omp.sh's favicon geometry

* fix(agents): use omp.sh's favicon colors

---------

Co-authored-by: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com>
This commit is contained in:
Pasteley Absurda
2026-11-12 23:04:03 +08:00
committed by GitHub
co-authored by l0ng-ai
parent 5d80817d72
commit e7e5bd103a
4 changed files with 31 additions and 30 deletions
+12 -13
View File
@@ -1,15 +1,14 @@
<!-- Oh My Pi's own brand mark, from can1357/oh-my-pi assets/icon.svg (MIT).
Normalized to tty7's 24x24 icon format: the source is a 120x90 box whose
art spans x[10,110] y[8,82], scaled by 0.2 and centred, so every edge lands
on a tenth of a unit and the proportions are unchanged. The source paints
the glyph white with an orange plug and two dark prongs; the avatars are
tinted flat by the app, so the multi-colour split collapses to the single
sentinel fill the rest of the set uses, and the prongs — a quarter of a
unit wide here — are dropped rather than rendered as invisible slivers.
The plug itself stays: it is what separates this mark from a plain pi. -->
<!-- Oh My Pi's own brand mark, from https://omp.sh/favicon.svg.
Normalized to tty7's 24x24 icon format: the source is a 64x64 box whose
art spans x[14,50] y[16,56], scaled by 0.6 so the height fills the box and
centred horizontally; every edge lands on a tenth of a unit and the
proportions are unchanged. The source paints the glyph with a
pink-violet-cyan gradient on a near-black rounded square; the avatars are
tinted flat by the app and draw their own field, so the square is dropped
and the gradient collapses to the single sentinel fill the rest of the set
uses. The field and mark colours live in cli_agent.rs. -->
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="4.6" width="20" height="2.4" rx="0.4" fill="#FF0000"/>
<rect x="5" y="7" width="2.4" height="12.4" rx="0.4" fill="#FF0000"/>
<rect x="15" y="7" width="2.4" height="9" rx="0.4" fill="#FF0000"/>
<rect x="14.2" y="14" width="4" height="3.2" rx="0.6" fill="#FF0000"/>
<rect x="1.2" y="0" width="21.6" height="4.8" fill="#FF0000"/>
<rect x="3.6" y="4.8" width="4.8" height="13.2" fill="#FF0000"/>
<rect x="12" y="4.8" width="4.8" height="19.2" fill="#FF0000"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 959 B

+6 -3
View File
@@ -641,7 +641,9 @@ impl CLIAgent {
CLIAgent::Antigravity => 0x3186FF,
CLIAgent::Grok => 0x000000,
CLIAgent::Qwen => 0x6D44E8,
CLIAgent::OhMyPi => 0xF97316,
// The near-black field omp.sh's favicon sits on; the mark wears
// the violet midpoint of the site's pink-to-cyan gradient.
CLIAgent::OhMyPi => 0x0F0A14,
// The blue of the flame in Kimi's brand mark; the glyph itself is
// black, which Codex and Grok already have covered.
CLIAgent::Kimi => 0x027AFF,
@@ -669,11 +671,12 @@ impl CLIAgent {
/// agent wearing two faces.
///
/// White for every mark that is a silhouette sitting on its brand colour.
/// TraeCode is the one whose mark is the coloured half of the pair, on an
/// accent that is deliberately black.
/// TraeCode and Oh My Pi are the ones whose mark is the coloured half of
/// the pair, on an accent that is deliberately near-black.
pub fn icon_rgb(self) -> u32 {
match self {
CLIAgent::TraeCode => 0x32F08C,
CLIAgent::OhMyPi => 0x9B4DFF,
CLIAgent::QoderCLI | CLIAgent::QoderCLICn => 0x000000,
_ => 0xFFFFFF,
}
+12 -13
View File
@@ -1,15 +1,14 @@
<!-- Oh My Pi's own brand mark, from can1357/oh-my-pi assets/icon.svg (MIT).
Normalized to tty7's 24x24 icon format: the source is a 120x90 box whose
art spans x[10,110] y[8,82], scaled by 0.2 and centred, so every edge lands
on a tenth of a unit and the proportions are unchanged. The source paints
the glyph white with an orange plug and two dark prongs; the avatars are
tinted flat by the app, so the multi-colour split collapses to the single
sentinel fill the rest of the set uses, and the prongs — a quarter of a
unit wide here — are dropped rather than rendered as invisible slivers.
The plug itself stays: it is what separates this mark from a plain pi. -->
<!-- Oh My Pi's own brand mark, from https://omp.sh/favicon.svg.
Normalized to tty7's 24x24 icon format: the source is a 64x64 box whose
art spans x[14,50] y[16,56], scaled by 0.6 so the height fills the box and
centred horizontally; every edge lands on a tenth of a unit and the
proportions are unchanged. The source paints the glyph with a
pink-violet-cyan gradient on a near-black rounded square; the avatars are
tinted flat by the app and draw their own field, so the square is dropped
and the gradient collapses to the single sentinel fill the rest of the set
uses. The field and mark colours live in cli_agent.rs. -->
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="4.6" width="20" height="2.4" rx="0.4" fill="#FF0000"/>
<rect x="5" y="7" width="2.4" height="12.4" rx="0.4" fill="#FF0000"/>
<rect x="15" y="7" width="2.4" height="9" rx="0.4" fill="#FF0000"/>
<rect x="14.2" y="14" width="4" height="3.2" rx="0.6" fill="#FF0000"/>
<rect x="1.2" y="0" width="21.6" height="4.8" fill="#FF0000"/>
<rect x="3.6" y="4.8" width="4.8" height="13.2" fill="#FF0000"/>
<rect x="12" y="4.8" width="4.8" height="19.2" fill="#FF0000"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 959 B

+1 -1
View File
@@ -70,7 +70,7 @@ const AGENTS: Record<string, { name: string; field: string; ink?: string; mark?:
antigravity: { name: "Antigravity", field: "#3186FF", mark: "" },
grok: { name: "Grok", field: "#000000" },
qwen: { name: "Qwen Code", field: "#6D44E8" },
omp: { name: "Oh My Pi", field: "#F97316" },
omp: { name: "Oh My Pi", field: "#0F0A14", ink: "#9B4DFF" },
kimi: { name: "Kimi Code", field: "#027AFF" },
qodercli: { name: "Qoder CLI", field: "#FFFFFF", ink: "#000000" },
crush: { name: "Crush", field: "#6B50FF" },