From 87b3032139995a73e4b9dbf1c37e515cb1466b28 Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Mon, 10 Feb 2025 12:52:08 +0200 Subject: [PATCH] XMB: Color tuning (#17547) --- gfx/gfx_display.h | 2 +- menu/drivers/xmb.c | 30 +++++++----------------------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/gfx/gfx_display.h b/gfx/gfx_display.h index fc2bcdd243..79aac74114 100644 --- a/gfx/gfx_display.h +++ b/gfx/gfx_display.h @@ -32,7 +32,7 @@ #include "../retroarch.h" #include "../gfx/font_driver.h" -#define GFX_SHADOW_ALPHA 0.75f +#define GFX_SHADOW_ALPHA 1.00f /* Number of pixels corner-to-corner on a 1080p * display: diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index cccde86081..325482a2c7 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -779,10 +779,10 @@ static float *xmb_gradient_ident(unsigned xmb_color_theme) 0.05, 0.05, 0.05, 1.0, }; static float gradient_light[16] = { - 0.5, 0.5, 0.5, 1.0, - 0.5, 0.5, 0.5, 1.0, - 0.5, 0.5, 0.5, 1.0, - 0.5, 0.5, 0.5, 1.0, + 0.25, 0.25, 0.25, 1.0, + 0.25, 0.25, 0.25, 1.0, + 0.25, 0.25, 0.25, 1.0, + 0.25, 0.25, 0.25, 1.0, }; switch (xmb_color_theme) @@ -7539,7 +7539,7 @@ static void xmb_layout_ps3(xmb_handle_t *xmb, int width) xmb->items_active_alpha = 1.0; xmb->items_passive_alpha = 0.75; - xmb->shadow_offset = 3.0 * scale_factor; + xmb->shadow_offset = 4.0 * scale_factor; if (xmb->shadow_offset < 1.0) xmb->shadow_offset = 1.0; if (xmb->shadow_offset > 2.0) @@ -7594,7 +7594,7 @@ static void xmb_layout_psp(xmb_handle_t *xmb, int width) xmb->items_active_alpha = 1.0; xmb->items_passive_alpha = 0.75; - xmb->shadow_offset = 3.0 * scale_factor; + xmb->shadow_offset = 4.0 * scale_factor; if (xmb->shadow_offset < 1.0) xmb->shadow_offset = 1.0; if (xmb->shadow_offset > 2.0) @@ -8372,23 +8372,7 @@ static bool xmb_context_reset_textures( || menu_xmb_theme == XMB_ICON_THEME_AUTOMATIC_INVERTED) memcpy(xmb_item_color, xmb_coord_black, sizeof(xmb_item_color)); else - { - if ( menu_xmb_theme == XMB_ICON_THEME_MONOCHROME - || menu_xmb_theme == XMB_ICON_THEME_AUTOMATIC) - { - for (i = 0; i < 16; i++) - { - if ((i == 3) || (i == 7) || (i == 11) || (i == 15)) - { - xmb_item_color[i] = 1; - continue; - } - xmb_item_color[i] = 0.95; - } - } - else - memcpy(xmb_item_color, xmb_coord_white, sizeof(xmb_item_color)); - } + memcpy(xmb_item_color, xmb_coord_white, sizeof(xmb_item_color)); return true; }