Closed jccguimaraes closed 7 years ago
I have the same issue again, 'devicons' as a font is loaded from another plugin in my case from toolbar. And sadly there are two diffrent devicons out there, my first idea would be to prefix our devicons font as file to prevent overriding and then also change the font name with the same prefix.
Hope this helps you, and keep up the great work π
this is awesome! Thanks. Let's pick each other's brain on this
Preferable, we ditch the iconfonts in favor of SVG generally since we can have the advantage of electrons crossplatform consistant enviroment.
The main advantages are
The possible downside would be
But generally it only has advantages, we can even get the src icons of devicons which are SVGs already, same applies to octicons btw.
I'll try to provide a prototype implementation on my fork in the next days. π¨
cool work!
just one quick note, can we take them without breaking their license?
MIT, we have to credit them and add a copy of the license which should not be a problem. Same for octicons ;)
@Hammster any updates on this ? :)
@jccguimaraes jep, i am working on the changes just had to do it in small bits. I hope i'll be done in the next days. Also the icons look sharper, I can give you a screenshot tomorrow.
Also thanks for the link, this was a issue on my Todo π
Just to let you know, that while I have this issue too, it only happens in Atom Beta (1.17.0-beta5), and not in the stable channelβ¦
@ninthart could you tell me the plugins you use? on stable and beta
@Hammster Sure. It's the same on both:
Community Packages (132) /Users/bradbrooks/.atom/packages βββ Altered@1.0.1 βββ atom-autocomplete-php@0.22.2 βββ atom-beautify@0.29.24 βββ atom-bootstrap4@1.4.0 βββ atom-commander@0.9.0 βββ atom-css-comb@3.1.0 βββ atom-fix-path@0.1.0 βββ atom-html-preview@0.1.22 βββ atom-image-resize@0.3.0 βββ atom-message-panel-service@0.0.1-1 βββ atom-minify@0.8.0 βββ atom-shortcuts@0.0.2 βββ atom-slack-snippets@0.2.0 βββ atom-ternjs@0.18.3 βββ atom-trello@0.7.1 βββ atom-zurb-foundation@2.0.0 βββ atomizr@0.23.1 βββ autocomplete-emojis@2.5.0 βββ autocomplete-font-awesome@0.1.0 βββ autocomplete-html-entities@0.1.0 βββ autocomplete-modules@1.6.10 βββ autocomplete-nunjucks@0.5.0 βββ autocomplete-paths@1.0.5 βββ autocomplete-project-paths@2.2.0 βββ autocomplete-wordpress-hooks@0.2.2 βββ autoprefixer@3.7.0 βββ browser-plus@0.0.87 βββ browser-refresh@0.9.0 βββ build@0.67.0 βββ build-grunt@0.4.0 βββ busy@0.7.0 βββ busy-signal@1.4.1 βββ caniuse-css@1.1.5 βββ chrome-color-picker@0.8.0 βββ clone-cursor@1.1.2 βββ color-picker@2.2.5 βββ config-import-export@0.3.1 βββ csslint@1.1.5 βββ csstree-validator@0.0.12 βββ dash@1.7.1 βββ data-atom@0.25.1 βββ docblockr@0.9.4 βββ emmet@2.4.3 βββ emmet-snippets-compatibility@1.0.6 βββ expose@0.14.0 βββ file-icons@2.1.5 βββ filecolor@0.4.0 βββ flexbox-snippets@0.3.0 βββ git-control@0.9.0 βββ git-plus@7.8.0 βββ git-time-machine@1.5.9 βββ grunt-runner@0.14.0 βββ highlight-column@0.5.2 βββ highlight-selected@0.13.1 βββ hosts-edit@1.0.0 βββ html-entities@0.4.0 βββ imagemin@1.5.1 βββ improved-autocomplete-php@1.1.1 βββ intentions@1.1.2 βββ language-jsont@0.3.0 βββ language-markdown@0.22.0 βββ language-nunjucks@4.1.0 βββ language-postcss@1.3.1 βββ language-pug@0.0.21 βββ language-sql-mysql@0.3.1 βββ language-svg@0.9.2 βββ less-than-slash@0.16.0 βββ linter@2.1.4 βββ linter-csslint@1.3.4 βββ linter-htmlhint@1.3.3 βββ linter-jshint@3.1.2 βββ linter-jsonlint@1.3.0 βββ linter-markdown@4.0.1 βββ linter-php@1.3.2 βββ linter-phpmd@1.5.3 βββ linter-pug@1.3.1 βββ linter-scss-lint@3.1.0 βββ linter-stylelint@3.10.0 βββ linter-tidy@2.3.1 βββ linter-ui-default@1.2.4 βββ lipsum@0.1.0 βββ livestyle-atom@0.2.9 βββ markdown-preview-enhanced@0.12.3 βββ markdown-preview-plus@2.4.9 βββ markdown-toolbar@0.1.2 βββ markdown-writer@2.6.5 βββ merge-conflicts@1.4.4 βββ minimap@4.28.2 βββ minimap-bookmarks@0.4.2 βββ minimap-codeglance@0.4.6 βββ minimap-cursorline@0.2.0 βββ minimap-find-and-replace@4.5.2 βββ minimap-highlight-selected@4.6.1 βββ minimap-linter@2.0.0 βββ minimap-pigments@0.2.2 βββ minimap-selection@4.4.0 βββ minimap-split-diff@0.3.7 βββ monokai-php-css-syntax@0.2.2 βββ navigate@0.1.17 βββ open-in-browser@0.5.0 βββ php-cs-fixer@4.1.0 βββ pigments@0.39.1 βββ platformio-ide-terminal@2.5.0 βββ project-viewer@1.0.14 βββ quick-editor@0.4.3 βββ scratch@1.2.0 βββ script@3.14.1 βββ simple-drag-drop-text@0.3.4 βββ snippet-generator@0.3.2 βββ source-preview@0.5.0 βββ source-preview-pug@0.2.0 βββ source-preview-sass@0.1.6 βββ split-diff@1.3.1 βββ stylefmt@4.1.1 βββ svg-preview@0.11.0 βββ svgo@2.8.5 βββ sync-settings@0.8.1 βββ toggle-quotes@1.0.1 βββ tool-bar@1.1.0 βββ tool-bar-almighty@0.8.2 βββ transform@0.4.0 βββ tree-view-autoresize@1.6.0 βββ tree-view-copy-relative-path@1.1.0 βββ tree-view-git-branch@0.1.2 βββ tree-view-git-status@1.3.1 βββ tree-view-open-files@0.3.0 βββ twilight-updated-ninthart-syntax@0.5.3 βββ twilight-updated-syntax@0.5.5 βββ wordcount@2.10.4 βββ wordpress-api@1.2.2 βββ wordpress-dictionary@4.4.0 βββ xeta-syntax@0.5.0
Git Packages (1) /Users/bradbrooks/.atom/packages βββ emmet-atom-plugin@0.0.1 (emmetio/atom-plugin#45a43c4b)
Thx for the fast reply, i hope after the icon system rewrite this will no longer happen. btw @jccguimaraes current state is that i still need to fix some things on mac and linux but it works on windows.
I will give you some insight once i am home
Some of my colleagues have had this happen over the last few months and it just happened to me after Atom updated to 1.17. Once gone, we haven't found a way to get them back, even after wiping out all traces of Atom and re-installing.
Somehow the styling is disappearing. In the below image, the icon
works but the devicon
does not. It's missing the css ::before
for displaying the image altogether.
The stylesheet project-viewer.less
is loading and it contains all the .devicons
styles, but for some reason they're not being used and this is instead:
I searched .atom for BlinkMacSystemFont
and only found it as part of linter-ui-default
, and the compile-cache
folder for project-viewer. I have been unable to find where that's being pulled from and included in the less and style-manager compile caches.
FIX: Just move the inline import of devicons (line 199) outside the class .pv-has-icons and to the top (line 3)
File: atom-project-viewer/styles/project-viewer.less
Line199: @import (inline) "../node_modules/devicons/css/devicons.min.css";
see commit: 18b8bb44648df15951c68837f89a47ad64c94296
:scream:
ISSUE
devicons not showing
Environment
Steps
Can't reproduce, just that some people don't have the devicons properly rendered