chore: Auto update by pre-commit hooks
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/20582634976 [skip changelog]
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 7.2 KiB |
@@ -134,23 +134,23 @@ bool get_value_or(
|
||||
return true;
|
||||
}
|
||||
if (parse_json_as(*opt, output)) {
|
||||
/*
|
||||
#ifdef ASST_DEBUG
|
||||
if constexpr (CheckDefault) {
|
||||
// 如果有默认值,检查是否与默认值相同
|
||||
if constexpr (std::constructible_from<OutT, DefaultT>) {
|
||||
if (output == default_val) {
|
||||
Log.warn("Value of", key, "in", repr, "is same as default value");
|
||||
/*
|
||||
#ifdef ASST_DEBUG
|
||||
if constexpr (CheckDefault) {
|
||||
// 如果有默认值,检查是否与默认值相同
|
||||
if constexpr (std::constructible_from<OutT, DefaultT>) {
|
||||
if (output == default_val) {
|
||||
Log.warn("Value of", key, "in", repr, "is same as default value");
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (output == default_val()) {
|
||||
Log.warn("Value of", key, "in", repr, "is same as default value of construct function");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (output == default_val()) {
|
||||
Log.warn("Value of", key, "in", repr, "is same as default value of construct function");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
*/
|
||||
#endif
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
Log.error("Invalid type of", key, "in", repr);
|
||||
|
||||
@@ -62,14 +62,16 @@ if __name__ == "__main__":
|
||||
dsize = (dsize_width, dsize_height)
|
||||
image = cv2.resize(image, dsize, interpolation=cv2.INTER_AREA)
|
||||
|
||||
theme_name = str(raw_image.relative_to(src_path).with_suffix(''))
|
||||
theme_name = str(raw_image.relative_to(src_path).with_suffix(""))
|
||||
|
||||
for i in tasks:
|
||||
if "crop_doc" not in tasks[i]:
|
||||
continue
|
||||
|
||||
default_temp_name = tasks[f"{i.split('-Entry')[0]}Default"].get("template", "")
|
||||
filename = f"{theme_name}/{default_temp_name.split("Default/")[-1]}"
|
||||
default_temp_name = tasks[f"{i.split('-Entry')[0]}Default"].get(
|
||||
"template", ""
|
||||
)
|
||||
filename = f"{theme_name}/{default_temp_name.split('Default/')[-1]}"
|
||||
|
||||
crop_doc = tasks[i].get("crop_doc", {})
|
||||
roi = crop_doc.get("roi")
|
||||
|
||||
@@ -38,7 +38,6 @@ def update_ui_theme_tasks():
|
||||
|
||||
modified = False
|
||||
|
||||
|
||||
theme_variants = {}
|
||||
for image in src_path.rglob("*.png"):
|
||||
theme_path = image.relative_to(src_path).with_suffix("")
|
||||
|
||||