Changeset View
Changeset View
Standalone View
Standalone View
src/qt/networkstyle.cpp
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | if (iconColorHueShift != 0 && iconColorSaturationReduction != 0) { | ||||
} | } | ||||
col.setHsl(h, s, l, a); | col.setHsl(h, s, l, a); | ||||
// set the pixel | // set the pixel | ||||
scL[x] = col.rgba(); | scL[x] = col.rgba(); | ||||
} | } | ||||
} | } | ||||
// convert back to QPixmap | // convert back to QPixmap | ||||
pixmap.convertFromImage(img); | pixmap.convertFromImage(img); | ||||
} | } | ||||
appIcon = QIcon(pixmap); | appIcon = QIcon(pixmap); | ||||
trayAndWindowIcon = QIcon(pixmap.scaled(QSize(256, 256))); | trayAndWindowIcon = QIcon(pixmap.scaled(QSize(256, 256))); | ||||
} | } | ||||
const NetworkStyle *NetworkStyle::instantiate(const QString &networkId) { | const NetworkStyle *NetworkStyle::instantiate(const QString &networkId) { | ||||
Show All 10 Lines |