@@ -33,18 +33,6 @@ def extra_cli_args(self, line_num):
33
33
def _view (self ):
34
34
return self .view
35
35
36
- def get_inline_blame_color (self ):
37
- """
38
- This method inverts the current background color and adds alpha, basically doing:
39
- #ffffff -> rgba(0, 0, 0, 0.3)
40
- The color is than used inside the style template. That is how we make
41
- sure inline blame is visible in both dark and light color schemes.
42
- """
43
- bg = self .view .style ().get ("background" )[1 :]
44
- colors = [int (bg [i : i + 2 ], 16 ) for i in range (0 , len (bg ), 2 )]
45
- colors_inverted = [str (255 - i ) for i in colors ]
46
- return "rgba({}, {}, {}, 0.3)" .format (* colors_inverted )
47
-
48
36
def show_inline_blame (self ):
49
37
if self .view .is_dirty ():
50
38
# If there have already been unsaved edits, stop the git child process from being ran at all.
@@ -70,7 +58,7 @@ def show_inline_blame(self):
70
58
if not blame :
71
59
return
72
60
body = blame_inline_phantom_html_template .format (
73
- css = blame_inline_phantom_css . format ( color = self . get_inline_blame_color ()) ,
61
+ css = blame_inline_phantom_css ,
74
62
author = blame ["author" ],
75
63
# TODO: add pretty format of the date, like "3 days ago"
76
64
date = blame ["date" ],
0 commit comments