From a77e7b5be48d214e72fbbad14da1fc94d5755138 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Fri, 24 Jul 2026 14:32:38 +0200 Subject: [PATCH] paint: use png icons in browser --- paint/sources/ui/ui_files.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paint/sources/ui/ui_files.c b/paint/sources/ui/ui_files.c index 5ac50a50..9a520729 100644 --- a/paint/sources/ui/ui_files.c +++ b/paint/sources/ui/ui_files.c @@ -347,6 +347,9 @@ char *ui_files_file_browser(ui_handle_t *handle, bool drag_files, char *search, if (dot > -1) { string_array_t *files_all = file_read_directory(handle->text); char *icon_file = string("%s_icon.jpg", substring(f, 0, dot)); + if (string_array_index_of(files_all, icon_file) < 0) { + icon_file = string("%s_icon.png", substring(f, 0, dot)); + } if (string_array_index_of(files_all, icon_file) >= 0) { any_map_set(ui_files_icon_map, string("%s%s%s", handle->text, PATH_SEP, f), icons);