File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
apps/desktop/src/components/FileTree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ function FileNode({
347347 < div style = { { flex : 1 } } >
348348 { node . data ?. kind === 'dir' ? (
349349 < i
350- className = { `${ node . isOpen ? 'ri-folder-5-line ' : 'ri-folder-3-line ' } file-icon` }
350+ className = { `${ node . isOpen ? 'ri-folder-5-fill ' : 'ri-folder-3-fill ' } file-icon` }
351351 />
352352 ) : (
353353 < i className = { `${ getFileIconClass ( node . data ) } file-icon` } />
@@ -423,8 +423,9 @@ function FileNode({
423423export default FileNode
424424
425425const extFileIconClassMap : Record < string , string > = {
426- md : 'ri-markdown-fill' ,
427- markdown : 'ri-markdown-fill' ,
426+ md : 'ri-markdown-line' ,
427+ markdown : 'ri-markdown-line' ,
428+ json : 'ri-file-code-line' ,
428429}
429430
430431const getFileIconClass = ( file : IFile ) => {
@@ -433,5 +434,5 @@ const getFileIconClass = (file: IFile) => {
433434 return extFileIconClassMap [ ext ]
434435 }
435436
436- return 'ri-file-text-fill '
437+ return 'ri-file-line '
437438}
Original file line number Diff line number Diff line change @@ -16,19 +16,19 @@ export const NodeContainer = styled.div<NodeContainerProps>`
1616 color: ${ ( props ) =>
1717 props . highlight || props . selected
1818 ? props . theme . primaryFontColor
19- : props . theme . primaryFontColor } ;
19+ : props . theme . unselectedFontColor } ;
2020 background-color: ${ ( props ) =>
2121 props . highlight
2222 ? props . theme . accentColorFocused
2323 : props . selected
2424 ? props . theme . fileTreeSelectedBgColor
2525 : 'transparent' } ;
26- border: 1px solid
27- ${ ( props ) => ( props . selected ? props . theme . borderColorFocused : 'transparent' ) } ;
26+ border: 1px solid ${ ( props ) => ( props . selected ? props . theme . borderColorFocused : 'transparent' ) } ;
2827 box-sizing: border-box;
2928
3029 &:hover {
3130 background-color: ${ ( props ) => props . theme . fileTreeSelectedBgColor } ;
31+ color: ${ ( props ) => props . theme . primaryFontColor } ;
3232 }
3333
3434 .file-icon {
You can’t perform that action at this time.
0 commit comments