21 lines
843 B
Python
21 lines
843 B
Python
|
|
from pathlib import Path
|
||
|
|
from PySide6.QtCore import Qt, QRectF
|
||
|
|
from PySide6.QtGui import QImage, QPainter, QColor, QPen, QPolygonF
|
||
|
|
from PySide6.QtCore import QPointF
|
||
|
|
from PySide6.QtWidgets import QApplication
|
||
|
|
|
||
|
|
app = QApplication([])
|
||
|
|
image = QImage(256, 256, QImage.Format_ARGB32)
|
||
|
|
image.fill(Qt.transparent)
|
||
|
|
p = QPainter(image)
|
||
|
|
p.setRenderHint(QPainter.Antialiasing)
|
||
|
|
p.setPen(Qt.NoPen)
|
||
|
|
p.setBrush(QColor('#10241f'))
|
||
|
|
p.drawRoundedRect(QRectF(8, 8, 240, 240), 54, 54)
|
||
|
|
p.setPen(QPen(QColor('#81e8cc'), 17, Qt.SolidLine, Qt.RoundCap, Qt.RoundJoin))
|
||
|
|
p.drawPolyline(QPolygonF([QPointF(61, 164), QPointF(61, 190), QPointF(195, 190), QPointF(195, 164)]))
|
||
|
|
p.drawLine(128, 65, 128, 151)
|
||
|
|
p.drawPolyline(QPolygonF([QPointF(89, 104), QPointF(128, 65), QPointF(167, 104)]))
|
||
|
|
p.end()
|
||
|
|
image.save(str(Path(__file__).resolve().parents[1] / 'autodeploy/app.ico'))
|