Commit dcce789a authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

ensure proper Kate icon is used

parent 4dfae551
......@@ -118,7 +118,7 @@ set(ICONS_PNG
${CMAKE_CURRENT_SOURCE_DIR}/icons/310-apps-kate-editor.png
)
set(ICONS_SVG ${CMAKE_CURRENT_SOURCE_DIR}/icons/sc-apps-kate-editor.svgz)
set(ICONS_SVG ${CMAKE_CURRENT_SOURCE_DIR}/icons/sc-apps-kate-editor.svg)
# Add icon files to the application's source files to have CMake bundle them in the executable.
ecm_add_app_icon(ICONS_SOURCES ICONS ${ICONS_PNG})
......
......@@ -3,4 +3,7 @@
<qresource prefix="/kxmlgui5/kate">
<file>kateui.rc</file>
</qresource>
<qresource prefix="/kate">
<file alias="kate.svg">../icons/sc-apps-kate-editor.svg</file>
</qresource>
</RCC>
......@@ -167,6 +167,11 @@ int main(int argc, char **argv)
aboutData.addCredit(i18n("Carsten Pfeiffer"), i18n("Very nice help"));
aboutData.addCredit(i18n("All people who have contributed and I have forgotten to mention"));
/**
* set proper Kate icon for our about dialog
*/
aboutData.setProgramLogo(QIcon(QStringLiteral(":/kate/kate.svg")));
/**
* set and register app about data
*/
......@@ -175,7 +180,7 @@ int main(int argc, char **argv)
/**
* set the program icon
*/
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kate-editor"), app.windowIcon()));
QApplication::setWindowIcon(QIcon(QStringLiteral(":/kate/kate.svg")));
/**
* Create command line parser and feed it with known options
......
Markdown is supported
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