Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[icon themes] Hide sidebar's Tree View/Explorer arrows #25655

Closed
ajitid opened this issue Apr 28, 2017 · 16 comments
Closed

[icon themes] Hide sidebar's Tree View/Explorer arrows #25655

ajitid opened this issue Apr 28, 2017 · 16 comments
Assignees
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@ajitid
Copy link
Contributor

ajitid commented Apr 28, 2017

capdture
As opened and closed folders can have different icons, the arrows should be given as an optional to get a minimalistic workbench theming (say for themes like Material Theme from Mattia Astorino or Nord theme)

@bpasero bpasero added file-explorer Explorer widget issues feature-request Request for new features or functionality labels Apr 29, 2017
@bpasero bpasero removed their assignment Apr 29, 2017
@aeschli aeschli added this to the Backlog milestone May 2, 2017
@aeschli aeschli changed the title Hide sidebar's Tree View/Explorer arrows [icon themes] Hide sidebar's Tree View/Explorer arrows May 2, 2017
@equinusocio
Copy link

equinusocio commented Jun 3, 2017

Any update? i think this can be more easily a workbench setting to show/hide the arrow.

@equinusocio
Copy link

News? :)

@aeschli
Copy link
Contributor

aeschli commented Jul 3, 2017

It would have to be part of the file icon theme to specify that (not a workbench preference)
But I currently have no time to implement it. PR are welcome. It new setting would be added to https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/themes/common/workbenchThemeService.ts#L48 and used by the file explorer.

@equinusocio
Copy link

equinusocio commented Sep 29, 2017

+1

@aeschli
Copy link
Contributor

aeschli commented Oct 12, 2017

Thanks for the PR, @tam5!

@equinusocio
Copy link

@tam5 Thank you.

@equinusocio
Copy link

@aeschli When will this PR be shipped with the insiders build?

@aeschli
Copy link
Contributor

aeschli commented Oct 13, 2017

Yes, it's already in the latest insiders.

@equinusocio
Copy link

@aeschli Sorry, I can't figure how to hide these arrows. There is not a setting called hidesExplorerArrows

@aeschli
Copy link
Contributor

aeschli commented Oct 13, 2017

@equinusocio It's a new property for file icon themes. The built-in file icon themes aren't using it, but to try it out, add "hidesExplorerArrows":"true" to the top level of the minimal file icon theme

@equinusocio
Copy link

equinusocio commented Oct 13, 2017

@aeschli Thank you. I tried on my icon theme but it doesn't work.

{
   "hidesExplorerArrows": "true",
   "iconDefinitions":{
      "_folder_dark":{
         "iconPath":"./icons/folder.svg"
      }
   },
   "fileExtensions":{
      "cmd":"_file_cmd",
      "mustache":"_file_mustache",
      "rails":"_file_rails"
   },
   "fileNames":{
      "gruntfile.js":"_file_grunt"
   },
   "file":"_file_dark",
   "folder":"_folder_dark",
   "folderExpanded":"_folder_open",
   "folderNames":{
      "node_modules":"_file_nodejs",
      ".git":"_file_git",
      ".github":"_file_github",
      ".gulp":"_file_gulp",
      "bower_components":"_file_bower"
   }
 
}

EDIT it worked with "hidesExplorerArrows": true

@equinusocio
Copy link

equinusocio commented Oct 13, 2017

@aeschli Consider to use visibility: hidden instead of display: none to keep the same space for nested folders/files.
screen-shot-2017-10-13-at-15 58 18

@tam5
Copy link
Contributor

tam5 commented Oct 15, 2017

@aeschli @equinusocio I went back and forth on that as you can even see on the PR. Not sure there is a right or wrong answer, we'll just have to wait until more customization is available for the sidebar (i.e. padding) so everyone can decide for themselves.

@aeschli
Copy link
Contributor

aeschli commented Oct 16, 2017

@equinusocio Sorry, I mistyped, it has to be "hidesExplorerArrows":true (no quotes around `true')

@aeschli
Copy link
Contributor

aeschli commented Nov 1, 2017

To verify: Install an icon theme e.g. https://marketplace.visualstudio.com/items?itemName=gebilaoxiong.vscode-flatland-icon-theme. In the extensions folder find the extension and its icon theme file and add "hidesExplorerArrows":true

@equinusocio
Copy link

This works on Material Theme.

@roblourens roblourens added the verified Verification succeeded label Nov 1, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants