DynamicPlaylistControls: Replace `u'%'` with `u"%"_s`

Fixes #1572
This commit is contained in:
Jonas Kvinge 2024-10-04 16:29:04 +02:00
parent 731f670a2b
commit 20394271c7
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ DynamicPlaylistControls::DynamicPlaylistControls(QWidget *parent)
stylesheet_file.close(); stylesheet_file.close();
QColor color = palette().color(QPalette::Light); QColor color = palette().color(QPalette::Light);
color.setAlpha(50); color.setAlpha(50);
stylesheet.replace("%background"_L1, QStringLiteral("rgba(%1, %2, %3, %4%5)").arg(QString::number(color.red()), QString::number(color.green()), QString::number(color.blue()), QString::number(color.alpha())).arg(u'%')); stylesheet.replace("%background"_L1, QStringLiteral("rgba(%1, %2, %3, %4%5)").arg(QString::number(color.red()), QString::number(color.green()), QString::number(color.blue()), QString::number(color.alpha()), u"%"_s));
setStyleSheet(stylesheet); setStyleSheet(stylesheet);
} }