detached c8448cb

feat(ui): add color gradient effect to logo display

commit
c8448cb8c753277c1f4f69c7df8f2e0ca1eeac2f
author
bnema · · 2025-10-19 19:28 UTC
committer
bnema · · 2025-10-19 21:40 UTC
parent
eb97f5a
signature
unsigned
1 file · +16 -1
M install/helpers/presentation.sh +16 -1
@@ -44,7 +44,22 @@ export GUM_CONFIRM_PADDING="$PADDING"
4444
4545 clear_logo() {
4646 printf "\033[H\033[2J" # Clear screen and move cursor to top-left
47- gum style --foreground 4 --padding "1 0 0 $PADDING_LEFT" "$(<"$LOGO_PATH")"
47+
48+ # ANSI color codes: cyan=36, white=37
49+ local CYAN="\033[36m"
50+ local WHITE="\033[37m"
51+ local RESET="\033[0m"
52+ local split_pos=34
53+
54+ # Print with padding and color split
55+ printf "\n" # Top padding
56+ while IFS= read -r line; do
57+ if [ -n "$line" ]; then
58+ printf "%s${CYAN}%s${WHITE}%s${RESET}\n" "$PADDING_LEFT_SPACES" "${line:0:$split_pos}" "${line:$split_pos}"
59+ else
60+ printf "\n"
61+ fi
62+ done < "$LOGO_PATH"
4863 }
4964
5065 # Show cursor (used in cleanup)
@@ -44,7 +44,22 @@ export GUM_CONFIRM_PADDING="$PADDING"
44 44
45 clear_logo() {45 clear_logo() {
46 printf "\033[H\033[2J" # Clear screen and move cursor to top-left46 printf "\033[H\033[2J" # Clear screen and move cursor to top-left
47- gum style --foreground 4 --padding "1 0 0 $PADDING_LEFT" "$(<"$LOGO_PATH")"47+
48+ # ANSI color codes: cyan=36, white=37
49+ local CYAN="\033[36m"
50+ local WHITE="\033[37m"
51+ local RESET="\033[0m"
52+ local split_pos=34
53+
54+ # Print with padding and color split
55+ printf "\n" # Top padding
56+ while IFS= read -r line; do
57+ if [ -n "$line" ]; then
58+ printf "%s${CYAN}%s${WHITE}%s${RESET}\n" "$PADDING_LEFT_SPACES" "${line:0:$split_pos}" "${line:$split_pos}"
59+ else
60+ printf "\n"
61+ fi
62+ done < "$LOGO_PATH"
48 }63 }
49 64
50 # Show cursor (used in cleanup)65 # Show cursor (used in cleanup)

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 1

Tags 0

    ↑↓ moveenter openesc close