MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getLogoBlockColor

Function getLogoBlockColor

cli/src/utils/theme-system.ts:83–92  ·  view source on GitHub ↗
(
  themeName: ThemeName,
  env: CliEnv = getCliEnv(),
)

Source from the content-addressed store, hash-verified

81 * In light mode: black (#000000 or 'black')
82 */
83export function getLogoBlockColor(
84 themeName: ThemeName,
85 env: CliEnv = getCliEnv(),
86): string {
87 const isTruecolor = supportsTruecolor(env)
88 if (themeName === 'dark') {
89 return isTruecolor ? '#ffffff' : 'white'
90 }
91 return isTruecolor ? '#000000' : 'black'
92}
93
94/**
95 * Get the accent color for the logo based on theme and terminal capabilities.

Callers 5

AppFunction · 0.90
LoginModalFunction · 0.90
ProjectPickerScreenFunction · 0.90
FreebuffSupersededScreenFunction · 0.90
WaitingRoomScreenFunction · 0.90

Calls 2

getCliEnvFunction · 0.90
supportsTruecolorFunction · 0.85

Tested by

no test coverage detected