Add desktop GUI application with system tray support
- 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
This commit is contained in:
1 parent
345c40f40d
commit
ce5175d8db
8 files changed
+760
-29
No files matched your search
@@ -0,0 +1,33 @@
|
||||
#!/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")
|
||||
Reference in new issue
Block a user