Make canvas dark

This commit is contained in:
Rebecca Breu 2021-03-25 19:53:50 +01:00
parent ae0a42bb9f
commit 7c1fa062ee
2 changed files with 3 additions and 0 deletions

View file

@ -33,6 +33,7 @@ class WelcomeOverlay(QtWidgets.QWidget):
self.setAttribute(Qt.WidgetAttribute.WA_NoSystemBackground)
self.setAttribute(Qt.WidgetAttribute.WA_TransparentForMouseEvents)
label = QtWidgets.QLabel(self)
label.setStyleSheet("QLabel { color: #cccccc; }")
label.setText(self.txt)
label.setAlignment(Qt.Alignment.AlignVCenter
| Qt.Alignment.AlignCenter)

View file

@ -33,6 +33,7 @@ class BeeGraphicsView(QtWidgets.QGraphicsView):
def __init__(self, app, parent=None, filename=None):
super().__init__(parent)
self.app = app
self.setBackgroundBrush(QtGui.QBrush(QtGui.QColor(60, 60, 60)))
self.undo_stack = QtGui.QUndoStack(self)
self.undo_stack.setUndoLimit(10)
@ -250,6 +251,7 @@ class BeeGraphicsView(QtWidgets.QGraphicsView):
with open(filename, 'w') as f:
f.write(dump)
self.filename = filename
logger.debug('Saved!')
def open_from_file(self, filename):
logger.info(f'Opening file {filename}')