Per-session icon: decide whether it is wanted #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
A sidebar row's icon comes from the session's type:
SessionKind::icon_nameincrates/terminalko-config/src/session.rsmaps local,ssh, container and root to
utilities-terminal-symbolic,network-server-symbolic,package-x-generic-symbolicandsecurity-high-symbolic.rebuild_sidebaruses it for both the sidebar item andthe tab page.
The gap, and a correction
The original plan listed a per-session
iconkey. It was never added — there isno unused key in the schema; an earlier note claiming otherwise was wrong.
So this is a feature request rather than a loose end: let a session carry its own
icon, so a row can say this is the database one at a glance rather than only
this is a container.
Whether it is worth doing
Weigh it against what already distinguishes rows: the name, the accent colour
(nine choices), the type icon, and — since the foreground-process work — a
subtitle naming what is running. A per-session icon may be redundant, and an icon
chooser is a surprising amount of UI. Deciding not to do this is a perfectly
good outcome; if so, close this and say why in
docs/spec/session-sidebar.mdsoit is not proposed again.
Approach, if it is wanted
icon(types, default empty) todata/me.dusansimic.terminalko.session.gschema.xml, plus an accessor pair onSessionreturningOption<String>;sidebar_itemand the tab page prefer it and fall back to the type icon;honest and cheap but assumes the user knows icon names; a grid of a couple of
dozen symbolic icons that ship with adwaita-icon-theme is friendlier and more
work. Pick one and say why in the spec;
broken-image glyph — check with
gtk::IconTheme::has_icon.Acceptance criteria
without shows its type icon.
has landed.
docs/spec/session-sidebar.mdrecords the decision either way.Notes
CONTRIBUTING.mdapply.