mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-01 15:34:29 -07:00
c5ad0abb5d
Co-authored-by: Coco Sheng <cocosheng@google.com>
203 lines
23 KiB
Plaintext
203 lines
23 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 (Matches terminal) │ 3 a, b = 0, 1 │ │
|
|
│ 5. Dracula Dark │ 4 for _ in range(n): │ │
|
|
│ 6. GitHub Dark │ 5 a, b = b, a + b │ │
|
|
│ 7. GitHub Dark Colorblind Dark │ 6 return a │ │
|
|
│ 8. Holiday Dark │ │ │
|
|
│ 9. Shades Of Purple Dark │ 1 - print("Hello, " + name) │ │
|
|
│ 10. Solarized Dark │ 1 + print(f"Hello, {name}!") │ │
|
|
│ 11. Tokyo Night Dark │ │ │
|
|
│ 12. ANSI Light └─────────────────────────────────────────────────┘ │
|
|
│ ▼ │
|
|
│ │
|
|
│ (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. GitHub Light Colorblind Light (Mat… │ 4 for _ in range(n): │ │
|
|
│ 6. Google Code Light │ 5 a, b = b, a + b │ │
|
|
│ 7. Solarized Light │ 6 return a │ │
|
|
│ 8. Xcode Light │ │ │
|
|
│ 9. ANSI Dark (Incompatible) │ 1 - print("Hello, " + name) │ │
|
|
│ 10. Atom One Dark (Incompatible) │ 1 + print(f"Hello, {name}!") │ │
|
|
│ 11. Ayu Dark (Incompatible) │ │ │
|
|
│ 12. Default Dark (Incompatible) └─────────────────────────────────────────────────┘ │
|
|
│ ▼ │
|
|
│ │
|
|
│ (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 (Matches terminal) │ 3 a, b = 0, 1 │ │
|
|
│ 5. Dracula Dark │ 4 for _ in range(n): │ │
|
|
│ 6. GitHub Dark │ 5 a, b = b, a + b │ │
|
|
│ 7. GitHub Dark Colorblind Dark │ 6 return a │ │
|
|
│ 8. Holiday Dark │ │ │
|
|
│ 9. Shades Of Purple Dark │ 1 - print("Hello, " + name) │ │
|
|
│ 10. Solarized Dark │ 1 + print(f"Hello, {name}!") │ │
|
|
│ 11. Tokyo Night Dark │ │ │
|
|
│ 12. ANSI Light └─────────────────────────────────────────────────┘ │
|
|
│ ▼ │
|
|
│ │
|
|
│ (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 (isDevelopment: false) 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. GitHub Dark Colorblind Dark │ 6 return a │ │
|
|
│ 8. Holiday Dark │ │ │
|
|
│ 9. Shades Of Purple Dark │ 1 - print("Hello, " + name) │ │
|
|
│ 10. Solarized Dark │ 1 + print(f"Hello, {name}!") │ │
|
|
│ 11. Tokyo Night Dark │ │ │
|
|
│ 12. ANSI Light └─────────────────────────────────────────────────┘ │
|
|
│ ▼ │
|
|
│ │
|
|
│ (Use Enter to select, Tab to configure scope, Esc to close) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
"
|
|
`;
|
|
|
|
exports[`ThemeDialog Snapshots > should render correctly in theme selection mode (isDevelopment: true) 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. GitHub Dark Colorblind Dark │ 6 return a │ │
|
|
│ 8. Holiday Dark │ │ │
|
|
│ 9. Shades Of Purple Dark │ 1 - print("Hello, " + name) │ │
|
|
│ 10. Solarized Dark │ 1 + print(f"Hello, {name}!") │ │
|
|
│ 11. Tokyo Night Dark │ │ │
|
|
│ 12. ANSI 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 │ │
|
|
│ │ #0000… backgroun Main terminal background │ │
|
|
│ │ d.primary color │ │
|
|
│ │ #5F5… backgroun Subtle background for │ │
|
|
│ │ d.message message blocks │ │
|
|
│ │ #5F5… backgroun Background for the input │ │
|
|
│ │ d.input prompt │ │
|
|
│ │ #00… background. Background highlight for │ │
|
|
│ │ focus selected/focused items │ │
|
|
│ │ #005… backgrou Background for added lines │ │
|
|
│ │ nd.diff. in diffs │ │
|
|
│ │ added │ │
|
|
│ │ #5F0… backgroun Background for removed │ │
|
|
│ │ d.diff.re lines in diffs │ │
|
|
│ │ moved │ │
|
|
│ │ #FFFFF text.prim Primary text color (uses │ │
|
|
│ │ F ary terminal default if blank) │ │
|
|
│ │ #AFAFAF text.secon Secondary/dimmed text │ │
|
|
│ │ dary color │ │
|
|
│ │ #87AFFF text.link Hyperlink and highlighting │ │
|
|
│ │ color │ │
|
|
│ │ #D7AFFF text.accen Accent color for │ │
|
|
│ │ t emphasis │ │
|
|
│ │ #FFFFFF text.res Color for model response │ │
|
|
│ │ ponse text (uses terminal default │ │
|
|
│ │ if blank) │ │
|
|
│ │ #878787 border.def Standard border color │ │
|
|
│ │ ault │ │
|
|
│ │ #AFAFAFui.comme Color for code comments and │ │
|
|
│ │ nt metadata │ │
|
|
│ │ #AFAFA ui.symbol Color for technical symbols │ │
|
|
│ │ F and UI icons │ │
|
|
│ │ #87AFF ui.active Border color for active or │ │
|
|
│ │ F running elements │ │
|
|
│ │ #87878 ui.dark Deeply dimmed color for │ │
|
|
│ │ 7 subtle UI elements │ │
|
|
│ │ #D7FFD ui.focus Color for focused elements │ │
|
|
│ │ 7 (e.g. selected menu items, │ │
|
|
│ │ focused borders) │ │
|
|
│ │ #FF87AFstatus.err Color for error messages │ │
|
|
│ │ or and critical status │ │
|
|
│ │ #D7FFD7status.suc Color for success messages │ │
|
|
│ │ cess and positive status │ │
|
|
│ │ #FFFFA 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) │
|
|
│ │
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
"
|
|
`;
|