# Initial thumbnail grid geometry, columns [x rows].
grid=5x5
-# Mouse-over thumbnail highlight color. Either a color name or in a
-# hexadecimal color specifier in #RRGGBB notation.
-highlightcolor=lightblue
+# Application and selected thumbnail style in CSS syntax.
+# Examples:
+# default theme
+# appstyle=
+# selstyle=background-color: lightblue;
+# dark theme
+# appstyle=background-color: #181818; color: #a0a0a0;
+# selstyle=background-color: #b0b0b0; color: #202020;
+appstyle=
+selstyle=background-color: lightblue;
# Path to ffprobe.
ffprobe=ffprobe
'grid_columns': 5,
'grid_rows': 5,
'thumb_width': '128',
- 'highlightcolor': 'lightblue',
+ 'appstyle': '',
+ 'selstyle': 'background-color: lightblue;',
'ffprobe': 'ffprobe',
'ffmpeg': 'ffmpeg',
'player': 'mpv --no-ordered-chapters --start=%t %f',
elif idx >= len(l):
idx = len(l) - 1
self.cur = idx
- l[self.cur].setStyleSheet('QLabel {background-color: %s;}' % cfg['highlightcolor'])
+ l[self.cur].setStyleSheet( 'QLabel {' + cfg['selstyle'] + '}' )
self.statdsp[3].setText('%d / %d' % (l[self.cur].info[0], self.thinfo['count']))
self.scroll.ensureWidgetVisible(l[self.cur], 0, 0)
self.setWindowIcon(self.ffpreview_ico)
self.clipboard = QApplication.clipboard()
self.resize(500, 300)
+ self.setStyleSheet(cfg['appstyle'])
self.statbar = QHBoxLayout()
self.statdsp = []