Commit 5b821a29 authored by Robert Lancaster's avatar Robert Lancaster Committed by Jasem Mutlaq
Browse files

Fixes icons on systems that cannot load icons from system

 themes using the fromTheme method like OS X, Windows, and some Linux Distros.
  If there is no system theme, it tries to set the theme to one of the bundled
 themes if possible, but also adds the fallback method for loading icons
 without a theme to each icon if that doesn't work.   Added an icons directory
 to keep the theme icons and toolbar icons separate from the other data.
 Included two bundled custom themes, based on breeze and oxygen.  Also fixed
 the call to the "geographic" icon and the "edit indi profile" icon since they
 may have been referencing the wrong icons.

CCMAIL:kstars-devel@kde.org
parent b10766db
......@@ -154,7 +154,7 @@ void ImageViewer::init(QString caption, QString capText)
QPushButton *invertB = new QPushButton(i18n("Invert colors"));
invertB->setToolTip(i18n("Reverse colors of the image. This is useful to enhance contrast at times. This affects only the display and not the saving."));
QPushButton *saveB = new QPushButton(QIcon::fromTheme("document-save"), i18n("Save"));
QPushButton *saveB = new QPushButton(QIcon::fromTheme("document-save", QIcon(":/icons/breeze/default/document-save.png")), i18n("Save"));
saveB->setToolTip(i18n("Save the image to disk"));
buttonBox->addButton(invertB, QDialogButtonBox::ActionRole);
......
......@@ -63,7 +63,7 @@ install(FILES
wzstars.png wzgeo.png wzscope.png wzdownload.png chart.colors
classic.colors moonless-night.colors night.colors
tips TZrules.dat valaav.txt Interesting.dat PlanetFacts.dat
advinterface.dat satellites.dat histogram.png go-nw.png go-ne.png go-sw.png go-se.png glossary.xml defaultflag.gif
advinterface.dat satellites.dat glossary.xml defaultflag.gif
DESTINATION ${KDE_INSTALL_DATADIR}/kstars
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment