diff --git a/QtPyLoT.py b/QtPyLoT.py index 27b9689e..eea72ecb 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -554,8 +554,8 @@ class MainWindow(QMainWindow): self.pg = pg # init style - self.set_style('dark') - #self.set_style('bright') + #self.set_style('dark') + self.set_style('bright') #self.set_style('default') # add event combo box and ref/test buttons diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index dd9cd04c..f1ed0428 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -729,7 +729,7 @@ class PylotCanvas(FigureCanvas): def saveFigure(self): if self.figure: fd = QtGui.QFileDialog() - fname, filter = fd.getSaveFileName(self._parent, filter='Images (*.png)') + fname, filter = fd.getSaveFileName(self.parent(), filter='Images (*.png)') if not fname: return if not fname.endswith('.png'): diff --git a/pylot/styles/dark.qss b/pylot/styles/dark.qss index 3caef6ba..2d830ff7 100644 --- a/pylot/styles/dark.qss +++ b/pylot/styles/dark.qss @@ -158,6 +158,11 @@ border-width:1px; padding:5px; } +QTabBar::tab:disabled{ +background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(70, 70, 80, 255), stop:1 rgba(60, 60, 70, 255)); +color: rgba(100, 100, 120, 255); +} + QTabWidget{ background-color:transparent; }