import sys, os from PyQt6.QtWidgets import QApplication from PyQt6.QtGui import QIcon from app.core.fonts import load_fonts from app.ui.theme import apply from app.ui.main_window import MainWindow APP_NAME = "APIClient - Agent" APP_VERSION = "2.0.0" _ASSETS = os.path.join(os.path.dirname(__file__), "assets") if __name__ == "__main__": app = QApplication(sys.argv) app.setApplicationName(APP_NAME) app.setApplicationVersion(APP_VERSION) app.setOrganizationName("EKIKA") # App icon (taskbar + window title bar) icon = QIcon() for size, fname in [(16, "app_logo_16.png"), (32, "app_logo_32.png"), (48, "app_logo_48.png"), (256, "app_logo.png")]: path = os.path.join(_ASSETS, fname) if os.path.exists(path): icon.addFile(path) app.setWindowIcon(icon) load_fonts() apply(app, dark=True) window = MainWindow() window.show() sys.exit(app.exec())