Use local var

This commit is contained in:
luisangelsm
2026-01-23 21:45:13 +01:00
parent 561c2ae568
commit 3bdbf4424b

View File

@ -1023,7 +1023,7 @@ void Viewer::applyTheme(const Theme &theme)
{
const auto viewerTheme = theme.viewer;
updateBackgroundColor(Configuration::getConfiguration().getBackgroundColor(theme.viewer.defaultBackgroundColor));
updateBackgroundColor(Configuration::getConfiguration().getBackgroundColor(viewerTheme.defaultBackgroundColor));
const QString textColor = viewerTheme.defaultTextColor.name(QColor::HexArgb);
content->setStyleSheet(QStringLiteral("QLabel { color : %1; background: transparent; }").arg(textColor));