A new high resolution calibre logo
The old log was only available as a raster image at 512x512. This is insufficient for the splash screen on high DPI monitors. So create a new SVG logo (similar in look to the old one, but simplified).
BIN
icons/book.icns
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 348 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 29 KiB |
@ -13,7 +13,7 @@ base = d(a(__file__))
|
||||
os.chdir(base)
|
||||
|
||||
imgsrc = j(d(d(base)), 'imgsrc')
|
||||
sources = {'calibre':j(d(base), 'calibre.png'), 'ebook-edit':j(imgsrc, 'tweak.svg'), 'ebook-viewer':j(imgsrc, 'viewer.svg'), 'book':j(imgsrc, 'book.svg')}
|
||||
sources = {'calibre':j(imgsrc, 'calibre.svg'), 'ebook-edit':j(imgsrc, 'tweak.svg'), 'ebook-viewer':j(imgsrc, 'viewer.svg'), 'book':j(imgsrc, 'book.svg')}
|
||||
|
||||
for name, src in sources.iteritems():
|
||||
iconset = name + '.iconset'
|
||||
@ -39,7 +39,7 @@ for name, src in sources.iteritems():
|
||||
os.remove(iname)
|
||||
for name in (iname, iname2x):
|
||||
if os.path.exists(name):
|
||||
subprocess.check_call(['optipng', '-o7', name])
|
||||
subprocess.check_call(['optipng', '-o7', '-strip', 'all', name])
|
||||
finally:
|
||||
os.chdir('..')
|
||||
|
||||
|
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 29 KiB |
30
icons/make_ico_files.py
Normal file
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env python2
|
||||
# vim:fileencoding=utf-8
|
||||
from __future__ import (unicode_literals, division, absolute_import,
|
||||
print_function)
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
import os, shutil, subprocess
|
||||
|
||||
d, j, a = (getattr(os.path, x) for x in ('dirname', 'join', 'abspath'))
|
||||
base = d(a(__file__))
|
||||
os.chdir(base)
|
||||
|
||||
imgsrc = j(d(base), 'imgsrc')
|
||||
sources = {'library':j(imgsrc, 'calibre.svg'), 'ebook-edit':j(imgsrc, 'tweak.svg'), 'viewer':j(imgsrc, 'viewer.svg'), 'favicon':j(imgsrc, 'calibre.svg')}
|
||||
|
||||
for name, src in sources.iteritems():
|
||||
os.mkdir('ico_temp')
|
||||
try:
|
||||
names = []
|
||||
for sz in (16, 32, 48, 256):
|
||||
iname = os.path.join('ico_temp', '{0}x{0}.png'.format(sz))
|
||||
subprocess.check_call(['rsvg-convert', src, '-w', str(sz), '-h', str(sz), '-o', iname])
|
||||
subprocess.check_call(['optipng', '-o7', '-strip', 'all', iname])
|
||||
names.append(iname)
|
||||
names[-1:-1] = ['-r']
|
||||
subprocess.check_call(['icotool', '-c', '--output=' + name+'.ico'] + names)
|
||||
finally:
|
||||
shutil.rmtree('ico_temp')
|
BIN
icons/viewer.ico
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 53 KiB |
758
imgsrc/calibre.svg
Normal file
@ -0,0 +1,758 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
sodipodi:docname="calibre.svg"
|
||||
inkscape:version="0.91 r13725"
|
||||
version="1.1"
|
||||
id="svg2"
|
||||
viewBox="0 0 1024 1024"
|
||||
height="1024"
|
||||
width="1024">
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient6757">
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop6759" />
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:0.39215687"
|
||||
offset="1"
|
||||
id="stop6761" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient6741">
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop6743" />
|
||||
<stop
|
||||
style="stop-color:#5b757b;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop6745" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient5969">
|
||||
<stop
|
||||
style="stop-color:#000001;stop-opacity:0"
|
||||
offset="0"
|
||||
id="stop5971" />
|
||||
<stop
|
||||
id="stop5977"
|
||||
offset="0.49999997"
|
||||
style="stop-color:#000000;stop-opacity:1" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0"
|
||||
offset="1"
|
||||
id="stop5973" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient5935">
|
||||
<stop
|
||||
style="stop-color:#ffa900;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop5937" />
|
||||
<stop
|
||||
style="stop-color:#ffeda0;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop5939" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient5929"
|
||||
osb:paint="solid">
|
||||
<stop
|
||||
style="stop-color:#ffa900;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop5931" />
|
||||
</linearGradient>
|
||||
<filter
|
||||
inkscape:menu-tooltip="Darkens the edge with an inner blur and adds a flexible glow"
|
||||
inkscape:menu="Shadows and Glows"
|
||||
inkscape:label="Out of Focus"
|
||||
height="1.5"
|
||||
width="1.4"
|
||||
x="-0.2"
|
||||
y="-0.25"
|
||||
style="color-interpolation-filters:sRGB;"
|
||||
id="filter4262">
|
||||
<feGaussianBlur
|
||||
result="result14"
|
||||
stdDeviation="1.5"
|
||||
id="feGaussianBlur4264" />
|
||||
<feFlood
|
||||
result="result12"
|
||||
flood-color="rgb(146,94,26)"
|
||||
id="feFlood4266" />
|
||||
<feTurbulence
|
||||
type="turbulence"
|
||||
seed="0"
|
||||
baseFrequency="0.29999999999999999"
|
||||
numOctaves="5"
|
||||
result="result5"
|
||||
id="feTurbulence4268" />
|
||||
<feDisplacementMap
|
||||
scale="100"
|
||||
xChannelSelector="R"
|
||||
in="result5"
|
||||
result="result8"
|
||||
in2="result14"
|
||||
yChannelSelector="G"
|
||||
id="feDisplacementMap4270" />
|
||||
<feComposite
|
||||
in="result8"
|
||||
result="result10"
|
||||
operator="arithmetic"
|
||||
in2="result5"
|
||||
k1="0.5"
|
||||
k2="0.5"
|
||||
id="feComposite4272" />
|
||||
<feSpecularLighting
|
||||
specularExponent="15"
|
||||
specularConstant="1"
|
||||
surfaceScale="-15"
|
||||
result="result2"
|
||||
id="feSpecularLighting4274">
|
||||
<feDistantLight
|
||||
elevation="90"
|
||||
azimuth="225"
|
||||
id="feDistantLight4276" />
|
||||
</feSpecularLighting>
|
||||
<feGaussianBlur
|
||||
result="result13"
|
||||
stdDeviation="0.4"
|
||||
id="feGaussianBlur4278" />
|
||||
<feDiffuseLighting
|
||||
surfaceScale="-20"
|
||||
result="result1"
|
||||
diffuseConstant="0.6"
|
||||
in="result13"
|
||||
id="feDiffuseLighting4280">
|
||||
<feDistantLight
|
||||
elevation="10"
|
||||
azimuth="225"
|
||||
id="feDistantLight4282" />
|
||||
</feDiffuseLighting>
|
||||
<feComposite
|
||||
result="result4"
|
||||
in="SourceGraphic"
|
||||
in2="result1"
|
||||
operator="arithmetic"
|
||||
k2="1"
|
||||
k3="0.6"
|
||||
id="feComposite4284" />
|
||||
<feComposite
|
||||
result="result11"
|
||||
in2="SourceGraphic"
|
||||
operator="in"
|
||||
id="feComposite4286" />
|
||||
<feBlend
|
||||
in2="result11"
|
||||
in="result11"
|
||||
result="fbSourceGraphic"
|
||||
mode="normal"
|
||||
id="feBlend4288" />
|
||||
<feColorMatrix
|
||||
result="fbSourceGraphicAlpha"
|
||||
in="fbSourceGraphic"
|
||||
values="0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"
|
||||
id="feColorMatrix4439" />
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur4441"
|
||||
stdDeviation="5"
|
||||
result="result6"
|
||||
in="fbSourceGraphic" />
|
||||
<feComposite
|
||||
id="feComposite4443"
|
||||
in2="result6"
|
||||
result="result8"
|
||||
in="fbSourceGraphic"
|
||||
operator="atop" />
|
||||
<feComposite
|
||||
id="feComposite4445"
|
||||
in2="fbSourceGraphicAlpha"
|
||||
result="result9"
|
||||
operator="over"
|
||||
in="result8" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix4447"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 "
|
||||
result="result10" />
|
||||
<feBlend
|
||||
id="feBlend4449"
|
||||
in2="result6"
|
||||
in="result10"
|
||||
mode="normal"
|
||||
result="fbSourceGraphic" />
|
||||
<feColorMatrix
|
||||
result="fbSourceGraphicAlpha"
|
||||
in="fbSourceGraphic"
|
||||
values="0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"
|
||||
id="feColorMatrix6777" />
|
||||
<feFlood
|
||||
id="feFlood6779"
|
||||
flood-opacity="1"
|
||||
flood-color="rgb(255,255,255)"
|
||||
result="flood"
|
||||
in="fbSourceGraphic" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix6781"
|
||||
in="fbSourceGraphic"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 -0.2125 -0.7154 -0.0721 1 0 "
|
||||
result="colormatrix1" />
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur6783"
|
||||
in="colormatrix1"
|
||||
stdDeviation="1.9 1"
|
||||
result="blur" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix6785"
|
||||
in="blur"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 5.1 -2 "
|
||||
result="colormatrix2" />
|
||||
<feBlend
|
||||
id="feBlend6787"
|
||||
in2="flood"
|
||||
in="colormatrix2"
|
||||
mode="normal"
|
||||
result="blend" />
|
||||
<feComposite
|
||||
id="feComposite6789"
|
||||
in2="blend"
|
||||
in="blend"
|
||||
operator="arithmetic"
|
||||
k2="1"
|
||||
result="composite1" />
|
||||
<feComposite
|
||||
id="feComposite6791"
|
||||
in2="fbSourceGraphic"
|
||||
operator="in" />
|
||||
</filter>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient5935"
|
||||
id="linearGradient5941"
|
||||
x1="-788.9517"
|
||||
y1="152.39156"
|
||||
x2="-147.65315"
|
||||
y2="150.93695"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<filter
|
||||
style="color-interpolation-filters:sRGB;"
|
||||
inkscape:label="Drop Shadow"
|
||||
id="filter5943">
|
||||
<feFlood
|
||||
flood-opacity="0.498039"
|
||||
flood-color="rgb(0,0,0)"
|
||||
result="flood"
|
||||
id="feFlood5945" />
|
||||
<feComposite
|
||||
in="flood"
|
||||
in2="SourceGraphic"
|
||||
operator="in"
|
||||
result="composite1"
|
||||
id="feComposite5947" />
|
||||
<feGaussianBlur
|
||||
in="composite1"
|
||||
stdDeviation="3"
|
||||
result="blur"
|
||||
id="feGaussianBlur5949" />
|
||||
<feOffset
|
||||
dx="6"
|
||||
dy="6"
|
||||
result="offset"
|
||||
id="feOffset5951" />
|
||||
<feComposite
|
||||
in="SourceGraphic"
|
||||
in2="offset"
|
||||
operator="over"
|
||||
result="composite2"
|
||||
id="feComposite5953" />
|
||||
</filter>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient5969"
|
||||
id="linearGradient5975"
|
||||
x1="162.85715"
|
||||
y1="168.79073"
|
||||
x2="162.85715"
|
||||
y2="134.50502"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient5969"
|
||||
id="linearGradient5981"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="162.85715"
|
||||
y1="168.79073"
|
||||
x2="162.85715"
|
||||
y2="134.50502"
|
||||
gradientTransform="translate(-0.71428572,737.85714)" />
|
||||
<filter
|
||||
style="color-interpolation-filters:sRGB;"
|
||||
inkscape:menu-tooltip="Darkens the edge with an inner blur and adds a flexible glow"
|
||||
inkscape:menu="Shadows and Glows"
|
||||
inkscape:label="Dark And Glow"
|
||||
id="filter6683"
|
||||
y="-0.25"
|
||||
height="1.5">
|
||||
<feTurbulence
|
||||
result="result0"
|
||||
seed="0"
|
||||
baseFrequency="1"
|
||||
numOctaves="5"
|
||||
type="fractalNoise"
|
||||
id="feTurbulence6685" />
|
||||
<feConvolveMatrix
|
||||
result="result5"
|
||||
order="5 5"
|
||||
kernelMatrix="-2 0 0 0 -2 0 -2 0 -2 0 0 0 -10 0 0 0 -2 0 -2 0 -2 0 0 0 -2 "
|
||||
targetX="2"
|
||||
targetY="2"
|
||||
id="feConvolveMatrix6687" />
|
||||
<feComposite
|
||||
result="result2"
|
||||
k3="0.5"
|
||||
k2="0.5"
|
||||
k1="1.5"
|
||||
operator="arithmetic"
|
||||
in="result5"
|
||||
in2="SourceGraphic"
|
||||
id="feComposite6689" />
|
||||
<feColorMatrix
|
||||
in="result2"
|
||||
type="luminanceToAlpha"
|
||||
result="result2"
|
||||
id="feColorMatrix6691" />
|
||||
<feDiffuseLighting
|
||||
surfaceScale="5"
|
||||
result="result1"
|
||||
diffuseConstant="0.6"
|
||||
id="feDiffuseLighting6693">
|
||||
<feDistantLight
|
||||
elevation="35"
|
||||
azimuth="225"
|
||||
id="feDistantLight6695" />
|
||||
</feDiffuseLighting>
|
||||
<feComposite
|
||||
operator="arithmetic"
|
||||
in="result1"
|
||||
k1="1.5"
|
||||
k3="0.5"
|
||||
result="result3"
|
||||
in2="SourceGraphic"
|
||||
id="feComposite6697" />
|
||||
<feBlend
|
||||
in="result3"
|
||||
mode="normal"
|
||||
result="result6"
|
||||
in2="result1"
|
||||
id="feBlend6699" />
|
||||
<feComposite
|
||||
operator="in"
|
||||
in2="SourceGraphic"
|
||||
id="feComposite6701"
|
||||
result="fbSourceGraphic" />
|
||||
<feColorMatrix
|
||||
result="fbSourceGraphicAlpha"
|
||||
in="fbSourceGraphic"
|
||||
values="0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"
|
||||
id="feColorMatrix6703" />
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur6705"
|
||||
stdDeviation="5"
|
||||
result="result6"
|
||||
in="fbSourceGraphic" />
|
||||
<feComposite
|
||||
id="feComposite6707"
|
||||
in2="result6"
|
||||
result="result8"
|
||||
in="fbSourceGraphic"
|
||||
operator="atop" />
|
||||
<feComposite
|
||||
id="feComposite6709"
|
||||
in2="fbSourceGraphicAlpha"
|
||||
result="result9"
|
||||
operator="over"
|
||||
in="result8" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix6711"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 "
|
||||
result="result10" />
|
||||
<feBlend
|
||||
id="feBlend6713"
|
||||
in2="result6"
|
||||
in="result10"
|
||||
mode="normal"
|
||||
result="fbSourceGraphic" />
|
||||
<feColorMatrix
|
||||
result="fbSourceGraphicAlpha"
|
||||
in="fbSourceGraphic"
|
||||
values="0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"
|
||||
id="feColorMatrix6715" />
|
||||
<feFlood
|
||||
id="feFlood6717"
|
||||
flood-opacity="1"
|
||||
flood-color="rgb(255,255,255)"
|
||||
result="flood"
|
||||
in="fbSourceGraphic" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix6719"
|
||||
in="fbSourceGraphic"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 -0.2125 -0.7154 -0.0721 1 0 "
|
||||
result="colormatrix1" />
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur6721"
|
||||
in="colormatrix1"
|
||||
stdDeviation="1.9 1"
|
||||
result="blur" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix6723"
|
||||
in="blur"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 5.1 -2 "
|
||||
result="colormatrix2" />
|
||||
<feBlend
|
||||
id="feBlend6725"
|
||||
in2="flood"
|
||||
in="colormatrix2"
|
||||
mode="normal"
|
||||
result="blend" />
|
||||
<feComposite
|
||||
id="feComposite6727"
|
||||
in2="blend"
|
||||
in="blend"
|
||||
operator="arithmetic"
|
||||
k2="1"
|
||||
result="composite1" />
|
||||
<feComposite
|
||||
id="feComposite6729"
|
||||
in2="fbSourceGraphic"
|
||||
operator="in"
|
||||
result="fbSourceGraphic" />
|
||||
<feColorMatrix
|
||||
result="fbSourceGraphicAlpha"
|
||||
in="fbSourceGraphic"
|
||||
values="0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"
|
||||
id="feColorMatrix6765" />
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur6767"
|
||||
stdDeviation="5"
|
||||
result="result6"
|
||||
in="fbSourceGraphic" />
|
||||
<feComposite
|
||||
id="feComposite6769"
|
||||
in2="result6"
|
||||
result="result8"
|
||||
in="fbSourceGraphic"
|
||||
operator="atop" />
|
||||
<feComposite
|
||||
id="feComposite6771"
|
||||
in2="fbSourceGraphicAlpha"
|
||||
result="result9"
|
||||
operator="over"
|
||||
in="result8" />
|
||||
<feColorMatrix
|
||||
id="feColorMatrix6773"
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 "
|
||||
result="result10" />
|
||||
<feBlend
|
||||
id="feBlend6775"
|
||||
in2="result6"
|
||||
in="result10"
|
||||
mode="normal" />
|
||||
</filter>
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient6741"
|
||||
id="radialGradient6747"
|
||||
cx="393.92856"
|
||||
cy="257.00507"
|
||||
fx="393.92856"
|
||||
fy="257.00507"
|
||||
r="111.78571"
|
||||
gradientTransform="matrix(1.7457256,-0.00436375,3.8094882e-4,0.0894564,-302.43191,231.09043)"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient6741"
|
||||
id="radialGradient6751"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(1.7332115,-0.00436375,3.78218e-4,0.0894564,-297.50152,863.23329)"
|
||||
cx="393.92856"
|
||||
cy="257.00507"
|
||||
fx="393.92856"
|
||||
fy="257.00507"
|
||||
r="111.78571" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient6757"
|
||||
id="radialGradient6763"
|
||||
cx="-570.48199"
|
||||
cy="382.41348"
|
||||
fx="-570.48199"
|
||||
fy="382.41348"
|
||||
r="204.88641"
|
||||
gradientTransform="matrix(1.1942885,0.04114054,-0.02212466,0.64226641,27.905882,157.70157)"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<filter
|
||||
y="-0.25"
|
||||
height="1.5"
|
||||
inkscape:menu-tooltip="Darkens the edge with an inner blur and adds a flexible glow"
|
||||
inkscape:menu="Shadows and Glows"
|
||||
inkscape:label="Dark And Glow"
|
||||
style="color-interpolation-filters:sRGB;"
|
||||
id="filter6809">
|
||||
<feGaussianBlur
|
||||
stdDeviation="5"
|
||||
result="result6"
|
||||
id="feGaussianBlur6811" />
|
||||
<feComposite
|
||||
result="result8"
|
||||
in="SourceGraphic"
|
||||
operator="atop"
|
||||
in2="result6"
|
||||
id="feComposite6813" />
|
||||
<feComposite
|
||||
result="result9"
|
||||
operator="over"
|
||||
in2="SourceAlpha"
|
||||
in="result8"
|
||||
id="feComposite6815" />
|
||||
<feColorMatrix
|
||||
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 "
|
||||
result="result10"
|
||||
id="feColorMatrix6817" />
|
||||
<feBlend
|
||||
in="result10"
|
||||
mode="normal"
|
||||
in2="result6"
|
||||
id="feBlend6819" />
|
||||
</filter>
|
||||
<filter
|
||||
style="color-interpolation-filters:sRGB;"
|
||||
inkscape:label="Drop Shadow"
|
||||
id="filter6821">
|
||||
<feFlood
|
||||
flood-opacity="0.498039"
|
||||
flood-color="rgb(0,0,0)"
|
||||
result="flood"
|
||||
id="feFlood6823" />
|
||||
<feComposite
|
||||
in="flood"
|
||||
in2="SourceGraphic"
|
||||
operator="in"
|
||||
result="composite1"
|
||||
id="feComposite6825" />
|
||||
<feGaussianBlur
|
||||
in="composite1"
|
||||
stdDeviation="3"
|
||||
result="blur"
|
||||
id="feGaussianBlur6827" />
|
||||
<feOffset
|
||||
dx="6"
|
||||
dy="6"
|
||||
result="offset"
|
||||
id="feOffset6829" />
|
||||
<feComposite
|
||||
in="SourceGraphic"
|
||||
in2="offset"
|
||||
operator="over"
|
||||
result="composite2"
|
||||
id="feComposite6831" />
|
||||
</filter>
|
||||
<filter
|
||||
style="color-interpolation-filters:sRGB;"
|
||||
inkscape:label="Drop Shadow"
|
||||
id="filter7470">
|
||||
<feFlood
|
||||
flood-opacity="0.498039"
|
||||
flood-color="rgb(0,0,0)"
|
||||
result="flood"
|
||||
id="feFlood7472" />
|
||||
<feComposite
|
||||
in="flood"
|
||||
in2="SourceGraphic"
|
||||
operator="in"
|
||||
result="composite1"
|
||||
id="feComposite7474" />
|
||||
<feGaussianBlur
|
||||
in="composite1"
|
||||
stdDeviation="3"
|
||||
result="blur"
|
||||
id="feGaussianBlur7476" />
|
||||
<feOffset
|
||||
dx="6"
|
||||
dy="6"
|
||||
result="offset"
|
||||
id="feOffset7478" />
|
||||
<feComposite
|
||||
in="SourceGraphic"
|
||||
in2="offset"
|
||||
operator="over"
|
||||
result="composite2"
|
||||
id="feComposite7480" />
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:window-y="32"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-height="2128"
|
||||
inkscape:window-width="3840"
|
||||
units="px"
|
||||
showgrid="false"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-units="px"
|
||||
inkscape:cy="514.28571"
|
||||
inkscape:cx="399.34365"
|
||||
inkscape:zoom="1.4142136"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
borderopacity="1.0"
|
||||
bordercolor="#666666"
|
||||
pagecolor="#ffffff"
|
||||
id="base"
|
||||
showguides="false">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid7555" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-28.362161)">
|
||||
<rect
|
||||
style="fill:#5b757b;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect6055"
|
||||
width="197.66254"
|
||||
height="806.42017"
|
||||
x="286.52591"
|
||||
y="163.22679"
|
||||
ry="13.699058" />
|
||||
<rect
|
||||
style="fill:#4d1e00;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4136"
|
||||
width="222.68274"
|
||||
height="890.28375"
|
||||
x="59.015781"
|
||||
y="79.363213"
|
||||
ry="18.711" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:150.29335022px;line-height:125%;font-family:Constantia;-inkscape-font-specification:Constantia;letter-spacing:5px;word-spacing:0px;fill:url(#linearGradient5941);fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;filter:url(#filter7470)"
|
||||
x="-796.32111"
|
||||
y="207.51714"
|
||||
id="text4451"
|
||||
sodipodi:linespacing="125%"
|
||||
transform="matrix(-0.00109603,-1.0176807,0.98262526,-0.00113513,15.930032,48.452047)"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4453"
|
||||
x="-796.32111"
|
||||
y="207.51714"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:150.29335022px;font-family:Constantia;-inkscape-font-specification:Constantia;letter-spacing:5px;fill:url(#linearGradient5941);fill-opacity:1;stroke:none;stroke-opacity:1">CALIBRE</tspan></text>
|
||||
<rect
|
||||
style="fill:url(#linearGradient5975);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;"
|
||||
id="rect5967"
|
||||
width="222.14285"
|
||||
height="35.714287"
|
||||
x="58.57143"
|
||||
y="133.79074"
|
||||
transform="matrix(1.0109069,0,0,0.99720262,-1.1682991,0.42422237)" />
|
||||
<rect
|
||||
y="871.64789"
|
||||
x="57.857143"
|
||||
height="35.714287"
|
||||
width="222.14285"
|
||||
id="rect5979"
|
||||
style="fill:url(#linearGradient5981);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;" />
|
||||
<rect
|
||||
style="fill:url(#radialGradient6747);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect6739"
|
||||
width="199.28571"
|
||||
height="20"
|
||||
x="285.71432"
|
||||
y="242.36217" />
|
||||
<rect
|
||||
y="874.505"
|
||||
x="286.42859"
|
||||
height="20"
|
||||
width="197.85715"
|
||||
id="rect6749"
|
||||
style="fill:url(#radialGradient6751);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:italic;font-variant:normal;font-weight:500;font-stretch:normal;font-size:90px;line-height:125%;font-family:Z003;-inkscape-font-specification:'Z003 Medium Italic';letter-spacing:0px;word-spacing:0px;fill:url(#radialGradient6763);fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
|
||||
x="-874.68134"
|
||||
y="399.19296"
|
||||
id="text6753"
|
||||
sodipodi:linespacing="125%"
|
||||
transform="matrix(-0.02468236,-0.99969534,0.99969534,-0.02468236,-10.706687,0)"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan6755"
|
||||
x="-874.68134"
|
||||
y="399.19296"
|
||||
style="fill:url(#radialGradient6763);fill-opacity:1;">Kovid Goyal</tspan></text>
|
||||
<path
|
||||
sodipodi:type="inkscape:offset"
|
||||
inkscape:radius="0"
|
||||
inkscape:original="M 624.9082 72.820312 C 624.07434 72.738136 623.21883 72.738815 622.35156 72.828125 L 515.95117 83.785156 C 509.013 84.499633 504.00232 90.659487 504.7168 97.597656 L 594.54883 969.94727 C 595.26331 976.88544 601.42511 981.89612 608.36328 981.18164 L 714.76367 970.22461 C 721.70184 969.51013 726.71252 963.35028 725.99805 956.41211 L 636.16406 84.0625 C 635.5389 77.991602 630.74522 73.39555 624.9082 72.820312 z "
|
||||
xlink:href="#rect6833"
|
||||
style="fill:#d6b865;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path7428"
|
||||
d="m 624.9082,72.820312 c -0.83386,-0.08218 -1.68937,-0.0815 -2.55664,0.0078 L 515.95117,83.785156 c -6.93817,0.714477 -11.94885,6.874331 -11.23437,13.8125 l 89.83203,872.349614 c 0.71448,6.93817 6.87628,11.94885 13.81445,11.23437 l 106.40039,-10.95703 c 6.93817,-0.71448 11.94885,-6.87433 11.23438,-13.8125 L 636.16406,84.0625 C 635.5389,77.991602 630.74522,73.39555 624.9082,72.820312 Z"
|
||||
transform="matrix(0.99974613,-0.02253172,0.02253172,0.99974613,-31.003816,2.3211974)" />
|
||||
<rect
|
||||
style="fill:#79abff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect6835"
|
||||
width="220.95114"
|
||||
height="593.90881"
|
||||
x="560.07922"
|
||||
y="497.91531"
|
||||
ry="13.472634"
|
||||
transform="matrix(0.98420937,-0.17700821,0.19459355,0.98088396,0,0)" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-weight:normal;font-size:90px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
x="680.23669"
|
||||
y="864.97888"
|
||||
id="text7490"
|
||||
sodipodi:linespacing="125%"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan7492"
|
||||
x="680.23669"
|
||||
y="864.97888"></tspan></text>
|
||||
<path
|
||||
style="fill:#0c13ba;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.12602389px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 785.34706,662.30978 18.44112,-40.18977 30.67103,31.77403 -49.4241,-288.42662 -49.11215,8.41574 z"
|
||||
id="path7563"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccc" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 380 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 15 KiB |
@ -6,8 +6,7 @@ from functools import partial
|
||||
|
||||
import apsw
|
||||
from PyQt5.Qt import (
|
||||
QCoreApplication, QIcon, QObject, QTimer, Qt, QSplashScreen, QBrush,
|
||||
QColor, QPixmap)
|
||||
QCoreApplication, QIcon, QObject, QTimer, Qt, QSplashScreen, QBrush, QColor)
|
||||
|
||||
from calibre import prints, plugins, force_unicode
|
||||
from calibre.constants import (iswindows, __appname__, isosx, DEBUG, islinux,
|
||||
@ -100,7 +99,7 @@ def init_qt(args):
|
||||
override = 'calibre-gui' if islinux else None
|
||||
app = Application(args, override_program_name=override)
|
||||
app.file_event_hook = EventAccumulator()
|
||||
app.setWindowIcon(QIcon(I('lt.png')))
|
||||
app.setWindowIcon(QIcon(I('lt.png', allow_user_override=False)))
|
||||
return app, opts, args
|
||||
|
||||
|
||||
@ -165,10 +164,8 @@ class SplashScreen(QSplashScreen):
|
||||
|
||||
def __init__(self):
|
||||
self.drawn_once = False
|
||||
QSplashScreen.__init__(self)
|
||||
pmap = QPixmap(I('library.png'))
|
||||
pmap.setDevicePixelRatio(getattr(self, 'devicePixelRatioF', self.devicePixelRatio)())
|
||||
self.setPixmap(pmap)
|
||||
pmap = QIcon(I('library.png', allow_user_override=False)).pixmap(512, 512)
|
||||
QSplashScreen.__init__(self, pmap)
|
||||
self.setWindowTitle(__appname__)
|
||||
|
||||
def drawContents(self, painter):
|
||||
|
@ -261,9 +261,9 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
||||
if config['systray_icon']:
|
||||
self.system_tray_icon = factory(app_id='com.calibre-ebook.gui').create_system_tray_icon(parent=self, title='calibre')
|
||||
if self.system_tray_icon is not None:
|
||||
self.system_tray_icon.setIcon(QIcon(I('lt.png')))
|
||||
self.system_tray_icon.setIcon(QIcon(I('lt.png', allow_user_override=False)))
|
||||
if not (iswindows or isosx):
|
||||
self.system_tray_icon.setIcon(QIcon.fromTheme('calibre-gui', QIcon(I('lt.png'))))
|
||||
self.system_tray_icon.setIcon(QIcon.fromTheme('calibre-gui', self.system_tray_icon.icon()))
|
||||
self.system_tray_icon.setToolTip(self.jobs_button.tray_tooltip())
|
||||
self.system_tray_icon.setVisible(True)
|
||||
self.jobs_button.tray_tooltip_updated.connect(self.system_tray_icon.setToolTip)
|
||||
|