File size: 5,432 Bytes
433dc73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#!/usr/bin/env python3
"""
Generate minimal, high-resolution wallpapers for VyronOS (Dark and Light modes).
Resolution: 1920x1080
"""

import os
from PIL import Image, ImageDraw, ImageFont

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, ".."))
BUILD_DIR = os.path.join(ROOT_DIR, "build", "wallpapers")
os.makedirs(BUILD_DIR, exist_ok=True)

DARK_PATH = os.path.join(BUILD_DIR, "vyron-dark.png")
LIGHT_PATH = os.path.join(BUILD_DIR, "vyron-light.png")

W, H = 1920, 1080

def create_dark_wallpaper():
    img = Image.new("RGB", (W, H), "#12131a")
    draw = ImageDraw.Draw(img)

    # Gradient background
    for y in range(H):
        ratio = y / H
        r = int(14 + ratio * 10)
        g = int(16 + ratio * 12)
        b = int(24 + ratio * 20)
        draw.line([(0, y), (W, y)], fill=(r, g, b))

    # Center emblem coordinates
    cx, cy = W // 2, H // 2 - 40
    size = 70

    # Draw geometric glowing V emblem
    # Outer glow
    for offset in range(8, 0, -1):
        alpha_color = (30 + offset * 10, 80 + offset * 15, 180 + offset * 8)
        draw.polygon([
            (cx - size - offset * 2, cy - size - offset),
            (cx, cy + size + offset * 2),
            (cx + size + offset * 2, cy - size - offset),
            (cx + size // 2, cy - size - offset),
            (cx, cy + size // 3),
            (cx - size // 2, cy - size - offset)
        ], outline=alpha_color, width=2)

    # Core emblem
    draw.polygon([
        (cx - size, cy - size),
        (cx, cy + size),
        (cx + size, cy - size),
        (cx + size // 2, cy - size),
        (cx, cy + size // 4),
        (cx - size // 2, cy - size)
    ], fill=(56, 139, 253))

    # Accent triangle in center
    draw.polygon([
        (cx - size // 4, cy - size // 2),
        (cx, cy - size // 6),
        (cx + size // 4, cy - size // 2)
    ], fill=(138, 43, 226))

    # Typography
    text = "V Y R O N   O S"
    subtext = "Desktop Edition 1.0 LTS • Linux 6.12"

    try:
        font_large = ImageFont.truetype("/System/Library/Fonts/Helvetica.ttc", 32)
        font_small = ImageFont.truetype("/System/Library/Fonts/Helvetica.ttc", 16)
    except Exception:
        font_large = ImageFont.load_default()
        font_small = ImageFont.load_default()

    draw.text((cx, cy + size + 50), text, fill=(240, 246, 252), font=font_large, anchor="mm")
    draw.text((cx, cy + size + 85), subtext, fill=(139, 148, 158), font=font_small, anchor="mm")

    img.save(DARK_PATH, "PNG")
    print(f"Generated Dark Wallpaper: {DARK_PATH}")

def create_light_wallpaper():
    img = Image.new("RGB", (W, H), "#f6f8fa")
    draw = ImageDraw.Draw(img)

    # Gradient background
    for y in range(H):
        ratio = y / H
        r = int(246 - ratio * 15)
        g = int(248 - ratio * 15)
        b = int(252 - ratio * 12)
        draw.line([(0, y), (W, y)], fill=(r, g, b))

    # Center emblem coordinates
    cx, cy = W // 2, H // 2 - 40
    size = 70

    # Draw geometric V emblem
    # Outer subtle shadow
    for offset in range(6, 0, -1):
        shadow_color = (200 - offset * 10, 205 - offset * 10, 215 - offset * 10)
        draw.polygon([
            (cx - size - offset, cy - size - offset),
            (cx, cy + size + offset),
            (cx + size + offset, cy - size - offset),
            (cx + size // 2, cy - size - offset),
            (cx, cy + size // 3),
            (cx - size // 2, cy - size - offset)
        ], outline=shadow_color, width=2)

    # Core emblem
    draw.polygon([
        (cx - size, cy - size),
        (cx, cy + size),
        (cx + size, cy - size),
        (cx + size // 2, cy - size),
        (cx, cy + size // 4),
        (cx - size // 2, cy - size)
    ], fill=(9, 105, 218))

    # Accent triangle in center
    draw.polygon([
        (cx - size // 4, cy - size // 2),
        (cx, cy - size // 6),
        (cx + size // 4, cy - size // 2)
    ], fill=(112, 87, 255))

    # Typography
    text = "V Y R O N   O S"
    subtext = "Desktop Edition 1.0 LTS • Linux 6.12"

    try:
        font_large = ImageFont.truetype("/System/Library/Fonts/Helvetica.ttc", 32)
        font_small = ImageFont.truetype("/System/Library/Fonts/Helvetica.ttc", 16)
    except Exception:
        font_large = ImageFont.load_default()
        font_small = ImageFont.load_default()

    draw.text((cx, cy + size + 50), text, fill=(36, 41, 47), font=font_large, anchor="mm")
    draw.text((cx, cy + size + 85), subtext, fill=(87, 96, 106), font=font_small, anchor="mm")

    img.save(LIGHT_PATH, "PNG")
    print(f"Generated Light Wallpaper: {LIGHT_PATH}")

def create_logo_icon():
    LOGO_PATH = os.path.join(BUILD_DIR, "vyron-logo.png")
    size = 64
    img = Image.new("RGBA", (size, size), (0, 0, 0, 0))
    draw = ImageDraw.Draw(img)
    
    # Outer circle in deep slate
    draw.ellipse([(2, 2), (size - 2, size - 2)], fill=(22, 27, 34, 255), outline=(56, 139, 253, 255), width=2)
    
    # Inner V
    cx, cy = size // 2, size // 2
    r = 16
    draw.polygon([
        (cx - r, cy - r),
        (cx, cy + r),
        (cx + r, cy - r),
        (cx + r // 2, cy - r),
        (cx, cy + r // 3),
        (cx - r // 2, cy - r)
    ], fill=(56, 139, 253, 255))
    
    img.save(LOGO_PATH, "PNG")
    print(f"Generated Logo Icon: {LOGO_PATH}")

if __name__ == "__main__":
    create_dark_wallpaper()
    create_light_wallpaper()
    create_logo_icon()