Skip to content

Commit

Permalink
fix memory explorer color when in main for dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvita committed Mar 8, 2022
1 parent d86185f commit 4dc3f55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/theme.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ typedef struct {
color_t textColor;
color_t unselectedColor;
color_t backgroundColor;
color_t mainbackgroundColor;
color_t highlightColor;
color_t selectedColor;
color_t separatorColor;
Expand Down
2 changes: 1 addition & 1 deletion source/guis/gui_cheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ void GuiCheats::drawEditRAMMenu2()
if (m_searchMenuLocation != SEARCH_editRAM2)
return;
if (m_EditorBaseAddr >= m_mainBaseAddr && m_EditorBaseAddr <= m_mainend)
Gui::drawRectangle(0, 0, Gui::g_framebuffer_width, Gui::g_framebuffer_height, Gui::makeColor(0xFF, 0xFF, 0xC0, 0x40));
Gui::drawRectangle(0, 0, Gui::g_framebuffer_width, Gui::g_framebuffer_height, currTheme.mainbackgroundColor);
else
Gui::drawRectangle(0, 0, Gui::g_framebuffer_width, Gui::g_framebuffer_height, currTheme.backgroundColor); //background
Gui::drawText(font24, 30, 10 , currTheme.textColor, "\uE132 Memory Explorer");
Expand Down
2 changes: 2 additions & 0 deletions source/theme.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ void setTheme(ColorSetId colorSetId) {
.textColor = RGBA8(0x00, 0x00, 0x00, 0xFF),
.unselectedColor = RGBA8(0xB4, 0xB4, 0xB4, 0xFF),
.backgroundColor = RGBA8(0xEA, 0xEA, 0xEA, 0xFF),
.mainbackgroundColor = RGBA8(0xFF, 0xFF, 0xC0, 0x40),
.highlightColor = RGBA8(0x27, 0xA3, 0xC7, 0xFF),
.selectedColor = RGBA8(0x50, 0x2D, 0xE4, 0xFF),
.separatorColor = RGBA8(0xA0, 0xA0, 0xA0, 0xFF),
Expand All @@ -29,6 +30,7 @@ void setTheme(ColorSetId colorSetId) {
.textColor = RGBA8(0xFF, 0xFF, 0xFF, 0xFF),
.unselectedColor = RGBA8(0x6C, 0x6C, 0x6C, 0xFF),
.backgroundColor = RGBA8(0x31, 0x31, 0x31, 0xFF),
.mainbackgroundColor = RGBA8(0x80, 0x80, 0xC0, 0x40),
.highlightColor = RGBA8(0x27, 0xA3, 0xC7, 0xFF),
.selectedColor = RGBA8(0x59, 0xED, 0xC0, 0xFF),
.separatorColor = RGBA8(0x60, 0x60, 0x60, 0xFF),
Expand Down

0 comments on commit 4dc3f55

Please sign in to comment.