diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp
index a2ab3aeb6..b5e7a491a 100644
--- a/apps/launcher/maindialog.cpp
+++ b/apps/launcher/maindialog.cpp
@@ -41,16 +41,11 @@ MainDialog::MainDialog()
buttonBox->setStandardButtons(QDialogButtonBox::Close);
buttonBox->addButton(playButton, QDialogButtonBox::AcceptRole);
- //QSpacerItem *vSpacer1 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
-
QVBoxLayout *dialogLayout = new QVBoxLayout(this);
dialogLayout->addWidget(mIconWidget);
- //dialogLayout->addItem(vSpacer1);
dialogLayout->addWidget(groupBox);
-
dialogLayout->addWidget(buttonBox);
- //mainLayout->addStretch(1);
- //mainLayout->addSpacing(12);
+
setWindowTitle(tr("OpenMW Launcher"));
setWindowIcon(QIcon(":/images/openmw-icon.png"));
@@ -66,23 +61,30 @@ MainDialog::MainDialog()
void MainDialog::createIcons()
{
- QListWidgetItem *configButton = new QListWidgetItem(mIconWidget);
- configButton->setIcon(QIcon(":/images/openmw-icon.png"));
- configButton->setText(tr("Play"));
- configButton->setTextAlignment(Qt::AlignCenter);
- configButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
-
- QListWidgetItem *updateButton = new QListWidgetItem(mIconWidget);
- updateButton->setIcon(QIcon::fromTheme("video-display"));
- updateButton->setText(tr("Graphics"));
- updateButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom | Qt::AlignAbsolute);
- updateButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
-
- QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget);
- queryButton->setIcon(QIcon(":/images/openmw-plugin-icon.png"));
- queryButton->setText(tr("Data Files"));
- queryButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom);
- queryButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
+ if (!QIcon::hasThemeIcon("document-new")) {
+ QIcon::setThemeName("tango");
+ }
+
+ // We create a fallback icon because the default fallback doesn't work
+ QIcon graphicsIcon = QIcon(":/icons/tango/video-display.png");
+
+ QListWidgetItem *playButton = new QListWidgetItem(mIconWidget);
+ playButton->setIcon(QIcon(":/images/openmw-icon.png"));
+ playButton->setText(tr("Play"));
+ playButton->setTextAlignment(Qt::AlignCenter);
+ playButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
+
+ QListWidgetItem *graphicsButton = new QListWidgetItem(mIconWidget);
+ graphicsButton->setIcon(QIcon::fromTheme("video-display", graphicsIcon));
+ graphicsButton->setText(tr("Graphics"));
+ graphicsButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom | Qt::AlignAbsolute);
+ graphicsButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
+
+ QListWidgetItem *dataFilesButton = new QListWidgetItem(mIconWidget);
+ dataFilesButton->setIcon(QIcon(":/images/openmw-plugin-icon.png"));
+ dataFilesButton->setText(tr("Data Files"));
+ dataFilesButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom);
+ dataFilesButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
connect(mIconWidget,
SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
diff --git a/apps/launcher/resources.qrc b/apps/launcher/resources.qrc
index 07e6896dd..7fbf62da2 100644
--- a/apps/launcher/resources.qrc
+++ b/apps/launcher/resources.qrc
@@ -7,11 +7,11 @@
resources/images/openmw-header.png
resources/images/playpage-background.png
-
-
- resources/icons/video-display.png
- resources/icons/document-new.png
- resources/icons/edit-copy.png
- resources/icons/edit-delete.png
+
+ resources/icons/tango/index.theme
+ resources/icons/tango/video-display.png
+ resources/icons/tango/document-new.png
+ resources/icons/tango/edit-copy.png
+ resources/icons/tango/edit-delete.png
diff --git a/apps/launcher/resources/icons/tango/document-new.png b/apps/launcher/resources/icons/tango/document-new.png
new file mode 100644
index 000000000..4c3efdd6f
Binary files /dev/null and b/apps/launcher/resources/icons/tango/document-new.png differ
diff --git a/apps/launcher/resources/icons/tango/edit-copy.png b/apps/launcher/resources/icons/tango/edit-copy.png
new file mode 100644
index 000000000..8dd48c494
Binary files /dev/null and b/apps/launcher/resources/icons/tango/edit-copy.png differ
diff --git a/apps/launcher/resources/icons/tango/edit-delete.png b/apps/launcher/resources/icons/tango/edit-delete.png
new file mode 100644
index 000000000..ea03150a1
Binary files /dev/null and b/apps/launcher/resources/icons/tango/edit-delete.png differ
diff --git a/apps/launcher/resources/icons/tango/index.theme b/apps/launcher/resources/icons/tango/index.theme
new file mode 100644
index 000000000..1f54489eb
--- /dev/null
+++ b/apps/launcher/resources/icons/tango/index.theme
@@ -0,0 +1,8 @@
+[Icon Theme]
+Name=Tango
+Comment=Tango Theme
+Inherits=default
+Directories=16x16
+
+[16x16]
+Size=16
\ No newline at end of file
diff --git a/apps/launcher/resources/icons/tango/video-display.png b/apps/launcher/resources/icons/tango/video-display.png
new file mode 100644
index 000000000..133143684
Binary files /dev/null and b/apps/launcher/resources/icons/tango/video-display.png differ