feat: architectural improvements for Apps and System Configuration virtual folders in Files
This commit is contained in:
1 parent
3636546a6e
commit
14971e6f02
15 files changed
+231
-206
No files matched your search
@@ -89,12 +89,12 @@ void desktop_scan_apps(DesktopState* ds) {
|
||||
|
||||
// Load icon from app directory
|
||||
app->icon = {};
|
||||
app->icon_path[0] = '\0';
|
||||
if (icon_file[0]) {
|
||||
char icon_path[128];
|
||||
snprintf(icon_path, sizeof(icon_path),
|
||||
snprintf(app->icon_path, sizeof(app->icon_path),
|
||||
"0:/apps/%s/%s", dirname, icon_file);
|
||||
Color defColor = colors::ICON_COLOR;
|
||||
app->icon = svg_load(icon_path, 20, 20, defColor);
|
||||
app->icon = svg_load(app->icon_path, 20, 20, defColor);
|
||||
}
|
||||
|
||||
doc.destroy();
|
||||
|
||||
Reference in new issue
Block a user