MiroHibler / sublime-keymaps

Find a keymap for... and show all enabled keymaps in a Cheat Sheet.
143 stars 9 forks source link

Request: Larger font size #16

Open skoskie opened 10 years ago

skoskie commented 10 years ago

First, thanks for the plugin. It's great!

Second, I can barely see the keymaps because of the font size. It's a little clearer on a retina display, but on a display with lower resolution, it's pretty difficult to make out the characters. Here's how it looks on a Thunderbolt display:

screen shot 2014-02-27 at 10 36 32 am

MiroHibler commented 10 years ago

Hi Shelton!

I'm glad you like it :)

The layout (fonts, colors,...) is controlled by a theme.

Take a look here for a hint on how to customize it.

Miro

MiroHibler commented 9 years ago

Did you fix it?

skoskie commented 9 years ago

Thanks for the follow-up. For now I've just disabled it. I've also realized this isn't a font size issue, it's a font issue.

For some reason, other plugins display with a sans serif font, but this one displays in monospaced, which seems to be the issue. For instance, the CDNJS plugin also uses a second line of text, but look at the difference in clarity:

screen shot 2015-04-13 at 10 06 23 pm

And, of course, this same style is used for keymaps shown on a single line as well:

screen shot 2015-04-13 at 10 34 24 pm

Look at the symbol in that screenshot vs. the original screenshot. Huge difference.

It fully makes sense for this to be a theme issue, but I haven't made any changes to my theme recently, and I'm not having this issue with other plugins. I'm not sure what could be causing it.

ghost commented 8 years ago

@eightygrit You're right, this plugin uses a monospace font and that's the problem with the small symbols.

A quick hack is to open Keymaps.py from the package and on line 571 change from

window.show_quick_panel(self.panel_items, self.runcommand, sublime.MONOSPACE_FONT)

to

window.show_quick_panel(self.panel_items, self.runcommand)

This will use ST's default font.