- Web: favicon.ico + png icons under static/, served from the site root and linked from every page head. - Android: the artwork becomes the launcher icon — the 432px adaptive foreground over the gruvbox background, replacing the placeholder vector drawables. - Desktop: the icon is the Qt window/taskbar icon (embedded via app.qrc), and the app is now an installable package — a wrapped binary, a photog.desktop entry, and hicolor icons — so `nix profile install ./desktop` puts "Photog" in the application menu.
26 lines
789 B
C++
26 lines
789 B
C++
#include <QApplication>
|
|
#include <QIcon>
|
|
|
|
#include "mainwindow.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QApplication app(argc, argv);
|
|
app.setApplicationName(QStringLiteral("photogallery-uploader"));
|
|
app.setOrganizationName(QStringLiteral("inflo.ws"));
|
|
|
|
// Window / taskbar / alt-tab icon, embedded via app.qrc. Several sizes so
|
|
// the small titlebar rendering stays crisp rather than downscaling 512px.
|
|
QIcon icon;
|
|
icon.addFile(QStringLiteral(":/icons/app-32.png"));
|
|
icon.addFile(QStringLiteral(":/icons/app-128.png"));
|
|
icon.addFile(QStringLiteral(":/icons/app-256.png"));
|
|
icon.addFile(QStringLiteral(":/icons/app-512.png"));
|
|
app.setWindowIcon(icon);
|
|
|
|
MainWindow window;
|
|
window.resize(440, 680);
|
|
window.show();
|
|
return app.exec();
|
|
}
|