v0.87.1: one app icon (lint.jpg, wave's corner radius) on desktop and andTunes 0.4.2; quitting no longer segfaults
The swap-a-PNG icon is gone: scripts/make_icons.py renders packaging/lint.jpg into packaging/lintunes.png and the andTunes launcher. Quitting ends with os._exit once aboutToQuit has saved everything — Python's teardown of the QApplication wrapper segfaulted on every quit.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 60 KiB |
+2
-2
@@ -26,8 +26,8 @@ import sys
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
VERSION_NAME = "0.4.1"
|
||||
VERSION_CODE = 8
|
||||
VERSION_NAME = "0.4.2"
|
||||
VERSION_CODE = 9
|
||||
|
||||
PACKAGE = "me.teafry.andtunes"
|
||||
MIN_SDK = 26
|
||||
|
||||
@@ -171,21 +171,6 @@ def toggle_icon(name: str, color="black", size=ICON) -> QImage:
|
||||
return image
|
||||
|
||||
|
||||
def launcher() -> QImage:
|
||||
size = 192
|
||||
image, p = _canvas(size, size)
|
||||
path = QPainterPath()
|
||||
path.addRoundedRect(QRectF(8, 8, size - 16, size - 16), 36, 36)
|
||||
p.fillPath(path, QColor("black"))
|
||||
p.setPen(Qt.PenStyle.NoPen)
|
||||
p.setBrush(QColor("white"))
|
||||
p.drawPolygon(_tri(70, 50, 142, 96))
|
||||
p.drawPolygon(QPolygonF([QPointF(70, 96), QPointF(142, 96),
|
||||
QPointF(70, 142)]))
|
||||
p.end()
|
||||
return image
|
||||
|
||||
|
||||
def save(image: QImage, name: str, *dirs: Path):
|
||||
for d in dirs:
|
||||
d.mkdir(parents=True, exist_ok=True)
|
||||
@@ -201,7 +186,7 @@ def main():
|
||||
save(transport(name), name, RES, SHIP)
|
||||
for name in TOGGLES:
|
||||
save(toggle_icon(name), name, RES, SHIP)
|
||||
save(launcher(), "ic_launcher", RES)
|
||||
# The launcher icon is LinTunes' own: scripts/make_icons.py.
|
||||
# Status-bar icons must be white-on-transparent; Android tints by alpha.
|
||||
save(transport("play", "white", 96), "ic_notify", RES)
|
||||
print(f"wrote {len(MENU) + len(TRANSPORT) + len(TOGGLES)} buttons to {RES} and {SHIP}")
|
||||
|
||||
Reference in New Issue
Block a user