Remove PNG icons, add koreader.svg

Also move Mac specific resource in platform/mac/.
reviewable/pr7012/r1
poire-z 3 years ago
parent 24424e505e
commit daefdc96e9

@ -383,7 +383,6 @@ androidupdate: all
-xr!*NOTES.txt$ \
-xr!*NOTICE$ \
-xr!*README.md$ \
-xr!*koreader.icns$ \
-xr'!.*'
# make the android APK
@ -427,7 +426,7 @@ macosupdate: all
$(INSTALL_DIR)/bundle/Contents/MacOS \
$(INSTALL_DIR)/bundle/Contents/Resources
cp resources/koreader.icns $(INSTALL_DIR)/bundle/Contents/Resources/icon.icns
cp -pv $(MACOS_DIR)/koreader.icns $(INSTALL_DIR)/bundle/Contents/Resources/icon.icns
cp -LR $(INSTALL_DIR)/koreader $(INSTALL_DIR)/bundle/Contents
cp -pRv $(MACOS_DIR)/menu.xml $(INSTALL_DIR)/bundle/Contents/MainMenu.xib
ibtool --compile "$(INSTALL_DIR)/bundle/Contents/Resources/Base.lproj/MainMenu.nib" "$(INSTALL_DIR)/bundle/Contents/MainMenu.xib"

@ -160,8 +160,7 @@ rm -rf cache clipboard history ota \
l10n/.git l10n/.tx l10n/templates l10n/LICENSE l10n/Makefile l10n/README.md \
plugins/SSH.koplugin plugins/hello.koplugin plugins/timesync.koplugin \
plugins/autofrontlight.koplugin resources/fonts resources/icons/src \
resources/kobo-touch-probe.png resources/koreader.icns rocks/bin \
rocks/lib/luarocks screenshots spec tools
rocks/bin rocks/lib/luarocks screenshots spec tools
# adjust reader.lua a bit.

@ -202,7 +202,7 @@ function GoodreadsBook:genBookInfoGroup()
})
else
table.insert(book_info_group, ImageWidget:new{
file = "resources/goodreadsnophoto.png",
file = "plugins/goodreads.koplugin/goodreadsnophoto.png",
width = img_width,
height = img_height,
})

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -1,23 +0,0 @@
menu-icon.png is post-processed with:
```bash
convert menu-icon.png -grayscale Rec709Luma -dither Riemersma -remap eink_cmap.gif -quality 75 png:menu-icon-grayscale.png
```
The intent being to grayscale, dither down to the 16c eInk palette, and save as a 16c paletted grayscale PNG.
Start from an RGB copy of the image if you end up with a 256c or sRGB PNG (check via IM's identify tool).
See https://www.mobileread.com/forums/showpost.php?p=3728291&postcount=17 for more details ;).
Zoom direction icons are generated from direction.LRBT.png with:
```bash
convert direction.LRBT.png -rotate 90 direction.TBLR.png
convert direction.LRBT.png -rotate 180 direction.RLTB.png
convert direction.LRBT.png -rotate -90 direction.BTRL.png
convert direction.BTRL.png -flop direction.BTLR.png
convert direction.LRBT.png -flop direction.RLBT.png
convert direction.RLTB.png -flop direction.LRTB.png
convert direction.TBLR.png -flop direction.TBRL.png
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 582 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 625 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 583 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 856 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 891 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 806 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 891 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 660 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 800 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 877 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 865 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 870 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 802 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 543 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 735 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
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"
width="260"
height="260"
viewBox="0 0 195 195.00002"
version="1.2"
id="svg215">
<metadata
id="metadata219">
<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>
<defs
id="defs94">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath930">
<path
id="path932"
style="fill:#00a89c;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.999997"
d="m 40.842465,0.60156187 c -12.386709,0 -22.524098,10.13605613 -22.524098,22.52277513 V 171.87568 c 0,12.38673 10.137389,22.52278 22.524098,22.52278 h 5.227715 99.08736 5.22771 c 12.38672,0 22.5241,-10.13605 22.5241,-22.52278 V 23.124337 c 0,-12.386719 -10.13738,-22.52277513 -22.5241,-22.52277513 h -5.22771 -99.08736 z" />
</clipPath>
</defs>
<path
id="path96"
d="M 155.88055,195.00002 H 51.119448 c -12.439515,0 -22.619447,-10.19966 -22.619447,-22.66328 V 22.663266 C 28.500001,10.199649 38.679933,0 51.119448,0 H 155.88055 c 12.43953,0 22.61946,10.199649 22.61946,22.663266 V 172.33674 c 0,12.46362 -10.17993,22.66328 -22.61946,22.66328"
style="fill:#00a89c;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1" />
<path
id="path98"
d="M 150.63055,195.00001 H 45.869448 c -12.439514,0 -22.619447,-10.19965 -22.619447,-22.66327 V 22.663266 C 23.250001,10.199649 33.429934,0 45.869448,0 H 150.63055 c 12.43952,0 22.61946,10.199649 22.61946,22.663266 V 172.33674 c 0,12.46362 -10.17994,22.66327 -22.61946,22.66327"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1" />
<path
id="path100"
d="M 145.38055,195.00002 H 40.619448 c -12.439514,0 -22.619447,-10.19966 -22.619447,-22.66328 V 22.663266 C 18.000001,10.199649 28.179934,0 40.619448,0 H 145.38055 c 12.43953,0 22.61946,10.199649 22.61946,22.663266 V 172.33674 c 0,12.46362 -10.17993,22.66328 -22.61946,22.66328"
style="fill:#00a89c;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1" />
<g
id="g914"
clip-path="url(#clipPath930)"
transform="matrix(1.004263,0,0,1.0062081,-0.39645745,-0.60529643)"
style="stroke-width:0.994792">
<path
id="path102"
d="m 37.95508,118.15625 13.34375,-11.14453 13.34375,11.14453 V -14.347657 h -26.6875 z m 0,0"
style="clip-rule:nonzero;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.994792" />
<path
id="path108"
d="m 98.11914,138.55078 c -21.97266,0 -39.84766,17.875 -39.84766,39.84766 0,21.97265 17.875,39.84765 39.84766,39.84765 21.97265,0 39.84765,-17.875 39.84765,-39.84765 0,-21.97266 -17.875,-39.84766 -39.84765,-39.84766 m 0,103.69531 c -35.20703,0 -63.84766,-28.64062 -63.84766,-63.84765 0,-35.20704 28.64063,-63.84766 63.84766,-63.84766 35.20703,0 63.84765,28.64062 63.84765,63.84766 0,35.20703 -28.64062,63.84765 -63.84765,63.84765"
style="clip-rule:nonzero;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.994792" />
<path
id="path114"
d="m 165.57617,118.15625 c -9.38281,0.0195 -19.17188,-0.0391 -22.34766,0 -18.47265,0.25 -18.88672,-3.35156 -24.83203,-8.09766 -9.07812,-7.24219 -29.79297,-27.835939 -39.94922,-37.246089 -3.46093,-3.21094 -5.42187,-6.94141 -5.42187,-10.43359 v -2.84375 c 0,-4.64454 1.75,-9.125005 4.89844,-12.542974 l 56.73046,-61.515625 h 34.74219 L 99.87695,59.734371 c 5.93359,6.98047 25.90625,26.39844 51.76953,48.457029 5.42578,4.62891 9.59766,8.125 13.92969,9.96485"
style="clip-rule:nonzero;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.994792" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

@ -51,7 +51,7 @@ function TouchProbe:init()
},
}
self.image_widget = ImageWidget:new{
file = "resources/kobo-touch-probe.png",
file = "tools/kobo-touch-probe.png",
}
local screen_w, screen_h = Screen:getWidth(), Screen:getHeight()
local img_w, img_h = self.image_widget:getSize().w, self.image_widget:getSize().h

Loading…
Cancel
Save