Add end caps to the yellow book in the logo

This commit is contained in:
Kovid Goyal 2016-09-19 11:15:36 +05:30
parent 82bbac4568
commit 4c5c7e4c4e
11 changed files with 229 additions and 13 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 72 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -9,7 +9,7 @@ import copy, sys
from PyQt5.Qt import Qt, QTableWidgetItem, QIcon from PyQt5.Qt import Qt, QTableWidgetItem, QIcon
from calibre.gui2 import gprefs from calibre.gui2 import gprefs, Application
from calibre.gui2.preferences import ConfigWidgetBase, test_widget from calibre.gui2.preferences import ConfigWidgetBase, test_widget
from calibre.gui2.preferences.columns_ui import Ui_Form from calibre.gui2.preferences.columns_ui import Ui_Form
from calibre.gui2.preferences.create_custom_column import CreateCustomColumn from calibre.gui2.preferences.create_custom_column import CreateCustomColumn
@ -91,6 +91,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
for row, col in enumerate(colmap): for row, col in enumerate(colmap):
self.setup_row(self.field_metadata, row, col) self.setup_row(self.field_metadata, row, col)
self.restore_geometry() self.restore_geometry()
self.opt_columns.blockSignals(False) self.opt_columns.blockSignals(False)
@ -271,6 +272,5 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
if __name__ == '__main__': if __name__ == '__main__':
from PyQt5.Qt import QApplication app = Application([])
app = QApplication([])
test_widget('Interface', 'Custom Columns') test_widget('Interface', 'Custom Columns')

View File

@ -32,13 +32,14 @@ class SplashScreen(QSplashScreen):
t.translate(330, 450) t.translate(330, 450)
painter.setTransform(t) painter.setTransform(t)
painter.rotate(-98) painter.rotate(-98)
left_margin = 25
if iswindows: if iswindows:
# On windows Qt cannot anti-alias rotated text # On windows Qt cannot anti-alias rotated text
p = QPainterPath() p = QPainterPath()
p.addText(0, 0, f, self.message()) p.addText(left_margin, 0, f, self.message())
painter.fillPath(p, QBrush(Qt.black)) painter.fillPath(p, QBrush(Qt.black))
else: else:
painter.drawText(0, 0, self.message()) painter.drawText(left_margin, 0, self.message())
painter.restore() painter.restore()
def show_message(self, msg): def show_message(self, msg):