mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 12:18:35 -07:00
Format
This commit is contained in:
@@ -34,20 +34,12 @@ void xtreme_app_scene_misc_on_enter(void* context) {
|
|||||||
VariableItem* item;
|
VariableItem* item;
|
||||||
|
|
||||||
item = variable_item_list_add(
|
item = variable_item_list_add(
|
||||||
var_item_list,
|
var_item_list, "Sort Dirs First", 2, xtreme_app_scene_misc_sort_dirs_first_changed, app);
|
||||||
"Sort Dirs First",
|
|
||||||
2,
|
|
||||||
xtreme_app_scene_misc_sort_dirs_first_changed,
|
|
||||||
app);
|
|
||||||
variable_item_set_current_value_index(item, xtreme_settings->sort_dirs_first);
|
variable_item_set_current_value_index(item, xtreme_settings->sort_dirs_first);
|
||||||
variable_item_set_current_value_text(item, xtreme_settings->sort_dirs_first ? "ON" : "OFF");
|
variable_item_set_current_value_text(item, xtreme_settings->sort_dirs_first ? "ON" : "OFF");
|
||||||
|
|
||||||
item = variable_item_list_add(
|
item = variable_item_list_add(
|
||||||
var_item_list,
|
var_item_list, "Dark Mode (Exp.)", 2, xtreme_app_scene_misc_dark_mode_changed, app);
|
||||||
"Dark Mode (Exp.)",
|
|
||||||
2,
|
|
||||||
xtreme_app_scene_misc_dark_mode_changed,
|
|
||||||
app);
|
|
||||||
variable_item_set_current_value_index(item, xtreme_settings->dark_mode);
|
variable_item_set_current_value_index(item, xtreme_settings->dark_mode);
|
||||||
variable_item_set_current_value_text(item, xtreme_settings->dark_mode ? "ON" : "OFF");
|
variable_item_set_current_value_text(item, xtreme_settings->dark_mode ? "ON" : "OFF");
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ App(
|
|||||||
entry_point="protoview_app_entry",
|
entry_point="protoview_app_entry",
|
||||||
cdefines=["APP_PROTOVIEW"],
|
cdefines=["APP_PROTOVIEW"],
|
||||||
requires=["gui"],
|
requires=["gui"],
|
||||||
stack_size=8*1024,
|
stack_size=8 * 1024,
|
||||||
order=50,
|
order=50,
|
||||||
fap_icon="appicon.png",
|
fap_icon="appicon.png",
|
||||||
fap_category="Tools",
|
fap_category="Tools",
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ App(
|
|||||||
order=10,
|
order=10,
|
||||||
fap_icon="icons/app.png",
|
fap_icon="icons/app.png",
|
||||||
fap_category="Tools",
|
fap_category="Tools",
|
||||||
fap_icon_assets="icons"
|
fap_icon_assets="icons",
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -124,12 +124,16 @@ def pack(
|
|||||||
continue
|
continue
|
||||||
for icon in icons.iterdir():
|
for icon in icons.iterdir():
|
||||||
if icon.is_dir():
|
if icon.is_dir():
|
||||||
logger(f"Compile: icon for pack '{source.name}': {icons.name}/{icon.name}")
|
logger(
|
||||||
|
f"Compile: icon for pack '{source.name}': {icons.name}/{icon.name}"
|
||||||
|
)
|
||||||
pack_icon_animated(
|
pack_icon_animated(
|
||||||
icon, packed / "Icons" / icons.name / icon.name
|
icon, packed / "Icons" / icons.name / icon.name
|
||||||
)
|
)
|
||||||
elif icon.is_file():
|
elif icon.is_file():
|
||||||
logger(f"Compile: icon for pack '{source.name}': {icons.name}/{icon.name}")
|
logger(
|
||||||
|
f"Compile: icon for pack '{source.name}': {icons.name}/{icon.name}"
|
||||||
|
)
|
||||||
pack_icon_static(
|
pack_icon_static(
|
||||||
icon, packed / "Icons" / icons.name / icon.name
|
icon, packed / "Icons" / icons.name / icon.name
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user