mirror of
https://github.com/Alvin-Zilverstand/Twitter-X-Media-Batch-Downloader.git
synced 2026-11-23 06:43:09 +01:00
29 lines
720 B
Python
29 lines
720 B
Python
import sys
|
|
import os
|
|
import qdarktheme
|
|
from PyQt6.QtWidgets import QApplication
|
|
from PyQt6.QtCore import QSettings
|
|
from ui.mainWindow import TwitterXMediaBatchDownloaderGUI
|
|
|
|
def main():
|
|
if getattr(sys, 'frozen', False):
|
|
os.chdir(os.path.dirname(sys.executable))
|
|
|
|
app = QApplication(sys.argv)
|
|
|
|
settings = QSettings('TwitterXMediaBatchDownloader', 'Settings')
|
|
theme_color = settings.value('theme_color', '#2196F3')
|
|
|
|
qdarktheme.setup_theme(
|
|
custom_colors={
|
|
"[dark]": {
|
|
"primary": theme_color,
|
|
}
|
|
}
|
|
)
|
|
window = TwitterXMediaBatchDownloaderGUI()
|
|
window.show()
|
|
sys.exit(app.exec())
|
|
|
|
if __name__ == "__main__":
|
|
main() |