Skip to content

Commit

Permalink
Merge from 'release/v8.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Sep 18, 2024
1 parent 15b95e4 commit 6ee8649
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 0 additions & 6 deletions common/loginpage/src/panelsettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,6 @@
}


if ( nativevars.localthemes ) {
for ( const t of nativevars.localthemes ) {
const _theme_title = t.l10n[utils.Lang.id] || t.name;
_combo.append(`<option value=${t.id} ml10n>${_theme_title}</option>`);
}
}

if ( !$optsUITheme ) {
($optsUITheme = _combo)
Expand Down
4 changes: 1 addition & 3 deletions win-linux/extras/update-daemon/src/classes/csvcmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
#ifndef URL_APPCAST_DEV_CHANNEL
# define URL_APPCAST_DEV_CHANNEL ""
#endif
#define CMD_ARGUMENT_UPDATES_CHANNEL _T("--updates-appcast-channel")
#define UPDATE_PATH _T("/" REG_APP_NAME "Updates")
#define BACKUP_PATH _T("/" REG_APP_NAME "Backup")
#define SUCCES_UNPACKED _T("/success_unpacked.txt")
Expand Down Expand Up @@ -258,8 +257,7 @@ CSvcManager::CSvcManager():
m_pDownloader(new CDownloader),
m_pUnzip(new CUnzip)
{
m_checkUrl = (NS_Utils::cmdArgContains(CMD_ARGUMENT_UPDATES_CHANNEL) && NS_Utils::cmdArgValue(CMD_ARGUMENT_UPDATES_CHANNEL) == _T("dev"))
? _T(URL_APPCAST_DEV_CHANNEL) : _T(URL_APPCAST_UPDATES);
m_checkUrl = NS_Utils::cmdArgContains(_T("--appcast-dev-channel")) ? _T(URL_APPCAST_DEV_CHANNEL) : _T(URL_APPCAST_UPDATES);
NS_Logger::WriteLog(m_checkUrl.empty() ? _T("Updates is off, URL is empty.") : _T("Updates is on, URL: ") + m_checkUrl);
init();
}
Expand Down
6 changes: 5 additions & 1 deletion win-linux/src/windows/platform_win/cwindowplatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ static QColor calcBorderColor(bool isActive = true, const QColor &bkgColor = QCo
*(FARPROC*)&DwmGetColorizationColor = GetProcAddress(module, "DwmGetColorizationColor");
}
if (DwmGetColorizationColor && SUCCEEDED(DwmGetColorizationColor(&dwcolor, &opaque))) {
return QColor((dwcolor & 0xff0000) >> 16, (dwcolor & 0xff00) >> 8, dwcolor & 0xff);
float a = (float)((dwcolor >> 24) & 0xff)/255;
int r = (int)(((dwcolor >> 16) & 0xff) * a + 255 * (1 - a));
int g = (int)(((dwcolor >> 8) & 0xff) * a + 255 * (1 - a));
int b = (int)((dwcolor & 0xff) * a + 255 * (1 - a));
return QColor(r, g, b);
}
} else {
QSettings reg_lt("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", QSettings::NativeFormat);
Expand Down

0 comments on commit 6ee8649

Please sign in to comment.