feat: move Settings out of Files into its own searchable app with categories

This commit is contained in:
daniel committed 2026-10-24 13:26:47 +02:00
1 parent d3e49a925d
commit 8de98f3ab3
33 files changed
+1183 -93

No files matched your search

+2 -12
View File
@@ -126,11 +126,7 @@ static const char* props_type_label(const FileManagerState* fm, int idx) {
case FM_ENTRY_HOME: return "Home Folder";
case FM_ENTRY_APPS_ROOT: return "Apps Folder";
case FM_ENTRY_SPECIAL_DIR: return "Folder";
case FM_ENTRY_SYSTEM_CONFIGURATION_ROOT: return "Settings";
case FM_ENTRY_VIRTUAL_ITEM:
if (fm->virtual_view == FM_VIRTUAL_VIEW_SYSTEM_CONFIGURATION)
return "Setting";
return "Application";
case FM_ENTRY_VIRTUAL_ITEM: return "Application";
case FM_ENTRY_FILE:
default:
return fm->is_dir[idx] ? "Folder" : "File";
@@ -175,8 +171,6 @@ static void props_build_path(const FileManagerState* fm, int idx, char* out, int
props_drive_path(fm->drive_indices[idx], out, out_len);
} else if (type == FM_ENTRY_APPS_ROOT) {
props_copy(out, out_len, "virtual://apps");
} else if (type == FM_ENTRY_SYSTEM_CONFIGURATION_ROOT) {
props_copy(out, out_len, "virtual://settings");
}
return;
}
@@ -218,8 +212,7 @@ static void props_choose_icon(FilePropertiesDialogState* st,
int type = fm->entry_types[idx];
st->fallback_is_dir = fm->is_dir[idx] || type == FM_ENTRY_DIR ||
type == FM_ENTRY_SPECIAL_DIR || type == FM_ENTRY_HOME ||
type == FM_ENTRY_APPS_ROOT || type == FM_ENTRY_DRIVE ||
type == FM_ENTRY_SYSTEM_CONFIGURATION_ROOT;
type == FM_ENTRY_APPS_ROOT || type == FM_ENTRY_DRIVE;
int sfi = -1;
if (type == FM_ENTRY_SPECIAL_DIR) sfi = fm->drive_indices[idx];
@@ -234,9 +227,6 @@ static void props_choose_icon(FilePropertiesDialogState* st,
props_load_owned_icon(
st, ds->desktop_items[entry.desktop_item_index].icon_path);
}
} else if (ds && type == FM_ENTRY_SYSTEM_CONFIGURATION_ROOT &&
ds->icon_system_configuration_lg.pixels) {
props_set_shared_icon(st, &ds->icon_system_configuration_lg);
} else if (ds && type == FM_ENTRY_APPS_ROOT && ds->icon_apps_lg.pixels) {
props_set_shared_icon(st, &ds->icon_apps_lg);
} else if (ds && type == FM_ENTRY_HOME && ds->icon_home_folder_lg.pixels) {