Skip to content

Commit

Permalink
Format make_icons.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jss2a98aj committed Jan 10, 2025
1 parent 21c5baf commit 3806814
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions misc/scripts/make_icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def compose_android_icons(build_status: str, out_base_path: str, not_stable_list
image_background = Image.new("RGB", [descriptor.foreground_size, descriptor.foreground_size], bg_color)
image_background.save(f"{out_base_path}/mipmap-{icon_size_name}/icon_background.png")

image_mono = image_foreground
image_mono = image_foreground
new_data = []
threshold = 128
for pixel in image_mono.getdata():
Expand Down Expand Up @@ -358,17 +358,24 @@ def compose_main_icons(build_status: str, out_path: str):
makedirs(f"{main_path}/icons", exist_ok=True)

# Compose the images
# NOTE: the last entry can be anything as long it is different from the first three
# NOTE: the last entry can be anything as long it is different from the first three
status_list = ["dev", "nightly", "pr", "release"]
not_stable_list = status_list[:-1]
for build_status in status_list:
print("\nComposing "+build_status+" status images...")
print("\nComposing " + build_status + " status images...")
print("windows images")
compose_windows_icon(build_status, f"{platform_path}/windows/icons/blazium_{build_status}.ico", not_stable_list)
print("windows console images")
compose_windows_icon(build_status, f"{platform_path}/windows/icons/blazium_console_{build_status}.ico", not_stable_list, is_console=True)
compose_windows_icon(
build_status,
f"{platform_path}/windows/icons/blazium_console_{build_status}.ico",
not_stable_list,
is_console=True,
)
print("android images")
compose_android_icons(build_status, f"{platform_path}/android/icons/{build_status}", not_stable_list, bg_color="#220f25")
compose_android_icons(
build_status, f"{platform_path}/android/icons/{build_status}", not_stable_list, bg_color="#220f25"
)
print("macos images")
compose_macos_icons(build_status, f"{platform_path}/macos/icons", not_stable_list)
print("linux images")
Expand Down

0 comments on commit 3806814

Please sign in to comment.