Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Oct 17, 2023
1 parent 360e83b commit bdf8737
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@ COLORREF GetMainWindowBackgroundColor() {
// Special behavior for light theme.
// TODO: migrate from prefs to theme.
if (currentThemeIndex == 0) {
// for backward compatibility use a value that older versions will render as yellow
#define MAIN_WINDOW_BG_COLOR_DEFAULT (RGB(0xff, 0xf2, 0) - 0x80000000)
// for backward compatibility use a value that older versions will render as yellow
constexpr COLORREF kMainWinBgColDefault = (RGB(0xff, 0xf2, 0) - 0x80000000);

ParsedColor* bgParsed = GetPrefsColor(gGlobalPrefs->mainWindowBackground);
if (MAIN_WINDOW_BG_COLOR_DEFAULT != bgParsed->col) {
if (kMainWinBgColDefault != bgParsed->col) {
bgColor = bgParsed->col;
}
}
Expand Down

0 comments on commit bdf8737

Please sign in to comment.