#!/usr/bin/env python3

import os
from PIL import Image, ImageDraw

# Create a simple Windows 11 style icon
def create_icon():
    # Create a 256x256 image with transparent background
    icon_size = 256
    icon = Image.new('RGBA', (icon_size, icon_size), (0, 0, 0, 0))
    draw = ImageDraw.Draw(icon)
    
    # Draw Windows 11 style icon (blue square with white filter symbol)
    # Background square
    draw.rounded_rectangle([(50, 50), (206, 206)], radius=20, fill='#0078d4')
    
    # White filter symbol
    draw.rounded_rectangle([(80, 80), (226, 120)], radius=5, fill='white')
    draw.rounded_rectangle([(80, 130), (226, 170)], radius=5, fill='white')
    draw.rounded_rectangle([(80, 180), (226, 220)], radius=5, fill='white')
    
    # Save as ICO
    icon.save('app_icon.ico', format='ICO', sizes=[(256, 256), (128, 128), (64, 64), (32, 32), (16, 16)])
    print("Icon created successfully!")

if __name__ == "__main__":
    create_icon()