Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add custom icons

looks like it fixes issue #9
  • Loading branch information...
commit a4491134b18da3c21c32246e1a2e4796746aefcf 1 parent c11b17b
Aleksandr Gornostal authored
4 Modific.py
View
@@ -376,7 +376,9 @@ def hl_lines(self, lines, hl_key):
self.view.erase_regions(hl_key)
return
- icon = settings.get('region_icon') or 'dot'
+ icon = settings.get('region_icon') or 'modific'
+ if icon == 'modific':
+ icon = '../Modific/icons/' + hl_key
points = [self.view.text_point(l - 1, 0) for l in lines]
regions = [sublime.Region(p, p) for p in points]
self.view.add_regions(hl_key, regions, "markup.%s.diff" % hl_key,
4 Modific.sublime-settings
View
@@ -1,8 +1,8 @@
// Modific default settings
{
// Name of a region icon
- // Valid icon names are dot, circle, bookmark and cross
- "region_icon": "dot",
+ // Valid icon names are: modific, dot, circle, bookmark and cross
+ "region_icon": "modific",
// You can use your commands instead of plain "git" or "svn"
// e.g. "/usr/bin/git" or "C:\bin\git.exe"
BIN  icons/changed.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  icons/deleted.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  icons/inserted.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.