forked from anixart-mod/patcher
Перенос добавления ресурсов в соответствующие патчи
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user