Перенос resources и добавления assets в патч настроек
This commit is contained in:
@@ -24,7 +24,9 @@
|
||||
priority = 0
|
||||
|
||||
# imports
|
||||
import shutil
|
||||
from lxml import etree
|
||||
from utils.public import insert_after_public
|
||||
|
||||
|
||||
# Patch
|
||||
@@ -48,6 +50,18 @@ def make_category(ns, name, items):
|
||||
return cat
|
||||
|
||||
def apply(config: dict) -> bool:
|
||||
shutil.copy(
|
||||
"./resources/ic_custom_crown.xml",
|
||||
"./decompiled/res/drawable/ic_custom_crown.xml",
|
||||
)
|
||||
insert_after_public("warning_error_counter_background", "ic_custom_crown")
|
||||
|
||||
shutil.copy(
|
||||
"./resources/ic_custom_telegram.xml",
|
||||
"./decompiled/res/drawable/ic_custom_telegram.xml",
|
||||
)
|
||||
insert_after_public("warning_error_counter_background", "ic_custom_telegram")
|
||||
|
||||
file_path = "./decompiled/res/xml/preference_main.xml"
|
||||
parser = etree.XMLParser(remove_blank_text=True)
|
||||
tree = etree.parse(file_path, parser)
|
||||
|
||||
Reference in New Issue
Block a user