02fa5f74db
Only attempt to get the line height if the display is a graphic one
...
So that the height calculation doesn't interfere with the startup of the Emacs
daemon, only try to calculate the height of the image when we're dealing with a
graphical display.
2020-09-20 11:38:48 -07:00
e29ab28992
Use a more accurate way to determine height for icons
...
Instead of trying to use the default text height of the current window (or some
other window), ask for the text height of the mode-line face. This should fix
the height when a theme changes the height of the mode-line text to a different
height than the default text height.
2020-09-12 20:33:24 -07:00
9eac12fe51
Use ‘window-default-font-height’, not ‘window-mode-line-height’
...
‘window-mode-line-height’ seems to also include the border around the mode-line,
which for the icons I think we generally don’t want to have happen.
A better option would be to use something that gets the font height specifically
in the mode-line, but right now I can’t think of a good way to get at this.
2020-09-09 23:45:37 -07:00
Dennis Mayr
56a0f9ed7f
Added Flutter icon
...
...so that its dedicated buffer doesn't look so boring.
2019-06-27 15:53:58 -04:00
Daniel Caixinha
b6ce4276ed
Add mode icons for Elixir and Erlang
...
Instead of using the ones from mfizz font (which are black and white),
this commit adds xpm icons for Elixir and Erlang.
Closes #72 .
2019-05-17 15:23:46 +01:00
Dennis Mayr
2051aac30e
Added Dart icon (xpm)
2019-04-13 15:18:39 -04:00
Dennis Mayr
da48a59da1
Modified C, C++ & C# icon types to xpm
2019-04-13 14:21:12 -04:00
Dennis Mayr
fe6d1d425a
Updated Commentary, included Rust
2019-04-12 17:58:45 -04:00
Dennis Mayr
5b903a1436
Added Rust icon definition
2019-04-12 17:57:46 -04:00
Dennis Mayr
8e48c51612
Renamed major-mode buffer name from "React" to "RJSX"
2019-04-11 20:36:36 -04:00
Dennis Mayr
8956bc75fa
Added ("\\`React\\'" "react" xpm) definition
2019-04-11 20:11:28 -04:00
Fidler
26138d825c
Remove flycheck for now. See #61
2018-09-10 10:04:05 -05:00
Connor Prussin
f5caf3134f
Add smartparens icon
2018-08-05 19:58:22 -07:00
Connor Prussin
344c35d934
Add flycheck icon
2018-08-05 19:39:00 -07:00
Theldoria
4a2d2bcdcf
Added Lua logo
2017-02-15 09:56:27 +01:00
Terje Larsen
7280f4b92b
Support EnhRuby mode
...
For those using `enh-ruby-mode` instead of `ruby-mode`.
2017-01-31 15:30:43 +01:00
Fidler
1b9e073c69
Add ivy-mode icon
2017-01-16 14:29:44 -06:00
Fidler
d6df901acc
Make #48 more general
2017-01-12 10:43:26 -06:00
kissge
2f364dfae6
Change emojify-image-dir from variable to function
...
See 19b9bae79f
2017-01-12 14:23:17 +09:00
kissge
4d333f3c5d
Fix typo
2017-01-10 22:08:58 +09:00
kissge
cc0e6f241c
Fix the wrong color replacement problem in xpm images
...
With specific color combinations, some of the colors could be replaced twice.
This commit avoids that problem.
2017-01-10 22:08:39 +09:00
lanzhiheng
7baa6eb507
Add emmet icon
2016-11-19 10:55:59 +08:00
Dave Houston
b377cd9151
Update mode-icons.el
...
Fix the Clojure icon being off by one
2016-08-07 10:50:27 +01:00
Matthew L. Fidler
2e799a5d7b
Add some shell icons
...
- Added function-based matching.
- Currently everything should be cached, except for things where
function matching occurs. (may need some expansion)
- Should address Issue #36
2016-08-05 12:59:29 -05:00
Matthew L. Fidler
a31a43b90a
Add org-agenda icon
2016-08-05 10:20:24 -05:00
Matthew L. Fidler
5176a7fe46
Allow gimp process to be killed without user intevention
2016-08-05 09:20:40 -05:00
Matthew L. Fidler
19d5d68ecd
Add option mode-icons-line-height-adjust.
...
Can help with Issue #35
2016-08-05 08:59:57 -05:00
Matthew L. Fidler
48f8fd04bc
Don't require window-mode-line-height.
...
Addresses Issue #38
2016-08-05 08:50:28 -05:00
Matthew L. Fidler
d02cbbddcb
Allow a default Icon
...
- This is done by `mode-icons-use-default-icon'.
- This should fix Issue #34
2016-07-12 00:43:14 -05:00
Matthew L. Fidler
e380c293e5
Fix font icons that are missing fonts.
...
They need to match the xpm specifications
2016-05-31 19:08:44 -05:00
Matthew Fidler
878dee0dae
Allow foreground and background to be nil.
...
This allows faces to return nil when looking at either their foreground
or background colors. mode-icons will look for the specified face,
the mode-line face, the default face and if none of then have a
background or foreground assume either black (foreground) or
white (background).
This should fix the issue reported here:
https://github.com/mattfidler/tabbar-ruler.el/issues/38
2016-05-09 09:07:12 -05:00
Matthew Fidler
7ed6f6b479
Merge pull request #31 from CodeFalling/add-emoji-icon
...
add icon for spacemacs emoji layer
2016-05-01 22:34:55 -05:00
Matthew Fidler
a3eb0d083a
Remove advice. May cause slow-down.
...
See Issue #29 and #30 , perhaps also the tabbar-ruler issue:
https://github.com/mattfidler/tabbar-ruler.el/issues/37
2016-05-01 22:24:51 -05:00
codefalling
04011e199b
add icon for spacemacs emoji layer
2016-05-02 10:57:49 +08:00
Matthew Fidler
6ad9b3ca87
Merge branch 'master' of github.com:ryuslash/mode-icons
2016-04-29 00:10:36 -05:00
Matthew Fidler
4a089aa41d
Update icons after executing a command.
...
There should be no lag when activating a minor mode.
2016-04-28 23:33:33 -05:00
Matthew Fidler
fcbc6b47bc
Add isearch-mode icon
2016-04-28 23:30:39 -05:00
Matthew Fidler
7c28163776
Fix powerline-raw to recolor images.
...
Fix mode-icons--recolor-string to handle composed font glyphs
2016-04-28 23:20:47 -05:00
codefalling
82f9cc9c32
add markdown support for spacemacs
...
spacemacs markdown layer use `GFM` instead of `Markdown`
2016-04-28 11:05:06 +08:00
Matthew Fidler
fa239e6ad8
Add a convert all png to xpm function
2016-04-26 12:30:12 -05:00
codefalling
adad9e8fa4
add spacemacs icon for spacemacs home
2016-04-26 22:55:32 +08:00
37581ed911
Bump version
2016-04-25 11:25:26 +02:00
Matthew Fidler
eaf93f52d3
Add automatic font setup
2016-04-21 08:57:05 -05:00
Matthew Fidler
f73550e9bf
Fix some byte-compiler warnings
2016-04-21 08:25:17 -05:00
Matthew Fidler
7a12fb28d2
Save buffer state more often
2016-04-21 08:20:36 -05:00
Matthew Fidler
46b2659225
Fix icon-spec for minor-modes
2016-04-21 08:11:16 -05:00
Matthew Fidler
9241db6f21
Fix some calls to mode-icons-propertize-mode
...
Should Fix Issue #26
2016-04-21 08:08:23 -05:00
Matthew Fidler
6ba8b2ba36
Add auto-indent icon
2016-04-19 08:39:54 -05:00
Matthew Fidler
f03ae96e95
Fix image call by adding data argument
...
-Also make sure image type is specified
2016-04-13 13:59:03 -05:00
Matthew Fidler
3d9d4c5a63
Add :height property to images
...
This allows rescaling with imagemagick.
2016-04-13 11:31:56 -05:00