From 48c25da133271a0caebec74427461f01c234c229 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 29 Jun 2015 14:33:14 +0200 Subject: [PATCH] + issue #0002053: Support of themes --- src/Gui/Application.cpp | 4 ++++ src/Gui/Icons/index.theme | 13 +++++++++++++ src/Gui/Icons/resource.qrc | 1 + 3 files changed, 18 insertions(+) create mode 100644 src/Gui/Icons/index.theme diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index 0a41afb46..b10adbeb1 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -1680,6 +1680,10 @@ void Application::runApplication(void) else if (version & QGLFormat::OpenGL_Version_None) Base::Console().Log("No OpenGL is present or no OpenGL context is current\n"); +#if !defined(Q_WS_X11) + QIcon::setThemeName(QLatin1String("FreeCAD-default")); +#endif + Application app(true); MainWindow mw; mw.setWindowTitle(mainApp.applicationName()); diff --git a/src/Gui/Icons/index.theme b/src/Gui/Icons/index.theme new file mode 100644 index 000000000..13de16521 --- /dev/null +++ b/src/Gui/Icons/index.theme @@ -0,0 +1,13 @@ +[Icon Theme] +Name=FreeCAD-default +Comment=Default FreeCAD icon theme +Inherits=Default + +# Directory list +Directories=. + +[.] +Size=48 +MinSize=8 +MaxSize=512 +Type=Scalable diff --git a/src/Gui/Icons/resource.qrc b/src/Gui/Icons/resource.qrc index d16f5d53b..fa2240ce5 100644 --- a/src/Gui/Icons/resource.qrc +++ b/src/Gui/Icons/resource.qrc @@ -113,5 +113,6 @@ DrawStyleShaded.svg DrawStyleWireFrame.svg user.svg + index.theme