- Created PySide6-based desktop application - Added system tray integration for Windows and Linux - Built-in log viewer and configuration wizard - Easy setup and automatic playlist updates - Cross-platform compatibility - Updated README with comprehensive instructions
33 lines
822 B
Python
33 lines
822 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Create application icon
|
|
"""
|
|
from PySide6.QtGui import QIcon, QPixmap, QPainter, QColor, QFont
|
|
from PySide6.QtCore import QSize
|
|
|
|
def create_icon():
|
|
"""Create a simple application icon"""
|
|
pixmap = QPixmap(64, 64)
|
|
pixmap.fill(QColor(30, 144, 255)) # Dodger blue background
|
|
|
|
painter = QPainter(pixmap)
|
|
painter.setPen(QColor(255, 255, 255))
|
|
painter.setFont(QFont("Arial", 32, QFont.Weight.Bold))
|
|
|
|
# Draw music note symbol
|
|
painter.drawText(16, 48, "♪")
|
|
|
|
painter.end()
|
|
|
|
icon = QIcon(pixmap)
|
|
return icon
|
|
|
|
if __name__ == "__main__":
|
|
from PySide6.QtWidgets import QApplication
|
|
import sys
|
|
|
|
app = QApplication(sys.argv)
|
|
icon = create_icon()
|
|
pixmap = icon.pixmap(QSize(64, 64))
|
|
pixmap.save("icon.png")
|
|
print("Icon created: icon.png") |