mirror of
https://github.com/vale981/rmview
synced 2025-03-04 16:51:38 -05:00
Customizable background color for viewer
This commit is contained in:
parent
c847737a51
commit
cdd993ff8a
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue