From 1539e720f186b1d6830bde641029effaf2bb5138 Mon Sep 17 00:00:00 2001 From: sonninnos Date: Sat, 18 Jun 2022 11:22:50 +0300 Subject: [PATCH] Add proper icons for shader items --- menu/drivers/materialui.c | 19 ++++++++++++------- menu/drivers/ozone.c | 5 +++++ menu/drivers/xmb.c | 5 +++++ 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 1e96bc78f8..c483b51425 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -10411,7 +10411,9 @@ static void materialui_list_insert( else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_RENAME_ENTRY)) || string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_RESET_CORE_ASSOCIATION)) || string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_MANAGER_RESET_CORES)) || - string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_MANAGER_CLEAN_PLAYLIST))) + string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_MANAGER_CLEAN_PLAYLIST)) || + string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_SHADER_APPLY_CHANGES)) + ) { node->icon_texture_index = MUI_TEXTURE_RENAME; node->icon_type = MUI_ICON_TYPE_INTERNAL; @@ -10510,8 +10512,7 @@ static void materialui_list_insert( node->icon_type = MUI_ICON_TYPE_INTERNAL; } else if ( - string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_LOAD_CONTENT_LIST)) - || + string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_LOAD_CONTENT_LIST)) || string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_SUBSYSTEM_SETTINGS)) || string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_SUBSYSTEM_ADD)) ) @@ -10519,15 +10520,19 @@ static void materialui_list_insert( node->icon_texture_index = MUI_TEXTURE_LOAD_CONTENT; node->icon_type = MUI_ICON_TYPE_INTERNAL; } - else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DELETE_ENTRY)) || - string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DELETE_PLAYLIST))) + else if ( + string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DELETE_ENTRY)) || + string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DELETE_PLAYLIST)) || + string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE)) + ) { node->icon_texture_index = MUI_TEXTURE_REMOVE; node->icon_type = MUI_ICON_TYPE_INTERNAL; } - else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY)) || + else if ( + string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY)) || string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_NETWORK_HOSTING_SETTINGS)) || - string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_NETWORK_INFORMATION)) + string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_NETWORK_INFORMATION)) ) { node->icon_texture_index = MUI_TEXTURE_NETPLAY; diff --git a/menu/drivers/ozone.c b/menu/drivers/ozone.c index 0580e8a097..165d69e948 100644 --- a/menu/drivers/ozone.c +++ b/menu/drivers/ozone.c @@ -1823,6 +1823,11 @@ static uintptr_t ozone_entries_icon_get_texture(ozone_handle_t *ozone, case MENU_ENUM_LABEL_DELETE_PLAYLIST: case MENU_ENUM_LABEL_CORE_DELETE_BACKUP_LIST: case MENU_ENUM_LABEL_VIDEO_FILTER_REMOVE: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE_GLOBAL: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE_CORE: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE_PARENT: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE_GAME: case MENU_ENUM_LABEL_AUDIO_DSP_PLUGIN_REMOVE: case MENU_ENUM_LABEL_GAME_SPECIFIC_CORE_OPTIONS_REMOVE: case MENU_ENUM_LABEL_FOLDER_SPECIFIC_CORE_OPTIONS_REMOVE: diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 00a92b17e1..cc6dcda4ed 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -2775,6 +2775,11 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb, case MENU_ENUM_LABEL_DELETE_PLAYLIST: case MENU_ENUM_LABEL_CORE_DELETE_BACKUP_LIST: case MENU_ENUM_LABEL_VIDEO_FILTER_REMOVE: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE_GLOBAL: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE_CORE: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE_PARENT: + case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_REMOVE_GAME: case MENU_ENUM_LABEL_AUDIO_DSP_PLUGIN_REMOVE: case MENU_ENUM_LABEL_GAME_SPECIFIC_CORE_OPTIONS_REMOVE: case MENU_ENUM_LABEL_FOLDER_SPECIFIC_CORE_OPTIONS_REMOVE: