<parameter name="font" value="Helvetic,12" />
<parameter name="additional_families" value="Helvetic;Helvetica;Helvetica[Adobe];Times;Times[Adobe];Sans Serif;Serif;Monospace;Lucida"/>
</section>
+ <section name="Style">
+ <!-- Style and theme preferences -->
+ <parameter name="use_salome_style" value="true" />
+ </section>
<section name="ObjectBrowser" >
<!-- Object Browser preferences -->
<parameter name="auto_hide_search_tool" value="true" />
msgid "LightApp_Application::PREF_FONT"
msgstr "Font"
+msgid "LightApp_Application::PREF_GROUP_STYLE"
+msgstr "Salome style"
+
+msgid "LightApp_Application::PREF_USE_SALOME_STYLE"
+msgstr "Use Salome style"
+
msgid "LightApp_Application::PREF_TAB_OBJBROWSER"
msgstr "Object browser"
<source>PREF_GROUP_PY_CONSOLE</source>
<translation>Python console properties</translation>
</message>
+ <message>
+ <source>PREF_GROUP_STYLE</source>
+ <translation>Salome style</translation>
+ </message>
+ <message>
+ <source>PREF_USE_SALOME_STYLE</source>
+ <translation>Use Salome style</translation>
+ </message>
<message>
<source>PREF_MARKER_SIZE</source>
<translation>Marker size:</translation>
{
SUITApp_Session* aSession = new SUITApp_Session( iniFormat );
QtxSplash* splash = 0;
+ SUIT_ResourceMgr* resMgr = aSession->createResourceMgr( argList.first() );
if ( !noSplash )
{
- SUIT_ResourceMgr* resMgr = aSession->createResourceMgr( argList.first() );
if ( resMgr )
{
resMgr->loadLanguage( false );
SUIT_Application* theApp = aSession->startApplication( argList.first() );
if ( theApp )
{
- Style_Salome* aStyle = new Style_Salome();
- aStyle->getModel()->initFromResource( theApp->resourceMgr() );
- app.setStyle( aStyle );
+ if ( resMgr && resMgr->booleanValue( "Style", "use_salome_style", true ) )
+ {
+ Style_Salome* aStyle = new Style_Salome();
+ aStyle->getModel()->initFromResource( theApp->resourceMgr() );
+ app.setStyle( aStyle );
+ }
if ( !noExceptHandling )
app.setHandler( aSession->handler() );
<section name="desktop" >
<!-- Default GUI desktop state, position, size -->
<parameter name="geometry" value="80%%x80%%+10%%+10%%"/>
- </section>
+ </section>
+ <section name="Style">
+ <!-- Style and theme preferences -->
+ <parameter name="use_salome_style" value="true" />
+ </section>
<section name="ObjectBrowser" >
<!-- Object Browser preferences -->
<parameter name="auto_hide_search_tool" value="true" />
if ( aGUIApp )
{
// Set SALOME style to the application
- Style_Salome* aStyle = new Style_Salome();
- aStyle->getModel()->initFromResource( aGUIApp->resourceMgr() );
- _qappl.setStyle( aStyle );
+ SUIT_ResourceMgr resMgr( "SalomeApp", QString( "%1Config" ) );
+ if ( bool isSSUse = resMgr.booleanValue( "Style", "use_salome_style", true ) )
+ {
+ Style_Salome* aStyle = new Style_Salome();
+ aStyle->getModel()->initFromResource( aGUIApp->resourceMgr() );
+ _qappl.setStyle( aStyle );
+ }
if ( !isFound( "noexcepthandler", argc, argv ) )
_qappl.setHandler( aGUISession->handler() ); // after loading SalomeApp application