mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-26 01:01:40 +00:00
feat: add skin logo support
This commit is contained in:
parent
af077b2c0d
commit
ebd2d83ef2
6 changed files with 108 additions and 13 deletions
|
|
@ -30,6 +30,8 @@ export interface ThemeBrand {
|
|||
export interface Theme {
|
||||
color: ThemeColors
|
||||
brand: ThemeBrand
|
||||
bannerLogo: string
|
||||
bannerHero: string
|
||||
}
|
||||
|
||||
export const DEFAULT_THEME: Theme = {
|
||||
|
|
@ -60,10 +62,18 @@ export const DEFAULT_THEME: Theme = {
|
|||
welcome: 'Type your message or /help for commands.',
|
||||
goodbye: 'Goodbye! ⚕',
|
||||
tool: '┊'
|
||||
}
|
||||
},
|
||||
|
||||
bannerLogo: '',
|
||||
bannerHero: ''
|
||||
}
|
||||
|
||||
export function fromSkin(colors: Record<string, string>, branding: Record<string, string>): Theme {
|
||||
export function fromSkin(
|
||||
colors: Record<string, string>,
|
||||
branding: Record<string, string>,
|
||||
bannerLogo = '',
|
||||
bannerHero = ''
|
||||
): Theme {
|
||||
const d = DEFAULT_THEME
|
||||
const c = (k: string) => colors[k]
|
||||
|
||||
|
|
@ -95,6 +105,9 @@ export function fromSkin(colors: Record<string, string>, branding: Record<string
|
|||
welcome: branding.welcome ?? d.brand.welcome,
|
||||
goodbye: branding.goodbye ?? d.brand.goodbye,
|
||||
tool: d.brand.tool
|
||||
}
|
||||
},
|
||||
|
||||
bannerLogo,
|
||||
bannerHero
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue