Skip to content

Commit

Permalink
remove unneccesarry code
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueGreenMagick committed Jul 16, 2021
1 parent b940ab2 commit 4a9bd0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/addon/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ def recolor_python() -> None:
color_entry = color_entries[color_name]
new_color_value = (color_entry[1], color_entry[2])
setattr(colors, color_name, new_color_value)
# webview palette uses default one
theme_manager.default_palette = mw.app.palette()
theme_manager._apply_style(mw.app)
apply_palette()
refresh_all_windows()
Expand Down Expand Up @@ -85,6 +83,7 @@ def apply_palette() -> None:
palette.setColor(QPalette.BrightText, Qt.red)

mw.app.setPalette(palette)
# webview palette uses default one
theme_manager.default_palette = palette


Expand Down

0 comments on commit 4a9bd0b

Please sign in to comment.