main 5041353

tab_picker_css.go RawHistoryFolder

1package theme
2
3// generateTabPickerCSS creates tab picker modal styles.
4// Uses similar styling conventions as Omnibox/SessionManager.
5func generateTabPickerCSS(p Palette) string {
6	_ = p
7	return `/* ===== Tab Picker Styling ===== */
8
9.tab-picker-outer {
10	/* Positioning handled in Go */
11}
12
13.tab-picker-container {
14	background-color: var(--surface-variant);
15	border: 0.0625em solid var(--border);
16	border-radius: 0.1875em;
17	padding: 0;
18	min-width: 28em;
19}
20
21.tab-picker-header {
22	background-color: shade(var(--surface-variant), 1.1);
23	border-bottom: 0.0625em solid var(--border);
24	padding: 0.5em 0.75em;
25}
26
27.tab-picker-title {
28	font-size: 0.9375em;
29	font-weight: 600;
30	color: var(--text);
31}
32
33.tab-picker-scrolled {
34	background-color: shade(var(--surface-variant), 0.95);
35}
36
37.tab-picker-list {
38	background-color: transparent;
39}
40
41.tab-picker-row {
42	padding: 0.5em 0.75em;
43	margin: 0;
44	border-radius: 0;
45	border-left: 0.1875em solid transparent;
46	border-bottom: 0.0625em solid alpha(var(--border), 0.5);
47	transition: background-color 100ms ease-in-out, border-left 100ms ease-in-out;
48	min-height: 2.75em;
49}
50
51.tab-picker-row:last-child {
52	border-bottom: none;
53}
54
55.tab-picker-row:hover {
56	background-color: alpha(var(--accent), 0.12);
57	border-left: 0.1875em solid var(--accent);
58}
59
60.tab-picker-row:selected,
61row:selected .tab-picker-row {
62	background-color: alpha(var(--accent), 0.2);
63	border-left: 0.1875em solid var(--accent);
64}
65
66.tab-picker-row-title {
67	color: var(--text);
68	font-size: 0.875em;
69	font-weight: 400;
70}
71
72.tab-picker-footer {
73	background-color: shade(var(--surface-variant), 0.9);
74	border-top: 0.0625em solid var(--border);
75	padding: 0.375em 0.75em;
76	font-size: 0.6875em;
77	color: var(--muted);
78	font-family: var(--font-mono);
79}
80`
81}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close