diff --git a/Modules/about-distro/README b/Modules/about-distro/README --- a/Modules/about-distro/README +++ b/Modules/about-distro/README @@ -3,5 +3,9 @@ Essentially you place an rc file in the file system that defines the distro logo and website url. The file ought to be in some XDG_CONFIG_DIRS dir. +Do note that the LogoPath may also be an icon name that gets resolved through +the icon theme. Ideally the logo should be an SVG so as to be scalable for +different screeen resolutions. + e.g. pkexec cp `pwd`/example/kcm-about-distrorc.ex /etc/xdg/kcm-about-distrorc diff --git a/Modules/about-distro/src/Module.cpp b/Modules/about-distro/src/Module.cpp --- a/Modules/about-distro/src/Module.cpp +++ b/Modules/about-distro/src/Module.cpp @@ -148,13 +148,8 @@ KConfig::NoGlobals); KConfigGroup cg = KConfigGroup(config, "General"); - const QString logoPath = cg.readEntry("LogoPath", QString()); - QPixmap logo; - if (logoPath.isEmpty()) { - logo = QIcon::fromTheme(QStringLiteral("start-here-kde")).pixmap(128, 128); - } else { - logo = QPixmap(logoPath); - } + const QString logoPath = cg.readEntry("LogoPath", QStringLiteral("start-here-kde")); + const QPixmap logo = QIcon::fromTheme(logoPath).pixmap(128, 128); ui->logoLabel->setPixmap(logo); OSRelease os;