Change file browser icons and style

I only have one problem. I am able to change the Icons but the folder icons are not working in some specific cases. For example this one:
Screenshot of JupyterLab

I have modified the default icons as is shown in the example you share with me:


var doc = app.docRegistry


    //the rest of the icons
    var itFileTypes = doc.fileTypes()
    var fileIcon = itFileTypes.next()
    
    while (fileIcon != undefined) {

      switch (fileIcon.name){
        case 'directory':
          var Icon = fileIcon.icon as LabIcon
          Icon.svgstr = FOLDER_SVG
          break
        case 'notebook':
          var Icon = fileIcon.icon as LabIcon
          Icon.svgstr = NOTEBOOK_SVG
          break
      }

Should I modify that icon in another way?