mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 11:04:42 -07:00
364 lines
40 KiB
Plaintext
364 lines
40 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`Initial Theme Selection > should default to a dark theme when terminal background is dark and no theme is set 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Select Theme Preview │
|
|
│ ▲ ┌─────────────────────────────────────────────────┐ │
|
|
│ 1. ANSI Dark │ │ │
|
|
│ 2. Atom One Dark │ 1 # function │ │
|
|
│ 3. Ayu Dark │ 2 def fibonacci(n): │ │
|
|
│ ● 4. Default Dark │ 3 a, b = 0, 1 │ │
|
|
│ 5. Dracula Dark │ 4 for _ in range(n): │ │
|
|
│ 6. GitHub Dark │ 5 a, b = b, a + b │ │
|
|
│ 7. Holiday Dark │ 6 return a │ │
|
|
│ 8. Shades Of Purple Dark │ │ │
|
|
│ 9. Solarized Dark │ 1 - print("Hello, " + name) │ │
|
|
│ 10. ANSI Light │ 1 + print(f"Hello, {name}!") │ │
|
|
│ 11. Ayu Light │ │ │
|
|
│ 12. Default Light └─────────────────────────────────────────────────┘ │
|
|
│ ▼ │
|
|
│ ╭─────────────────────────────────────────────────╮ │
|
|
│ │ DEVELOPER TOOLS (Not visible to users) │ │
|
|
│ │ │ │
|
|
│ │ How do colors get applied? │ │
|
|
│ │ • Hex: Rendered exactly by modern terminals. │ │
|
|
│ │ Not overridden by app themes. │ │
|
|
│ │ • Blank: Uses your terminal's default │ │
|
|
│ │ foreground/background. │ │
|
|
│ │ • Compatibility: On older terminals, hex is │ │
|
|
│ │ approximated to the nearest ANSI color. │ │
|
|
│ │ • ANSI Names: 'red', 'green', etc. are mapped │ │
|
|
│ │ to your terminal app's palette. │ │
|
|
│ │ │ │
|
|
│ │ Value Name │ │
|
|
│ │ #1E1E… backgroun Main terminal background │ │
|
|
│ │ d.primary color │ │
|
|
│ │ #313… backgroun Subtle background for │ │
|
|
│ │ d.message message blocks │ │
|
|
│ │ #313… backgroun Background for the input │ │
|
|
│ │ d.input prompt │ │
|
|
│ │ #39… background. Background highlight for │ │
|
|
│ │ focus selected/focused items │ │
|
|
│ │ #283… backgrou Background for added lines │ │
|
|
│ │ nd.diff. in diffs │ │
|
|
│ │ added │ │
|
|
│ │ #430… backgroun Background for removed │ │
|
|
│ │ d.diff.re lines in diffs │ │
|
|
│ │ moved │ │
|
|
│ │ (blank text.prim Primary text color (uses │ │
|
|
│ │ ) ary terminal default if blank) │ │
|
|
│ │ #6C7086 text.secon Secondary/dimmed text │ │
|
|
│ │ dary color │ │
|
|
│ │ #89B4FA text.link Hyperlink and highlighting │ │
|
|
│ │ color │ │
|
|
│ │ #CBA6F7 text.accen Accent color for │ │
|
|
│ │ t emphasis │ │
|
|
│ │ (blank) text.res Color for model response │ │
|
|
│ │ ponse text (uses terminal default │ │
|
|
│ │ if blank) │ │
|
|
│ │ #3d3f51 border.def Standard border color │ │
|
|
│ │ ault │ │
|
|
│ │ #6C7086ui.comme Color for code comments and │ │
|
|
│ │ nt metadata │ │
|
|
│ │ #89DCE ui.symbol Color for technical symbols │ │
|
|
│ │ B and UI icons │ │
|
|
│ │ #89B4F ui.active Border color for active or │ │
|
|
│ │ A running elements │ │
|
|
│ │ #3d3f5 ui.dark Deeply dimmed color for │ │
|
|
│ │ 1 subtle UI elements │ │
|
|
│ │ #A6E3A ui.focus Color for focused elements │ │
|
|
│ │ 1 (e.g. selected menu items, │ │
|
|
│ │ focused borders) │ │
|
|
│ │ #F38BA8status.err Color for error messages │ │
|
|
│ │ or and critical status │ │
|
|
│ │ #A6E3A1status.suc Color for success messages │ │
|
|
│ │ cess and positive status │ │
|
|
│ │ #F9E2A status.wa Color for warnings and │ │
|
|
│ │ F rning cautionary status │ │
|
|
│ │ #4796E4 ui.gradien │ │
|
|
│ │ #847ACE t │ │
|
|
│ │ #C3677F │ │
|
|
│ ╰─────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ (Use Enter to select, Tab to configure scope, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
"
|
|
`;
|
|
|
|
exports[`Initial Theme Selection > should default to a light theme when terminal background is light and no theme is set 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Select Theme Preview │
|
|
│ ▲ ┌─────────────────────────────────────────────────┐ │
|
|
│ 1. ANSI Light │ │ │
|
|
│ 2. Ayu Light │ 1 # function │ │
|
|
│ ● 3. Default Light │ 2 def fibonacci(n): │ │
|
|
│ 4. GitHub Light │ 3 a, b = 0, 1 │ │
|
|
│ 5. Google Code Light │ 4 for _ in range(n): │ │
|
|
│ 6. Solarized Light │ 5 a, b = b, a + b │ │
|
|
│ 7. Xcode Light │ 6 return a │ │
|
|
│ 8. ANSI Dark (Incompatible) │ │ │
|
|
│ 9. Atom One Dark (Incompatible) │ 1 - print("Hello, " + name) │ │
|
|
│ 10. Ayu Dark (Incompatible) │ 1 + print(f"Hello, {name}!") │ │
|
|
│ 11. Default Dark (Incompatible) │ │ │
|
|
│ 12. Dracula Dark (Incompatible) └─────────────────────────────────────────────────┘ │
|
|
│ ▼ │
|
|
│ ╭─────────────────────────────────────────────────╮ │
|
|
│ │ DEVELOPER TOOLS (Not visible to users) │ │
|
|
│ │ │ │
|
|
│ │ How do colors get applied? │ │
|
|
│ │ • Hex: Rendered exactly by modern terminals. │ │
|
|
│ │ Not overridden by app themes. │ │
|
|
│ │ • Blank: Uses your terminal's default │ │
|
|
│ │ foreground/background. │ │
|
|
│ │ • Compatibility: On older terminals, hex is │ │
|
|
│ │ approximated to the nearest ANSI color. │ │
|
|
│ │ • ANSI Names: 'red', 'green', etc. are mapped │ │
|
|
│ │ to your terminal app's palette. │ │
|
|
│ │ │ │
|
|
│ │ Value Name │ │
|
|
│ │ #FAFA… backgroun Main terminal background │ │
|
|
│ │ d.primary color │ │
|
|
│ │ #e2e… backgroun Subtle background for │ │
|
|
│ │ d.message message blocks │ │
|
|
│ │ #e2e… backgroun Background for the input │ │
|
|
│ │ d.input prompt │ │
|
|
│ │ #d4… background. Background highlight for │ │
|
|
│ │ focus selected/focused items │ │
|
|
│ │ #C6E… backgrou Background for added lines │ │
|
|
│ │ nd.diff. in diffs │ │
|
|
│ │ added │ │
|
|
│ │ #FFC… backgroun Background for removed │ │
|
|
│ │ d.diff.re lines in diffs │ │
|
|
│ │ moved │ │
|
|
│ │ (blank text.prim Primary text color (uses │ │
|
|
│ │ ) ary terminal default if blank) │ │
|
|
│ │ #97a0b0 text.secon Secondary/dimmed text │ │
|
|
│ │ dary color │ │
|
|
│ │ #3B82F6 text.link Hyperlink and highlighting │ │
|
|
│ │ color │ │
|
|
│ │ #8B5CF6 text.accen Accent color for │ │
|
|
│ │ t emphasis │ │
|
|
│ │ (blank) text.res Color for model response │ │
|
|
│ │ ponse text (uses terminal default │ │
|
|
│ │ if blank) │ │
|
|
│ │ #d2d6dc border.def Standard border color │ │
|
|
│ │ ault │ │
|
|
│ │ #97a0b0ui.comme Color for code comments and │ │
|
|
│ │ nt metadata │ │
|
|
│ │ #06B6D ui.symbol Color for technical symbols │ │
|
|
│ │ 4 and UI icons │ │
|
|
│ │ #3B82F ui.active Border color for active or │ │
|
|
│ │ 6 running elements │ │
|
|
│ │ #d2d6d ui.dark Deeply dimmed color for │ │
|
|
│ │ c subtle UI elements │ │
|
|
│ │ #3CA84 ui.focus Color for focused elements │ │
|
|
│ │ B (e.g. selected menu items, │ │
|
|
│ │ focused borders) │ │
|
|
│ │ #DD4C4Cstatus.err Color for error messages │ │
|
|
│ │ or and critical status │ │
|
|
│ │ #3CA84Bstatus.suc Color for success messages │ │
|
|
│ │ cess and positive status │ │
|
|
│ │ #D5A40 status.wa Color for warnings and │ │
|
|
│ │ A rning cautionary status │ │
|
|
│ │ #4796E4 ui.gradien │ │
|
|
│ │ #847ACE t │ │
|
|
│ │ #C3677F │ │
|
|
│ ╰─────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ (Use Enter to select, Tab to configure scope, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
"
|
|
`;
|
|
|
|
exports[`Initial Theme Selection > should use the theme from settings even if terminal background suggests a different theme type 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Select Theme Preview │
|
|
│ ▲ ┌─────────────────────────────────────────────────┐ │
|
|
│ ● 1. ANSI Dark │ │ │
|
|
│ 2. Atom One Dark │ 1 # function │ │
|
|
│ 3. Ayu Dark │ 2 def fibonacci(n): │ │
|
|
│ 4. Default Dark │ 3 a, b = 0, 1 │ │
|
|
│ 5. Dracula Dark │ 4 for _ in range(n): │ │
|
|
│ 6. GitHub Dark │ 5 a, b = b, a + b │ │
|
|
│ 7. Holiday Dark │ 6 return a │ │
|
|
│ 8. Shades Of Purple Dark │ │ │
|
|
│ 9. Solarized Dark │ 1 - print("Hello, " + name) │ │
|
|
│ 10. ANSI Light │ 1 + print(f"Hello, {name}!") │ │
|
|
│ 11. Ayu Light │ │ │
|
|
│ 12. Default Light └─────────────────────────────────────────────────┘ │
|
|
│ ▼ │
|
|
│ ╭─────────────────────────────────────────────────╮ │
|
|
│ │ DEVELOPER TOOLS (Not visible to users) │ │
|
|
│ │ │ │
|
|
│ │ How do colors get applied? │ │
|
|
│ │ • Hex: Rendered exactly by modern terminals. │ │
|
|
│ │ Not overridden by app themes. │ │
|
|
│ │ • Blank: Uses your terminal's default │ │
|
|
│ │ foreground/background. │ │
|
|
│ │ • Compatibility: On older terminals, hex is │ │
|
|
│ │ approximated to the nearest ANSI color. │ │
|
|
│ │ • ANSI Names: 'red', 'green', etc. are mapped │ │
|
|
│ │ to your terminal app's palette. │ │
|
|
│ │ │ │
|
|
│ │ Value Name │ │
|
|
│ │ #1E1E… backgroun Main terminal background │ │
|
|
│ │ d.primary color │ │
|
|
│ │ #313… backgroun Subtle background for │ │
|
|
│ │ d.message message blocks │ │
|
|
│ │ #313… backgroun Background for the input │ │
|
|
│ │ d.input prompt │ │
|
|
│ │ #39… background. Background highlight for │ │
|
|
│ │ focus selected/focused items │ │
|
|
│ │ #283… backgrou Background for added lines │ │
|
|
│ │ nd.diff. in diffs │ │
|
|
│ │ added │ │
|
|
│ │ #430… backgroun Background for removed │ │
|
|
│ │ d.diff.re lines in diffs │ │
|
|
│ │ moved │ │
|
|
│ │ (blank text.prim Primary text color (uses │ │
|
|
│ │ ) ary terminal default if blank) │ │
|
|
│ │ #6C7086 text.secon Secondary/dimmed text │ │
|
|
│ │ dary color │ │
|
|
│ │ #89B4FA text.link Hyperlink and highlighting │ │
|
|
│ │ color │ │
|
|
│ │ #CBA6F7 text.accen Accent color for │ │
|
|
│ │ t emphasis │ │
|
|
│ │ (blank) text.res Color for model response │ │
|
|
│ │ ponse text (uses terminal default │ │
|
|
│ │ if blank) │ │
|
|
│ │ #3d3f51 border.def Standard border color │ │
|
|
│ │ ault │ │
|
|
│ │ #6C7086ui.comme Color for code comments and │ │
|
|
│ │ nt metadata │ │
|
|
│ │ #89DCE ui.symbol Color for technical symbols │ │
|
|
│ │ B and UI icons │ │
|
|
│ │ #89B4F ui.active Border color for active or │ │
|
|
│ │ A running elements │ │
|
|
│ │ #3d3f5 ui.dark Deeply dimmed color for │ │
|
|
│ │ 1 subtle UI elements │ │
|
|
│ │ #A6E3A ui.focus Color for focused elements │ │
|
|
│ │ 1 (e.g. selected menu items, │ │
|
|
│ │ focused borders) │ │
|
|
│ │ #F38BA8status.err Color for error messages │ │
|
|
│ │ or and critical status │ │
|
|
│ │ #A6E3A1status.suc Color for success messages │ │
|
|
│ │ cess and positive status │ │
|
|
│ │ #F9E2A status.wa Color for warnings and │ │
|
|
│ │ F rning cautionary status │ │
|
|
│ │ #4796E4 ui.gradien │ │
|
|
│ │ #847ACE t │ │
|
|
│ │ #C3677F │ │
|
|
│ ╰─────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ (Use Enter to select, Tab to configure scope, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
"
|
|
`;
|
|
|
|
exports[`ThemeDialog Snapshots > should render correctly in scope selector mode 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Apply To │
|
|
│ ● 1. User Settings │
|
|
│ 2. Workspace Settings │
|
|
│ 3. System Settings │
|
|
│ │
|
|
│ (Use Enter to apply scope, Tab to select theme, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
"
|
|
`;
|
|
|
|
exports[`ThemeDialog Snapshots > should render correctly in theme selection mode 1`] = `
|
|
"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
│ │
|
|
│ > Select Theme Preview │
|
|
│ ▲ ┌─────────────────────────────────────────────────┐ │
|
|
│ ● 1. ANSI Dark (Matches terminal) │ │ │
|
|
│ 2. Atom One Dark │ 1 # function │ │
|
|
│ 3. Ayu Dark │ 2 def fibonacci(n): │ │
|
|
│ 4. Default Dark │ 3 a, b = 0, 1 │ │
|
|
│ 5. Dracula Dark │ 4 for _ in range(n): │ │
|
|
│ 6. GitHub Dark │ 5 a, b = b, a + b │ │
|
|
│ 7. Holiday Dark │ 6 return a │ │
|
|
│ 8. Shades Of Purple Dark │ │ │
|
|
│ 9. Solarized Dark │ 1 - print("Hello, " + name) │ │
|
|
│ 10. ANSI Light │ 1 + print(f"Hello, {name}!") │ │
|
|
│ 11. Ayu Light │ │ │
|
|
│ 12. Default Light └─────────────────────────────────────────────────┘ │
|
|
│ ▼ │
|
|
│ ╭─────────────────────────────────────────────────╮ │
|
|
│ │ DEVELOPER TOOLS (Not visible to users) │ │
|
|
│ │ │ │
|
|
│ │ How do colors get applied? │ │
|
|
│ │ • Hex: Rendered exactly by modern terminals. │ │
|
|
│ │ Not overridden by app themes. │ │
|
|
│ │ • Blank: Uses your terminal's default │ │
|
|
│ │ foreground/background. │ │
|
|
│ │ • Compatibility: On older terminals, hex is │ │
|
|
│ │ approximated to the nearest ANSI color. │ │
|
|
│ │ • ANSI Names: 'red', 'green', etc. are mapped │ │
|
|
│ │ to your terminal app's palette. │ │
|
|
│ │ │ │
|
|
│ │ Value Name │ │
|
|
│ │ #1E1E… backgroun Main terminal background │ │
|
|
│ │ d.primary color │ │
|
|
│ │ #313… backgroun Subtle background for │ │
|
|
│ │ d.message message blocks │ │
|
|
│ │ #313… backgroun Background for the input │ │
|
|
│ │ d.input prompt │ │
|
|
│ │ #39… background. Background highlight for │ │
|
|
│ │ focus selected/focused items │ │
|
|
│ │ #283… backgrou Background for added lines │ │
|
|
│ │ nd.diff. in diffs │ │
|
|
│ │ added │ │
|
|
│ │ #430… backgroun Background for removed │ │
|
|
│ │ d.diff.re lines in diffs │ │
|
|
│ │ moved │ │
|
|
│ │ (blank text.prim Primary text color (uses │ │
|
|
│ │ ) ary terminal default if blank) │ │
|
|
│ │ #6C7086 text.secon Secondary/dimmed text │ │
|
|
│ │ dary color │ │
|
|
│ │ #89B4FA text.link Hyperlink and highlighting │ │
|
|
│ │ color │ │
|
|
│ │ #CBA6F7 text.accen Accent color for │ │
|
|
│ │ t emphasis │ │
|
|
│ │ (blank) text.res Color for model response │ │
|
|
│ │ ponse text (uses terminal default │ │
|
|
│ │ if blank) │ │
|
|
│ │ #3d3f51 border.def Standard border color │ │
|
|
│ │ ault │ │
|
|
│ │ #6C7086ui.comme Color for code comments and │ │
|
|
│ │ nt metadata │ │
|
|
│ │ #6C708 ui.symbol Color for technical symbols │ │
|
|
│ │ 6 and UI icons │ │
|
|
│ │ #89B4F ui.active Border color for active or │ │
|
|
│ │ A running elements │ │
|
|
│ │ #3d3f5 ui.dark Deeply dimmed color for │ │
|
|
│ │ 1 subtle UI elements │ │
|
|
│ │ #A6E3A ui.focus Color for focused elements │ │
|
|
│ │ 1 (e.g. selected menu items, │ │
|
|
│ │ focused borders) │ │
|
|
│ │ #F38BA8status.err Color for error messages │ │
|
|
│ │ or and critical status │ │
|
|
│ │ #A6E3A1status.suc Color for success messages │ │
|
|
│ │ cess and positive status │ │
|
|
│ │ #F9E2A status.wa Color for warnings and │ │
|
|
│ │ F rning cautionary status │ │
|
|
│ │ #4796E4 ui.gradien │ │
|
|
│ │ #847ACE t │ │
|
|
│ │ #C3677F │ │
|
|
│ ╰─────────────────────────────────────────────────╯ │
|
|
│ │
|
|
│ (Use Enter to select, Tab to configure scope, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
"
|
|
`;
|