Verified Commit 0bea4e6e authored by Alois Wohlschlager's avatar Alois Wohlschlager 🌾
Browse files

Support svgz buttons in Aurorae themes

The Aurorae decoration engine in KWin checks for svgz icons if the svg
does not exist. Do the same thing here.

BUG: 432712
parent c3523cce
......@@ -25,7 +25,10 @@ void AuroraeDecorationPainter::paintButton(QPainter &painter, const QString &but
const QString buttonFileName = buttonTypeToFileName(buttonType);
const QString elementIdName = buttonStateToElementId(buttonState);
QSvgRenderer buttonRenderer {m_themePath + buttonFileName};
const QString buttonFilePath = m_themePath + buttonFileName;
QSvgRenderer buttonRenderer;
buttonRenderer.load(buttonFilePath) || buttonRenderer.load(buttonFilePath + "z");
buttonRenderer.render(&painter, elementIdName, DecorationPainter::ButtonGeometry);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment