From c39ce0e04beb3270a0133de7b66fc0cad705e0df Mon Sep 17 00:00:00 2001 From: Alfrix Date: Thu, 23 Aug 2018 16:41:07 -0300 Subject: [PATCH] Add Automatic theme It has been in the assets folder a long time by now --- intl/msg_hash_us.h | 4 ++++ menu/cbs/menu_cbs_get_value.c | 4 ++++ menu/drivers/xmb.c | 2 ++ menu/menu_driver.h | 1 + msg_hash.h | 1 + 5 files changed, 12 insertions(+) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index ab19bb328c44..31c4293bf1d3 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -3294,6 +3294,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_DOTART, "Dot-Art" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_AUTOMATIC, + "Automatic" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME, "Menu Color Theme" diff --git a/menu/cbs/menu_cbs_get_value.c b/menu/cbs/menu_cbs_get_value.c index 066358dfed2a..4c9aaec8cd4c 100644 --- a/menu/cbs/menu_cbs_get_value.c +++ b/menu/cbs/menu_cbs_get_value.c @@ -976,6 +976,10 @@ static void menu_action_setting_disp_set_label_xmb_theme( strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_CUSTOM), len); break; + case XMB_ICON_THEME_AUTOMATIC: + strlcpy(s, + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_AUTOMATIC), len); + break; } } diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index b3a8349f97d0..e2a2f2b3f4b9 100755 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -449,6 +449,8 @@ const char* xmb_theme_ident(void) return "custom"; case XMB_ICON_THEME_MONOCHROME_INVERTED: return "monochrome-inverted"; + case XMB_ICON_THEME_AUTOMATIC: + return "automatic"; case XMB_ICON_THEME_MONOCHROME: default: break; diff --git a/menu/menu_driver.h b/menu/menu_driver.h index 357f677b19a9..c802d8e81255 100644 --- a/menu/menu_driver.h +++ b/menu/menu_driver.h @@ -278,6 +278,7 @@ enum xmb_icon_theme XMB_ICON_THEME_CUSTOM, XMB_ICON_THEME_RETROSYSTEM, XMB_ICON_THEME_MONOCHROME_INVERTED, + XMB_ICON_THEME_AUTOMATIC, XMB_ICON_THEME_LAST }; diff --git a/msg_hash.h b/msg_hash.h index 3c93035ef78c..1ee633ba07e6 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -467,6 +467,7 @@ enum msg_hash_enums MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_SYSTEMATIC, MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_DOTART, MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_CUSTOM, + MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_AUTOMATIC, MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_LEGACY_RED, MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_DARK_PURPLE,