mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:04:36 +02:00
...
This commit is contained in:
parent
711112d1a4
commit
19f12f8a5d
1 changed files with 11 additions and 2 deletions
|
|
@ -214,9 +214,18 @@ def show_data(self, data):
|
|||
|
||||
|
||||
def _show_data(self, rows, comments):
|
||||
|
||||
def color_to_string(col):
|
||||
ans = '#000000'
|
||||
if col.isValid():
|
||||
col = col.toRgb()
|
||||
if col.isValid():
|
||||
ans = unicode(col.name())
|
||||
return ans
|
||||
|
||||
f = QFontInfo(QApplication.font(self.parent())).pixelSize()
|
||||
c = unicode(QApplication.palette().color(QPalette.Normal,
|
||||
QPalette.WindowText).name())
|
||||
c = color_to_string(QApplication.palette().color(QPalette.Normal,
|
||||
QPalette.WindowText))
|
||||
templ = u'''\
|
||||
<html>
|
||||
<head>
|
||||
|
|
|
|||
Loading…
Reference in a new issue