diff --git a/gui/resources/images/button_GB_COV.png b/gui/resources/images/button_GB_COV.png new file mode 100755 index 0000000..0a788df Binary files /dev/null and b/gui/resources/images/button_GB_COV.png differ diff --git a/gui/v2/actions/resume_data.py b/gui/v2/actions/resume_data.py new file mode 100755 index 0000000..1174bd8 --- /dev/null +++ b/gui/v2/actions/resume_data.py @@ -0,0 +1,15 @@ +import os + + +def system_profile_image(btn_path: str, protocol: str, location: str) -> str: + """Use prepared Singbox location artwork without generic substitutes while preserving other protocols' fallbacks.""" + image_path = os.path.join(btn_path, f"{protocol}_{location}.png") + if protocol in ("hysteria2", "vless"): + return image_path + + candidates = ( + image_path, + os.path.join(btn_path, f"icon_{location}.png"), + os.path.join(btn_path, "system_wide_global.png"), + ) + return next((path for path in candidates if os.path.exists(path)), candidates[-1])