"""
Entry point for running acycle.imageprocessor as a module.
Usage: python -m acycle.imageprocessor
"""

import sys
from PySide6.QtWidgets import QApplication
from qt_material import apply_stylesheet
from .imageprocessor import ImageProcessor


def main():
    """Main entry point for the application."""
    app = QApplication(sys.argv)

    # Apply theme
    theme = 'light_blue.xml'
    apply_stylesheet(
        app,
        theme,
        invert_secondary=('light' in theme and 'dark' not in theme),
    )

    # Create and show main window
    window = ImageProcessor()
    window.showMaximized()

    sys.exit(app.exec())


if __name__ == "__main__":
    main()
