Skip to content

Commit

Permalink
lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
iRyusa authored and groteworld committed Apr 11, 2017
1 parent c095ff0 commit e59d5d3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion SublimeLinter.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"javascript (babel)": "javascript",
"php": "html"
},
"tooltip_fontsize": 16,
"tooltip_fontsize": "1rem",
"tooltip_theme": "Packages/SublimeLinter/tooltip-themes/Default/Default.tooltip-theme",
"tooltip_theme_excludes": [],
"warning_color": "DDB700",
Expand Down
1 change: 1 addition & 0 deletions commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ def transform_setting(self, setting, matching=False):
else:
return setting


@choose_setting_command('tooltip_theme', preview=True)
class SublimelinterChooseTooltipThemeCommand(ChooseSettingCommand):
"""A command that selects a tooltip theme from a list."""
Expand Down
10 changes: 6 additions & 4 deletions sublimelinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,13 @@ def open_tooltip(self, line, errors):
return

active_view = self.get_active_view()
tooltip_content = template.substitute(line=line, message='<br />'.join(errors), font_size=persist.settings.get('tooltip_fontsize'))
tooltip_content = template.substitute(line=line,
message='<br />'.join(errors),
font_size=persist.settings.get('tooltip_fontsize'))
active_view.show_popup(tooltip_content,
flags=sublime.HIDE_ON_MOUSE_MOVE_AWAY,
location=-1,
max_width=600)
flags=sublime.HIDE_ON_MOUSE_MOVE_AWAY,
location=-1,
max_width=600)

def close_tooltip(self):
active_view = self.get_active_view()
Expand Down
2 changes: 1 addition & 1 deletion tooltip-themes/Default/tooltip.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<style>
body {
font-size: ${font_size}px;
font-size: ${font_size};
}
div {
margin: 5px;
Expand Down
2 changes: 1 addition & 1 deletion tooltip-themes/Inline/tooltip.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<style>
body {
font-size: ${font_size}px;
font-size: ${font_size};
}
div {
margin: 5px;
Expand Down

0 comments on commit e59d5d3

Please sign in to comment.