@@ -73,18 +73,18 @@ function getCurrentThemePaths(themeName: string): vscode.Uri | undefined {
7373 }
7474}
7575
76- export function getIconForeground ( themeData : ThemeData , kind : 'light' | 'dark' ) : string {
77- return ( themeData . colors ? themeData . colors [ 'icon.foreground' ] : undefined ) ?? ( kind === 'dark' ? '#C5C5C5' : '#424242' ) ;
76+ export function getIconForeground ( themeData : ThemeData | undefined , kind : 'light' | 'dark' ) : string {
77+ return ( themeData ? .colors ? themeData . colors [ 'icon.foreground' ] : undefined ) ?? ( kind === 'dark' ? '#C5C5C5' : '#424242' ) ;
7878}
7979
80- export function getListWarningForeground ( themeData : ThemeData , kind : 'light' | 'dark' ) : string {
81- return ( themeData . colors ? themeData . colors [ 'list.warningForeground' ] : undefined ) ?? ( kind === 'dark' ? '#CCA700' : '#855F00' ) ;
80+ export function getListWarningForeground ( themeData : ThemeData | undefined , kind : 'light' | 'dark' ) : string {
81+ return ( themeData ? .colors ? themeData . colors [ 'list.warningForeground' ] : undefined ) ?? ( kind === 'dark' ? '#CCA700' : '#855F00' ) ;
8282}
8383
84- export function getListErrorForeground ( themeData : ThemeData , kind : 'light' | 'dark' ) : string {
85- return ( themeData . colors ? themeData . colors [ 'list.errorForeground' ] : undefined ) ?? ( kind === 'dark' ? '#F88070' : '#B01011' ) ;
84+ export function getListErrorForeground ( themeData : ThemeData | undefined , kind : 'light' | 'dark' ) : string {
85+ return ( themeData ? .colors ? themeData . colors [ 'list.errorForeground' ] : undefined ) ?? ( kind === 'dark' ? '#F88070' : '#B01011' ) ;
8686}
8787
88- export function getNotebookStatusSuccessIconForeground ( themeData : ThemeData , kind : 'light' | 'dark' ) : string {
89- return ( themeData . colors ? themeData . colors [ 'notebookStatusSuccessIcon.foreground' ] : undefined ) ?? ( kind === 'dark' ? '#89D185' : '#388A34' ) ;
88+ export function getNotebookStatusSuccessIconForeground ( themeData : ThemeData | undefined , kind : 'light' | 'dark' ) : string {
89+ return ( themeData ? .colors ? themeData . colors [ 'notebookStatusSuccessIcon.foreground' ] : undefined ) ?? ( kind === 'dark' ? '#89D185' : '#388A34' ) ;
9090}
0 commit comments