GithubHelp home page GithubHelp logo

Comments (6)

Sheigutn avatar Sheigutn commented on May 18, 2024 1

Unfortunately I don't think this is possible considering the FileChooserDescriptor#getIcon in RepositoryBrowserPanel doesn't call the IconProvider, only FileType.getIcon() of the FileType it finds: https://github.com/JetBrains/intellij-community/blob/master/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/RepositoryBrowser.kt#L80

A pull request to IntelliJ with this code replacing the method body would probably make it work (not totally sure though):

return IconUtil.getIcon(file, 0, project)

Edit: I just tested it by force returning this value while debugging the plugin and setting a breakpoint at that specific FileChooserDescriptor#getIcon, and it does indeed work:
image
So yeah, I think an issue on YouTrack and / or a pull request would be our only option :)

from intellij-extra-icons-plugin.

jonathanlermitage avatar jonathanlermitage commented on May 18, 2024

Opened issue https://youtrack.jetbrains.com/issue/IDEA-239724

from intellij-extra-icons-plugin.

jonathanlermitage avatar jonathanlermitage commented on May 18, 2024

@naftalmm @Sheigutn Good news! We should be able to customize icons by implementing FilePathIconProvider.
Unfortunately, this class has been introduced with IJ 2020.1, and I don't want to drop support for users who stick to IJ 2019. I think I will wait IJ 2020.2 release, then update minimal IJ version to 2020.1.

from intellij-extra-icons-plugin.

jonathanlermitage avatar jonathanlermitage commented on May 18, 2024

Implemented in ide201 branch. It works well, icons are overridden in VCS views (local changes, log).

from intellij-extra-icons-plugin.

naftalmm avatar naftalmm commented on May 18, 2024

Awesome! Thank you!

from intellij-extra-icons-plugin.

jonathanlermitage avatar jonathanlermitage commented on May 18, 2024

I will maintain and publish both master and ide201 branches, until IJ 2020.2 release.

from intellij-extra-icons-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.