2010-07-09 04:29:54 +08:00
|
|
|
diff -Naur kdebase-workspace-4.4.92.orig/plasma/desktop/applets/kickoff/applet/applet.cpp kdebase-workspace-4.4.92/plasma/desktop/applets/kickoff/applet/applet.cpp
|
|
|
|
--- kdebase-workspace-4.4.92.orig/plasma/desktop/applets/kickoff/applet/applet.cpp 2010-07-07 19:10:16.000000000 +0200
|
|
|
|
+++ kdebase-workspace-4.4.92/plasma/desktop/applets/kickoff/applet/applet.cpp 2010-07-08 03:42:54.993128535 +0200
|
|
|
|
@@ -45,6 +45,9 @@
|
|
|
|
#include "ui/launcher.h"
|
|
|
|
#include "core/recentapplications.h"
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2010-07-09 04:29:54 +08:00
|
|
|
+// Branding
|
|
|
|
+#include <QFile>
|
|
|
|
+
|
|
|
|
class LauncherApplet::Private
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
@@ -187,7 +190,10 @@
|
|
|
|
void LauncherApplet::configChanged()
|
2010-05-22 06:25:44 +08:00
|
|
|
{
|
|
|
|
KConfigGroup cg = config();
|
|
|
|
- setPopupIcon(cg.readEntry("icon", "start-here-kde"));
|
|
|
|
+ if (QFile::exists("/usr/share/icons/oxygen/scalable/places/start-here-branding.svgz"))
|
|
|
|
+ setPopupIcon(cg.readEntry("icon", "start-here-branding"));
|
|
|
|
+ else
|
|
|
|
+ setPopupIcon(cg.readEntry("icon", "start-here-kde"));
|
2010-07-09 04:29:54 +08:00
|
|
|
constraintsEvent(Plasma::ImmutableConstraint);
|
|
|
|
}
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2010-07-09 04:29:54 +08:00
|
|
|
diff -Naur kdebase-workspace-4.4.92.orig/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.cpp kdebase-workspace-4.4.92/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.cpp
|
|
|
|
--- kdebase-workspace-4.4.92.orig/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.cpp 2010-07-07 19:10:15.000000000 +0200
|
|
|
|
+++ kdebase-workspace-4.4.92/plasma/desktop/applets/kickoff/simpleapplet/simpleapplet.cpp 2010-07-08 03:44:38.979784323 +0200
|
2010-05-22 06:25:44 +08:00
|
|
|
@@ -36,6 +36,7 @@
|
|
|
|
#include <QtGui/QSpacerItem>
|
|
|
|
#include <QtGui/QListWidget>
|
|
|
|
#include <QtGui/QListWidgetItem>
|
|
|
|
+#include <QFile>
|
|
|
|
|
|
|
|
// KDE Libs
|
|
|
|
#include <KActionCollection>
|
2010-07-09 04:29:54 +08:00
|
|
|
@@ -74,6 +75,9 @@
|
|
|
|
#include "core/urlitemlauncher.h"
|
|
|
|
#include "ui/contextmenufactory.h"
|
|
|
|
|
|
|
|
+// Branding
|
|
|
|
+#include <QFile>
|
|
|
|
+
|
|
|
|
#ifndef KDE_USE_FINAL
|
|
|
|
Q_DECLARE_METATYPE(QPersistentModelIndex)
|
|
|
|
#endif
|
|
|
|
@@ -305,7 +309,10 @@
|
|
|
|
d->viewtypes << "RunCommand";
|
|
|
|
}
|
|
|
|
d->viewtypes << "Leave";
|
|
|
|
- d->iconname = "start-here-kde";
|
|
|
|
+ if (QFile::exists("/usr/share/icons/oxygen/scalable/places/start-here-branding.svgz"))
|
|
|
|
+ d->iconname = "start-here-branding";
|
|
|
|
+ else
|
|
|
|
+ d->iconname = "start-here-kde";
|
2010-05-22 06:25:44 +08:00
|
|
|
}
|
2010-07-09 04:29:54 +08:00
|
|
|
}
|
|
|
|
d->formattype = NameDescription;
|