Skip to content

Commit

Permalink
Merge pull request #3269 from vallsv/qt-property-for-style
Browse files Browse the repository at this point in the history
Nice!
  • Loading branch information
t20100 authored Nov 16, 2020
2 parents 53793fb + 307eeb4 commit 7f3c90b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions silx/gui/plot/PlotWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,16 @@ def setDataBackgroundColor(self, color):
self._dataBackgroundColor = color
self._backgroundColorsUpdated()

dataBackgroundColor = qt.Property(
qt.QColor, getDataBackgroundColor, setDataBackgroundColor
)

backgroundColor = qt.Property(qt.QColor, getBackgroundColor, setBackgroundColor)

foregroundColor = qt.Property(qt.QColor, getForegroundColor, setForegroundColor)

gridColor = qt.Property(qt.QColor, getGridColor, setGridColor)

def showEvent(self, event):
if self._autoreplot and self._dirty:
self._backend.postRedisplay()
Expand Down

0 comments on commit 7f3c90b

Please sign in to comment.