Skip to content

Commit

Permalink
Go back to blue, but thicker (3px instead of 2px)
Browse files Browse the repository at this point in the history
  • Loading branch information
jitseniesen committed Dec 16, 2023
1 parent c8a05bd commit 9990d66
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions spyder/plugins/plots/widgets/figurebrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import sys

# Third library imports
from qdarkstyle.colorsystem import Gray
from qtconsole.svg import svg_to_clipboard, svg_to_image
from qtpy import PYQT5
from qtpy.compat import getexistingdirectory, getsavefilename
Expand All @@ -29,7 +28,6 @@
# Local library imports
from spyder.api.translations import _
from spyder.api.widgets.mixins import SpyderWidgetMixin
from spyder.config.gui import is_dark_interface
from spyder.utils.misc import getcwd_or_home
from spyder.utils.palette import QStylePalette
from spyder.widgets.helperwidgets import PaneEmptyWidget
Expand Down Expand Up @@ -1059,13 +1057,10 @@ def highlight_canvas(self, highlight):
Set a colored frame around the FigureCanvas if highlight is True.
"""
if highlight:
if is_dark_interface():
color = Gray.B70
else:
color = Gray.B50
# See spyder-ide/spyder#21046 for choice of styling.
# See spyder-ide/spyder#21598 for choice of styling.
self.canvas.setStyleSheet(
"FigureCanvas{border: 3px solid %s;}" % color
"FigureCanvas{border: 3px solid %s;}" %
QStylePalette.COLOR_ACCENT_3
)
else:
self.canvas.setStyleSheet("FigureCanvas{}")
Expand Down

0 comments on commit 9990d66

Please sign in to comment.