mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Make canvas dark
This commit is contained in:
parent
ae0a42bb9f
commit
7c1fa062ee
2 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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}')
|
||||
|
|
|
|||
Loading…
Reference in a new issue