Files
claude-code-gnome-extension/stylesheet.css
T
av 839c6f6b52 Drop colour from the panel, and the message that said nothing
Two changes that turned out to be related.

The chips painted their own red, amber and green. An indicator that picks
its own colours competes with the shell's accents and stops following the
theme, so the panel now draws everything in the panel's text colour and
lets shape carry the state. Only alpha still varies, to push idle sessions
back.

That put real weight on the four shapes being distinguishable at 14 px,
which is not something to guess at, so the drawing moved to lib/glyph.js
-- free of St, Clutter and shell imports precisely so the glyphs can be
rendered to a file and looked at. They were, and the first attempt was
wrong twice: a disc filled to the ring's centreline reads smaller than the
ring beside it, and the inner disc of "blocked" was too small to tell from
a plain "working" ring. Radii are now matched at the outer edge and the
inner disc sits at 0.55, both settled by comparing renders.

Separately, hooking a live session showed the Notification that accompanies
a permission prompt carries only "Claude needs your permission" -- no tool,
no command -- and arrives identically when the session is putting a question
to the user rather than asking to run something. The menu was giving that
string the line, pushing out the tab and the path: strictly less information
in more space. It is gone, and the comment claiming it "says what is about
to run" is corrected. Recovering the real command means reading the tail of
the transcript when the prompt fires; it is not in the event.

The same finding settles how far the states can split. "Blocked" cannot be
divided into "asking permission" and "asking a question" from this data.
2026-08-09 19:02:43 +03:00

66 lines
1.4 KiB
CSS

/* The panel stays monochrome: every glyph is drawn in the panel's own text
colour, so it follows the theme instead of fighting it, and the shell's
accent colours keep meaning what they mean. State is carried by shape, which
also survives a monochrome theme and colour vision deficiency.
Only alpha varies, and only to push idle sessions back — nobody is waiting
on those, so they should not compete with the ones that need an answer. */
.ccs-panel-box {
spacing: 10px;
/* Small gap so the chips read as a separate group from the clock rather
than as part of it. */
margin-left: 12px;
}
.ccs-chip {
spacing: 4px;
}
/* Glyph is drawn in code (St.DrawingArea) using the panel text colour. */
.ccs-dot {
width: 14px;
height: 14px;
}
.ccs-chip-label {
font-size: 0.9em;
font-weight: bold;
/* Tabular figures keep a chip that gains a digit ("ds" -> "ds2") from
nudging every chip after it sideways. */
font-feature-settings: "tnum";
}
.ccs-chip-age {
font-size: 0.85em;
opacity: 0.7;
font-feature-settings: "tnum";
}
.ccs-idle {
opacity: 0.55;
}
.ccs-summary {
font-weight: bold;
}
.ccs-row {
spacing: 8px;
}
.ccs-row-title {
font-weight: bold;
}
.ccs-row-age {
font-feature-settings: "tnum";
opacity: 0.7;
}
.ccs-row-subtitle {
font-size: 0.85em;
opacity: 0.65;
max-width: 460px;
}