mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use a transparent background for the full screen clock to handle the case of image based backgrounds in the viewer
This commit is contained in:
parent
c1f497d1c4
commit
850356c43f
@ -507,8 +507,9 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
|
||||
self.clock_label.setVisible(True)
|
||||
self.clock_label.setText('99:99 AA')
|
||||
self.clock_timer.start(1000)
|
||||
self.clock_label.setStyleSheet(self.clock_label_style%
|
||||
tuple(self.view.document.colors()))
|
||||
self.clock_label.setStyleSheet(self.clock_label_style%(
|
||||
'rgba(0, 0, 0, 0)',
|
||||
self.view.document.colors()[1]))
|
||||
self.clock_label.resize(self.clock_label.sizeHint())
|
||||
sw = QApplication.desktop().screenGeometry(self.view)
|
||||
self.clock_label.move(sw.width() - self.vertical_scrollbar.width() - 15
|
||||
|
Loading…
x
Reference in New Issue
Block a user