From ef464d978554f2c1a9cc92a3646ac6747287a612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mercan=20K=C3=B6m=C3=BCr?= Date: Sat, 19 Oct 2019 14:50:58 +0300 Subject: [PATCH] New XMB Menu Color Theme: Sunbeam --- intl/msg_hash_ar.h | 2 ++ intl/msg_hash_chs.h | 2 ++ intl/msg_hash_cht.h | 2 ++ intl/msg_hash_de.h | 2 ++ intl/msg_hash_el.h | 4 ++++ intl/msg_hash_eo.h | 2 ++ intl/msg_hash_es.h | 2 ++ intl/msg_hash_fr.h | 4 ++++ intl/msg_hash_it.h | 2 ++ intl/msg_hash_ja.h | 4 ++++ intl/msg_hash_ko.h | 4 ++++ intl/msg_hash_nl.h | 2 ++ intl/msg_hash_pl.h | 2 ++ intl/msg_hash_pt_br.h | 4 ++++ intl/msg_hash_pt_pt.h | 2 ++ intl/msg_hash_ru.h | 2 ++ intl/msg_hash_tr.h | 4 ++++ intl/msg_hash_us.h | 4 ++++ intl/msg_hash_vn.h | 2 ++ menu/drivers/xmb.c | 9 +++++++++ menu/menu_defines.h | 1 + menu/menu_setting.c | 6 ++++++ msg_hash.h | 1 + 23 files changed, 69 insertions(+) diff --git a/intl/msg_hash_ar.h b/intl/msg_hash_ar.h index a7c54d9769..d443d00328 100644 --- a/intl/msg_hash_ar.h +++ b/intl/msg_hash_ar.h @@ -1929,6 +1929,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "Undersea") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Volcanic Red") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Menu Shader Pipeline") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_chs.h b/intl/msg_hash_chs.h index ac3c28b01b..492f454265 100644 --- a/intl/msg_hash_chs.h +++ b/intl/msg_hash_chs.h @@ -1989,6 +1989,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "海底") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "火山红") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "菜单渲染器管线") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_cht.h b/intl/msg_hash_cht.h index 5718a646c9..8acd016bbf 100644 --- a/intl/msg_hash_cht.h +++ b/intl/msg_hash_cht.h @@ -1795,6 +1795,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "海底") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "火山紅") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "選單Shader管線") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_de.h b/intl/msg_hash_de.h index 8b2c62d5f5..15fa864349 100644 --- a/intl/msg_hash_de.h +++ b/intl/msg_hash_de.h @@ -1878,6 +1878,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "Undersea") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Volcanic Red") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Menü-Shader") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_el.h b/intl/msg_hash_el.h index be5fcb9502..5c51a6d65b 100644 --- a/intl/msg_hash_el.h +++ b/intl/msg_hash_el.h @@ -3444,6 +3444,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Ηφαιστιακό Κόκκινο" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Menu Shader Pipeline" diff --git a/intl/msg_hash_eo.h b/intl/msg_hash_eo.h index b507274061..efeed229a4 100644 --- a/intl/msg_hash_eo.h +++ b/intl/msg_hash_eo.h @@ -1711,6 +1711,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "Undersea") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Volcanic Red") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Menu Shader Pipeline") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_es.h b/intl/msg_hash_es.h index 9b52b3d50c..b4e9134fb2 100644 --- a/intl/msg_hash_es.h +++ b/intl/msg_hash_es.h @@ -3516,6 +3516,8 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Rojo Volcánico" ) +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Menú Shader Pipeline" diff --git a/intl/msg_hash_fr.h b/intl/msg_hash_fr.h index e2cd7593bf..f4659bed0a 100644 --- a/intl/msg_hash_fr.h +++ b/intl/msg_hash_fr.h @@ -3925,6 +3925,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Rouge volcanique" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Pipeline de shader du menu (fond animé) " diff --git a/intl/msg_hash_it.h b/intl/msg_hash_it.h index f46fc305d7..3ef84ef3b0 100644 --- a/intl/msg_hash_it.h +++ b/intl/msg_hash_it.h @@ -1878,6 +1878,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "Sottomarino") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Rosso vulcanico") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Menu Shader Pipeline") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_ja.h b/intl/msg_hash_ja.h index a4723a9957..30e5613b79 100644 --- a/intl/msg_hash_ja.h +++ b/intl/msg_hash_ja.h @@ -4172,6 +4172,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "ボルカニックレッド" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam" +) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "メニューのシェーダパイプライン" diff --git a/intl/msg_hash_ko.h b/intl/msg_hash_ko.h index 10665b602b..0268586ce9 100644 --- a/intl/msg_hash_ko.h +++ b/intl/msg_hash_ko.h @@ -4154,6 +4154,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "볼캐닉 빨강" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "메뉴 쉐이더 파이프라인" diff --git a/intl/msg_hash_nl.h b/intl/msg_hash_nl.h index dc5a9006aa..c7d02d4fe6 100644 --- a/intl/msg_hash_nl.h +++ b/intl/msg_hash_nl.h @@ -1713,6 +1713,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "Undersea") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Vulkanisch Rood") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Menu Shader Pipeline") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_pl.h b/intl/msg_hash_pl.h index a880293791..14b6339adf 100644 --- a/intl/msg_hash_pl.h +++ b/intl/msg_hash_pl.h @@ -1960,6 +1960,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "Podmorski") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Czerwień wulkaniczna") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Animowany efekt tłą") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_pt_br.h b/intl/msg_hash_pt_br.h index 84ea6eb84c..1168ffd470 100644 --- a/intl/msg_hash_pt_br.h +++ b/intl/msg_hash_pt_br.h @@ -4154,6 +4154,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Vermelho Vulcânico" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Pipeline do Shader de Menu" diff --git a/intl/msg_hash_pt_pt.h b/intl/msg_hash_pt_pt.h index 90a6c63371..c59842a0cd 100644 --- a/intl/msg_hash_pt_pt.h +++ b/intl/msg_hash_pt_pt.h @@ -1790,6 +1790,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "Submarino") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Vermelho vulcânico") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Shader do canal do menu") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_ru.h b/intl/msg_hash_ru.h index e05c581972..f883cbdfbd 100644 --- a/intl/msg_hash_ru.h +++ b/intl/msg_hash_ru.h @@ -1826,6 +1826,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "Водные глубины") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Вулканический красный") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Шейдерный фон меню") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/intl/msg_hash_tr.h b/intl/msg_hash_tr.h index fbf12ff887..9bcb013426 100644 --- a/intl/msg_hash_tr.h +++ b/intl/msg_hash_tr.h @@ -3954,6 +3954,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_MORNING_BLUE, "Sabah Mavisi" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Gün Işığı" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_DARK_PURPLE, "Koyu Mor" diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 39f00a69b3..ef9e7c7924 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -4176,6 +4176,10 @@ MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_MORNING_BLUE, "Morning Blue" ) +MSG_HASH( + MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_DARK_PURPLE, "Dark Purple" diff --git a/intl/msg_hash_vn.h b/intl/msg_hash_vn.h index 097421f360..ea5b3b2193 100644 --- a/intl/msg_hash_vn.h +++ b/intl/msg_hash_vn.h @@ -1823,6 +1823,8 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_UNDERSEA, "Undersea") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_VOLCANIC_RED, "Volcanic Red") +MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, + "Sunbeam") MSG_HASH(MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE, "Menu Shader Pipeline") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SCALE_FACTOR, diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 8aa2140164..ba7f879304 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -454,6 +454,13 @@ float gradient_morning_blue[16] = { 170/255.0, 200/255.0, 252/255.0, 1.00, }; +float gradient_sunbeam[16] = { + 20/255.0, 13/255.0, 20/255.0, 1.0, + 30/255.0, 72/255.0, 114/255.0, 1.0, + 1.0, 1.0, 1.0, 1.00, + 0.1, 0.0, 0.1, 1.00, +}; + static void xmb_calculate_visible_range(const xmb_handle_t *xmb, unsigned height, size_t list_size, unsigned current, unsigned *first, unsigned *last); @@ -585,6 +592,8 @@ static float *xmb_gradient_ident(video_frame_info_t *video_info) return &gradient_light[0]; case XMB_THEME_MORNING_BLUE: return &gradient_morning_blue[0]; + case XMB_THEME_SUNBEAM: + return &gradient_sunbeam[0]; case XMB_THEME_LEGACY_RED: default: break; diff --git a/menu/menu_defines.h b/menu/menu_defines.h index 0c30a63d80..d247b4cb93 100644 --- a/menu/menu_defines.h +++ b/menu/menu_defines.h @@ -171,6 +171,7 @@ enum xmb_color_theme XMB_THEME_LIGHT, XMB_THEME_WALLPAPER, XMB_THEME_MORNING_BLUE, + XMB_THEME_SUNBEAM, XMB_THEME_LAST }; diff --git a/menu/menu_setting.c b/menu/menu_setting.c index de5df6cb70..20fd566d8d 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -3956,6 +3956,12 @@ static void setting_get_string_representation_uint_xmb_menu_color_theme( MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_MORNING_BLUE), len); break; + case XMB_THEME_SUNBEAM: + strlcpy(s, + msg_hash_to_str( + MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM), + len); + break; } } #endif diff --git a/msg_hash.h b/msg_hash.h index 68ae5f9952..16c4b81f0d 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -580,6 +580,7 @@ enum msg_hash_enums MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_LIGHT, MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_PLAIN, MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_MORNING_BLUE, + MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME_SUNBEAM, MENU_LABEL(SHADER_PIPELINE_RIBBON_SIMPLIFIED), MENU_LABEL(SHADER_PIPELINE_RIBBON),