From 00ae975c6fa5122c5c828400f44a5e68cd0cac1c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 15 Aug 2017 01:21:20 +0200 Subject: [PATCH] (materialui) Add another icon --- menu/drivers/materialui.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index ee1c0c5522..f8a8e45cb8 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -85,6 +85,7 @@ enum MUI_TEXTURE_INFO, MUI_TEXTURE_ADD, MUI_TEXTURE_SETTINGS, + MUI_TEXTURE_FILE, MUI_TEXTURE_LAST }; @@ -199,6 +200,8 @@ static const char *mui_texture_path(unsigned id) return "add.png"; case MUI_TEXTURE_SETTINGS: return "settings.png"; + case MUI_TEXTURE_FILE: + return "file.png"; } return NULL; @@ -788,6 +791,9 @@ static void mui_render_label_value(mui_handle_t *mui, mui_node_t *node, switch (type) { + case FILE_TYPE_PLAIN: + texture_switch2 = mui->textures.list[MUI_TEXTURE_FILE]; + break; case FILE_TYPE_COMPRESSED: texture_switch2 = mui->textures.list[MUI_TEXTURE_ARCHIVE]; break;