Comments (6)
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:
So yeah, I think an issue on YouTrack and / or a pull request would be our only option :)
from intellij-extra-icons-plugin.
Opened issue https://youtrack.jetbrains.com/issue/IDEA-239724
from intellij-extra-icons-plugin.
@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.
Implemented in ide201 branch. It works well, icons are overridden in VCS views (local changes, log).
from intellij-extra-icons-plugin.
Awesome! Thank you!
from intellij-extra-icons-plugin.
I will maintain and publish both master and ide201 branches, until IJ 2020.2 release.
from intellij-extra-icons-plugin.
Related Issues (20)
- Fix settings panels for Gateway HOT 1
- please keep icon clear after scale
- user icon scaling is blurry when > 1 HOT 13
- java.lang.Throwable: TreeUI should be accessed only from EDT HOT 3
- task: perf: caching mechanism for user icons HOT 1
- task: enrich settings UI's comboboxes/lists and tables
- java.lang.Throwable: TreeUI should be accessed only from EDT HOT 2
- Icon size issues HOT 4
- com.intellij.serviceContainer.AlreadyDisposedException: Cannot create com.intellij.ui.docking.DockManager because container is already disposed (container=Project(name=pythonProject, containerState=DISPOSE_COMPLETED, componentStore=/Users/adrian/Source/Repos/pythonProject) (disposed)) HOT 4
- task: use message bus in order to trigger icons and project views update
- com.intellij.serviceContainer.AlreadyDisposedException: Cannot create com.intellij.ui.docking.DockManager because container is already disposed (container=Project(name=bazar-development, containerState=DISPOSE_COMPLETED, componentStore=/Users/bazar.club/WebstormProjects/bazar-development) (disposed)) HOT 2
- can't change already displayed file icons HOT 3
- User Icons > Directory does not work HOT 4
- folder icon override is broken in Rider IDE HOT 3
- java.lang.Throwable: TreeUI should be accessed only from EDT HOT 2
- java.lang.Throwable: TreeUI should be accessed only from EDT HOT 1
- No prettier icon on mjs configs HOT 2
- java.lang.Throwable: Must be precomputed HOT 1
- Clicking "Go to Extra Icons settings" from the notification just throws an error HOT 1
- Please add some new ICONS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-extra-icons-plugin.