further revised icon system
- Move QRC generation to CMake so they can be generated automatically rather than with generate-style.sh - Removed QRC generation from generate-style.sh - Added extra "disabled icon" generation in generate-style.sh - Added disabled icon loading to main code
This commit is contained in:
@@ -139,7 +139,9 @@ QIcon icon::Create(const QString& theme, const QString &name)
|
||||
|
||||
for (int i=0;i<ICON_SIZE_COUNT;i++) {
|
||||
icon.addFile(QStringLiteral("%1/png/%2.%3.png").arg(theme, name, QString::number(ICON_SIZES[i])),
|
||||
QSize(ICON_SIZES[i], ICON_SIZES[i]));
|
||||
QSize(ICON_SIZES[i], ICON_SIZES[i]), QIcon::Normal);
|
||||
icon.addFile(QStringLiteral("%1/png/%2.%3.disabled.png").arg(theme, name, QString::number(ICON_SIZES[i])),
|
||||
QSize(ICON_SIZES[i], ICON_SIZES[i]), QIcon::Disabled);
|
||||
}
|
||||
|
||||
return icon;
|
||||
|
||||
Reference in New Issue
Block a user