File tree Expand file tree Collapse file tree
packages/hub-ui/src/client/state Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import type { BrandingLogo, DevframeBranding } from '../../types'
33import { computed , ref } from 'vue'
44import { isDark } from './color-mode'
55
6+ type ColorSchemeValue = string | { light : string , dark : string }
7+
68/** Branding with defaults resolved — what the UI actually renders. */
79export interface ResolvedBranding {
810 productName : string
@@ -54,7 +56,7 @@ export function useBrandingBackground(): Ref<string | undefined> {
5456 return computed ( ( ) => resolveColorSchemeValue ( currentBranding . value . background , isDark . value ) )
5557}
5658
57- function resolveColorSchemeValue ( value : BrandingLogo | undefined , dark : boolean ) : string | undefined {
59+ function resolveColorSchemeValue ( value : ColorSchemeValue | undefined , dark : boolean ) : string | undefined {
5860 if ( ! value )
5961 return undefined
6062 if ( typeof value === 'string' )
You can’t perform that action at this time.
0 commit comments