Skip to content

Commit

Permalink
+ issue #2053: Support of themes
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jun 29, 2015
1 parent cd0b369 commit 48c25da
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/Application.cpp
Expand Up @@ -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());
Expand Down
13 changes: 13 additions & 0 deletions 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
1 change: 1 addition & 0 deletions src/Gui/Icons/resource.qrc
Expand Up @@ -113,5 +113,6 @@
<file>DrawStyleShaded.svg</file>
<file>DrawStyleWireFrame.svg</file>
<file>user.svg</file>
<file>index.theme</file>
</qresource>
</RCC>

0 comments on commit 48c25da

Please sign in to comment.