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:
Kovid Goyal 2012-07-29 15:57:16 +05:30
parent c1f497d1c4
commit 850356c43f

View File

@ -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