Browse Source

Set background colors to prevent transparent edit areas

master
Nils 4 years ago
parent
commit
f209ba6406
  1. 4
      qtgui/pattern_grid.py
  2. 9
      qtgui/songeditor.py
  3. 5
      qtgui/timeline.py

4
qtgui/pattern_grid.py

@ -66,6 +66,10 @@ class PatternGrid(QtWidgets.QGraphicsScene):
self._zoomFactor = 1 # no save. We don't keep a qt config.
#Set color, otherwise it will be transparent in window managers or wayland that want that.
self.backColor = QtGui.QColor(55, 61, 69)
self.setBackgroundBrush(self.backColor)
role = QtGui.QPalette.BrightText
self.textColor = self.parentView.parentMainWindow.fPalBlue.color(role)
self.labelColor = QtGui.QColor("black") #save for new step

9
qtgui/songeditor.py

@ -40,6 +40,10 @@ class SongEditor(QtWidgets.QGraphicsScene):
super().__init__()
self.parentView = parentView
#Set color, otherwise it will be transparent in window managers or wayland that want that.
self.backColor = QtGui.QColor(55, 61, 69)
self.setBackgroundBrush(self.backColor)
#Subitems
self.playhead = Playhead(parentScene = self)
self.addItem(self.playhead)
@ -524,6 +528,11 @@ class TrackLabelEditor(QtWidgets.QGraphicsScene):
self._cachedExportDictsInOrder = []
#Set color, otherwise it will be transparent in window managers or wayland that want that.
self.backColor = QtGui.QColor(55, 61, 69)
self.backColor = QtGui.QColor(48, 53, 60)
self.setBackgroundBrush(self.backColor)
api.callbacks.numberOfTracksChanged.append(self.callback_numberOfTracksChanged)
api.callbacks.trackMetaDataChanged.append(self.callback_trackMetaDataChanged)
api.callbacks.exportCacheChanged.append(self.cacheExportDict)

5
qtgui/timeline.py

@ -33,6 +33,11 @@ class Timeline(QtWidgets.QGraphicsScene):
self.parentView = parentView
self.addItem(TimelineRect(parentScene=self))
#Set color, otherwise it will be transparent in window managers or wayland that want that.
self.backColor = QtGui.QColor(55, 61, 69)
self.setBackgroundBrush(self.backColor)
class TimelineRect(QtWidgets.QGraphicsRectItem):
"""Shows information about song progression.

Loading…
Cancel
Save