Add shadow res option (thanks to koren), move databank, remove legacy options

This commit is contained in:
nastys
2022-05-21 18:03:21 +02:00
parent 057a267fe8
commit 0a3b41977e
12 changed files with 106 additions and 111 deletions
+3 -18
View File
@@ -395,9 +395,6 @@ namespace Launcher {
void updateStyle()
{
int nDarkLauncher = GetPrivateProfileIntW(LAUNCHER_SECTION, L"dark_launcher", FALSE, CONFIG_FILE);
int nAcrylicLauncher = GetPrivateProfileIntW(LAUNCHER_SECTION, L"acrylic_blur", FALSE, CONFIG_FILE);
bool useAcrylic = nAcrylicLauncher && setBlur(hWnd, AccentState::ACCENT_ENABLE_ACRYLICBLURBEHIND);
Color colourBg, colourBg2, colourFg;
@@ -416,22 +413,10 @@ namespace Launcher {
colourBg2 = Color::FromArgb(242, 242, 242);
}
if (useAcrylic)
{
this->button_Discord->BackColor = colourBg2;
this->button_github->BackColor = colourBg2;
this->button_Wiki->BackColor = colourBg2;
colourBg2 = Color::FromArgb(255, 0, 255);
}
else
{
setBlur(hWnd, AccentState::ACCENT_DISABLED);
this->button_Discord->BackColor = Color::Transparent;
this->button_github->BackColor = Color::Transparent;
this->button_Wiki->BackColor = Color::Transparent;
}
this->button_Discord->BackColor = Color::Transparent;
this->button_github->BackColor = Color::Transparent;
this->button_Wiki->BackColor = Color::Transparent;
this->tabPage_Resolution->BackColor = colourBg;
this->tabPage_Resolution->ForeColor = colourFg;