Skip to content

Commit 7e983cd

Browse files
committed
More subtle preview borders
fixes #71
1 parent fd93e93 commit 7e983cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

color_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ def do_search(self, view, force=False):
11941194
start_scope = view.scope_name(src_start)
11951195
end_scope = view.scope_name(src_end - 1)
11961196
rgba = RGBA(mdpopups.scope2style(view, scope)['background'])
1197-
rgba.invert()
1197+
rgba.brightness(1.1 if rgba.get_luminance() <= 127 else .9)
11981198
color = '<a href="%d">%s</a>' % (
11991199
src_start,
12001200
mdpopups.color_box(

0 commit comments

Comments
 (0)