OTHER: Changed default skin to Almond-blue

I don't know under which license CleanAMP is provided, and I don't want to take
any risks, so I had to replace it. As the default skin is included in the
binary, it might be even necessary for it to be GPL, so I choose the debranded
Almond-blue skin for the time beeing.

Added creator of Almond-blue to AUTHORS file

Also added some magic to make it easier to add new skins through the resource
system
This commit is contained in:
Thomas Frauendorfer 2009-07-14 22:14:05 +02:00
parent 7b5c9d2a82
commit 6dbc87ac7e
24 changed files with 110 additions and 26 deletions

View file

@ -19,6 +19,8 @@
#include <QPainter>
#include <QSettings>
static const QString defaultSkin = ":/skins/Almond-blue/";
Skin *Skin::singleton = NULL;
Skin *Skin::getInstance (void)
@ -36,7 +38,7 @@ Skin::Skin ()
setPositions ();
QSettings settings;
setSkin (settings.value("skin/path", ":CleanAMP/").toString ());
setSkin (settings.value("skin/path", defaultSkin).toString ());
}
@ -62,7 +64,7 @@ Skin::setSkin (const QString& name)
ParsePLEdit() &&
BuildNumbers() &&
BuildPlaylist () )) {
setSkin (":CleanAMP/");
setSkin (defaultSkin);
return false;
}