Skip to content

Commit

Permalink
More CSS magic
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Mar 11, 2024
1 parent 36218f9 commit 76db9d8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions plugin/rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<style>
html {{
background-color: transparent;
margin-top: 0.5rem;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
}}
a {{
Expand All @@ -48,10 +48,7 @@
color: white;
background-color: #636363;
}}
a.primary {{
background-color: color(var(--accent) min-contrast(white 6.0));
}}
html.light a.primary {{
a.primary, html.light a.primary {{
background-color: color(var(--accent) min-contrast(white 6.0));
}}
</style>
Expand Down Expand Up @@ -250,7 +247,7 @@ def _render_rename_panel(
return
to_render = [] # type: List[str]
reference_document = [] # type: List[str]
header_lines = "{} changes across {} files.\n\n".format(total_changes, file_count)
header_lines = "{} changes across {} files.\n".format(total_changes, file_count)
to_render.append(header_lines)
reference_document.append(header_lines)
ROWCOL_PREFIX = " {:>4}:{:<4} {}"
Expand Down Expand Up @@ -345,6 +342,5 @@ def run(self) -> None:
wm = windows.lookup(self.window)
if not wm:
return
pm = wm.panel_manager
if pm:
pm.update_rename_panel_buttons([])
if wm.panel_manager:
wm.panel_manager.update_rename_panel_buttons([])

0 comments on commit 76db9d8

Please sign in to comment.