diff --git a/misc/scripts/make_icons.py b/misc/scripts/make_icons.py index 33f21e2f15fd..e5f66407a120 100644 --- a/misc/scripts/make_icons.py +++ b/misc/scripts/make_icons.py @@ -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(): @@ -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")