mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 06:44:03 +02:00
Allow an OPK to use an icon provided by the theme
This commit is contained in:
parent
bcb3e98ddc
commit
91f381fa07
@ -134,7 +134,7 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
|
|||||||
} else if (!strncmp(key, "Icon", lkey)) {
|
} else if (!strncmp(key, "Icon", lkey)) {
|
||||||
/* Read the icon from the OPK only
|
/* Read the icon from the OPK only
|
||||||
* if it doesn't exist on the skin */
|
* if it doesn't exist on the skin */
|
||||||
this->icon = gmenu2x->sc.getSkinFilePath((string) buf + ".png");
|
this->icon = gmenu2x->sc.getSkinFilePath("icons/" + (string) buf + ".png");
|
||||||
if (this->icon.empty())
|
if (this->icon.empty())
|
||||||
this->icon = (string) linkfile + '#' + buf + ".png";
|
this->icon = (string) linkfile + '#' + buf + ".png";
|
||||||
iconPath = this->icon;
|
iconPath = this->icon;
|
||||||
|
Loading…
Reference in New Issue
Block a user