Customizable background color for viewer

This commit is contained in:
Emanuele 2020-05-23 19:04:13 +01:00
parent c847737a51
commit cdd993ff8a
2 changed files with 3 additions and 0 deletions

View file

@ -31,6 +31,7 @@ The supported configuration settings are:
"orientation": "portrait", // default: landscape
"pen_size": 10, // set to 0 to disable
"pen_color": "red",
"background_color": "black", // default: white
"fetch_frame_delay": 0.03 // sleep 0.03s on remarkable before fetching new frame (default is no delay)
"lz4_path_on_remarkable": "/usr/opt/lz4" // default: $HOME/lz4
}

View file

@ -57,6 +57,8 @@ class rMViewApp(QApplication):
self.setWindowIcon(QIcon(':/assets/rmview.svg'))
self.viewer = QtImageViewer()
if 'bg_color' in self.config:
self.viewer.setBackgroundBrush(QBrush(QColor(self.config.get('background_color'))))
act = QAction('Clone current frame', self)
act.triggered.connect(self.cloneViewer)
self.viewer.menu.addSeparator()