Two changes that pull in the same direction: the panel says less, and the menu stops pretending to do anything. The chip row had no bound. It sits in the centre box next to the clock, so enough open sessions would have shoved the clock off centre. It now shows the first N, settable and three by default, and counts the rest as "+N". Chips are already ordered by urgency, so the ones that survive the cut are the ones that need you soonest. Labels are still assigned across every session, including hidden ones, so a chip does not change when the cap does or when a session ahead of it disappears. Clicking a menu row used to switch the zellij tab and raise a terminal. That is gone. It cost real machinery for what it saved -- gnome-terminal runs every window under one shared server process, so windows cannot be matched by pid and the code fell back to matching the zellij session name against window titles, with all the ways that misses. The menu reports status; alt-tab is not the bottleneck. Rows are built inert rather than demoted after the fact, because PopupBaseMenuItem latches _activatable in its constructor. zellij tab lookup stays: naming the tab is the better half of that feature and costs one process every couple of minutes. The preferences test now asserts a control per settings key rather than a switch per key, so the new spin row counts and a future non-boolean setting cannot slip in without one.
65 lines
1.3 KiB
CSS
65 lines
1.3 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. */
|
|
|
|
.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-overflow {
|
|
font-size: 0.9em;
|
|
opacity: 0.7;
|
|
font-feature-settings: "tnum";
|
|
}
|
|
|
|
.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;
|
|
}
|