Skip to content

Commit

Permalink
Recolor UTTT menu
Browse files Browse the repository at this point in the history
  • Loading branch information
AEFeinstein committed Dec 3, 2024
1 parent 2156aa0 commit 5cc8789
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions main/modes/games/ultimateTTT/ultimateTTT.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,19 @@ static void tttEnterMode(void)

// Initialize a menu renderer
ttt->menuRenderer = initMenuManiaRenderer(&ttt->font_righteous, NULL, &ttt->font_rodin);
// Color the menu like Poe
led_t menuColor = {
.r = 0xFF,
.g = 0x00,
.b = 0x00,
};
static const paletteColor_t shadowColors[] = {c500, c511, c522, c533, c544, c555, c544, c533, c522, c511};
recolorMenuManiaRenderer(ttt->menuRenderer, //
c500, c555, c111, // titleBgColor, titleTextColor, textOutlineColor
c333, // bgColor
c534, c544, // outerRingColor, innerRingColor
c212, c555, // rowColor, rowTextColor
shadowColors, ARRAY_SIZE(shadowColors), menuColor);

// Initialize the main menu
ttt->menu = initMenu(tttName, tttMenuCb);
Expand Down

0 comments on commit 5cc8789

Please sign in to comment.