+ issue #0002053: Support of themes

This commit is contained in:
wmayer 2015-06-29 14:33:14 +02:00
parent cd0b369425
commit 48c25da133
3 changed files with 18 additions and 0 deletions

View File

@ -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());

13
src/Gui/Icons/index.theme Normal file
View File

@ -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

View File

@ -113,5 +113,6 @@
<file>DrawStyleShaded.svg</file>
<file>DrawStyleWireFrame.svg</file>
<file>user.svg</file>
<file>index.theme</file>
</qresource>
</RCC>