detached 8ab9109

find/omnibox: add subtle blur in faded mode via (webkit)backdrop-filter on box; clear filters when unfading

commit
8ab9109a289a7a7f6857337004c6a3838bb3ae6d
author
bamen · · 2025-09-09 16:46 UTC
committer
bamen · · 2025-09-09 19:27 UTC
parent
2de1562
signature
unsigned
1 file · +4 -0
M pkg/webkit/ucm_js_cgo.go +4 -0
@@ -56,10 +56,14 @@ func getOmniboxScript() string {
5656 if (!H.box || !H.input || !H.list) return;
5757 if (H.faded) {
5858 H.box.style.background = 'rgba(27,27,27,0.25)';
59+ H.box.style.backdropFilter = 'blur(2px) saturate(110%)';
60+ H.box.style.webkitBackdropFilter = 'blur(2px) saturate(110%)';
5961 H.input.style.background = 'rgba(18,18,18,0.35)';
6062 H.input.style.color = '#eee';
6163 } else {
6264 H.box.style.background = '#1b1b1b';
65+ H.box.style.backdropFilter = '';
66+ H.box.style.webkitBackdropFilter = '';
6367 H.input.style.background = '#121212';
6468 H.input.style.color = '#eee';
6569 }
@@ -56,10 +56,14 @@ func getOmniboxScript() string {
56 if (!H.box || !H.input || !H.list) return;56 if (!H.box || !H.input || !H.list) return;
57 if (H.faded) {57 if (H.faded) {
58 H.box.style.background = 'rgba(27,27,27,0.25)';58 H.box.style.background = 'rgba(27,27,27,0.25)';
59+ H.box.style.backdropFilter = 'blur(2px) saturate(110%)';
60+ H.box.style.webkitBackdropFilter = 'blur(2px) saturate(110%)';
59 H.input.style.background = 'rgba(18,18,18,0.35)';61 H.input.style.background = 'rgba(18,18,18,0.35)';
60 H.input.style.color = '#eee';62 H.input.style.color = '#eee';
61 } else {63 } else {
62 H.box.style.background = '#1b1b1b';64 H.box.style.background = '#1b1b1b';
65+ H.box.style.backdropFilter = '';
66+ H.box.style.webkitBackdropFilter = '';
63 H.input.style.background = '#121212';67 H.input.style.background = '#121212';
64 H.input.style.color = '#eee';68 H.input.style.color = '#eee';
65 }69 }

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