Перенос добавления ресурсов в соответствующие патчи

This commit is contained in:
2025-09-14 20:37:14 +03:00
parent c22ef507ba
commit ac241e1189
7 changed files with 28 additions and 42 deletions
-12
View File
@@ -6,7 +6,6 @@ from lxml import etree
from utils.public import (
insert_after_public,
insert_after_color,
insert_after_id,
change_color,
)
@@ -97,15 +96,4 @@ def apply(config: dict) -> bool:
change_color("bottom_nav_indicator_icon_checked", main_color[0]+'ff'+main_color[1:])
change_color("bottom_nav_indicator_label_checked", main_color[0]+'ff'+main_color[1:])
insert_after_public("warning_error_counter_background", "ic_custom_telegram")
insert_after_public("warning_error_counter_background", "ic_custom_crown")
try:
last = "speed75"
for speed in config.get("speeds", []):
insert_after_public(last, f"speed{int(float(speed)*10)}")
insert_after_id(last, f"speed{int(float(speed)*10)}")
last = f"speed{int(float(speed)*10)}"
except Exception as e:
print(f"Error occurred while processing speeds: {e}")
return True