From 2b412b7ed32420e650b9f30245275b0289857858 Mon Sep 17 00:00:00 2001 From: tGecko Date: Thu, 15 Feb 2024 19:15:05 +0100 Subject: [PATCH 1/2] patched MainUI binaries with shadows disabled --- static/build/.tmp_update/bin/MainUI-283-clean | Bin 1443156 -> 1443156 bytes .../build/.tmp_update/bin/MainUI-283-expert | Bin 1443156 -> 1443156 bytes static/build/.tmp_update/bin/MainUI-354-clean | Bin 1443156 -> 1443156 bytes .../build/.tmp_update/bin/MainUI-354-expert | Bin 1443156 -> 1443156 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/static/build/.tmp_update/bin/MainUI-283-clean b/static/build/.tmp_update/bin/MainUI-283-clean index d6e04a18240108d3573b9c13b661c58991990b3c..aaebde08d8831650df64d6116d6c1001922f142b 100644 GIT binary patch delta 103 zcmWN=w+(u5ix+jKF`=Q}5KfTg61*_8vjbATblB bG|ZT@V9AO#8@BA&({kX*i8Gfc$hu!Y>0d9; delta 103 zcmWN=xeb6Y5CA~|=Ksvso3m?#i~z}fkRuWrad17*0ut;<6TA!Fok7g?e$S?|t3-^M b&@g4joCQl(tl6+-$DWo0M^2n?m1RACfPFD^ diff --git a/static/build/.tmp_update/bin/MainUI-283-expert b/static/build/.tmp_update/bin/MainUI-283-expert index 7805be4e5e33ad4cdaefb04ad31a0a59650cb5f1..98e34a0cfe64c622d3c72d532cf96305be9086c6 100644 GIT binary patch delta 103 zcmWN=w+(u5ix+jKF`=Q}5KfTg61*_8vjbATblB bG|ZT@V9AO#8@BA&({kX*i8Gfc$hu!Y>0d9; delta 103 zcmWN=xeb6Y5CA~|=Ksvso3m?#i~z}fkRuWrad17*0ut;<6TA!Fok7g?e$S?|t3-^M b&@g4joCQl(tl6+-$DWo0M^2n?m1RACfPFD^ diff --git a/static/build/.tmp_update/bin/MainUI-354-clean b/static/build/.tmp_update/bin/MainUI-354-clean index 77fc98d28c9a94f869e655969f81e032c324d959..84088e82a36ef71184732135de98dff3acee217d 100644 GIT binary patch delta 103 zcmWN=w+(u5ix+jKF`=Q}5KfTg61*_8vjbATblB bG|ZT@V9AO#8@BA&({kX*i8Gfc$hu!Y>0d9; delta 103 zcmWN=xeb6Y5CA~|=Ksvso3m?#i~z}fkRuWrad17*0ut;<6TA!Fok7g?e$S?|t3-^M b&@g4joCQl(tl6+-$DWo0M^2n?m1RACfPFD^ diff --git a/static/build/.tmp_update/bin/MainUI-354-expert b/static/build/.tmp_update/bin/MainUI-354-expert index 6122efd5738fb3a42345ce68768de03968ff7f21..eed966b8f18e5a5124246b076f6f9d54f3415bbe 100644 GIT binary patch delta 103 zcmWN=w+(u5ix+jKF`=Q}5KfTg61*_8vjbATblB bG|ZT@V9AO#8@BA&({kX*i8Gfc$hu!Y>0d9; delta 103 zcmWN=xeb6Y5CA~|=Ksvso3m?#i~z}fkRuWrad17*0ut;<6TA!Fok7g?e$S?|t3-^M b&@g4joCQl(tl6+-$DWo0M^2n?m1RACfPFD^ From 891acb28635859a274b7040dd2b12ed66207f86e Mon Sep 17 00:00:00 2001 From: tGecko Date: Thu, 15 Feb 2024 19:28:21 +0100 Subject: [PATCH 2/2] Disable text shadows in ListLabels --- src/common/theme/render/list.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/common/theme/render/list.h b/src/common/theme/render/list.h index 30b16a4345..2b84e2e10b 100644 --- a/src/common/theme/render/list.h +++ b/src/common/theme/render/list.h @@ -8,7 +8,7 @@ #define HIDDEN_ITEM_ALPHA 60 -static SDL_Color color_black = {0, 0, 0}; +// static SDL_Color color_black = {0, 0, 0}; void theme_renderListLabel(SDL_Surface *screen, const char *label, SDL_Color fg, int offset_x, int center_y, bool is_active, @@ -18,17 +18,20 @@ void theme_renderListLabel(SDL_Surface *screen, const char *label, SDL_Color fg, SDL_Surface *item_label = TTF_RenderUTF8_Blended(list_font, label, fg); SDL_Rect item_label_rect = {offset_x, center_y - item_label->h / 2}; - SDL_Rect item_shadow_rect = {item_label_rect.x + 1, item_label_rect.y + 2}; SDL_Rect label_crop = {0, 0, label_end - 30, item_label->h}; + /* Maybe shadows will be an option in the future + SDL_Rect item_shadow_rect = {item_label_rect.x + 1, item_label_rect.y + 2}; + if (is_active) { SDL_Surface *item_shadow = TTF_RenderUTF8_Blended(list_font, label, color_black); SDL_BlitSurface(item_shadow, &label_crop, screen, &item_shadow_rect); SDL_FreeSurface(item_shadow); - } - else if (disabled) { + }*/ + + if (disabled) { surfaceSetAlpha(item_label, HIDDEN_ITEM_ALPHA); }