+ issue #0002053: Support of themes
This commit is contained in:
parent
cd0b369425
commit
48c25da133
|
@ -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
13
src/Gui/Icons/index.theme
Normal 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
|
|
@ -113,5 +113,6 @@
|
|||
<file>DrawStyleShaded.svg</file>
|
||||
<file>DrawStyleWireFrame.svg</file>
|
||||
<file>user.svg</file>
|
||||
<file>index.theme</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in New Issue
Block a user