</context>
<context>
<name>LightApp_Application</name>
+ <message>
+ <source>MEN_DESK_THEME</source>
+ <translation>Theme</translation>
+ </message>
+ <message>
+ <source>TOT_THEME</source>
+ <translation>Theme</translation>
+ </message>
+ <message>
+ <source>PRP_THEME</source>
+ <translation>Change style properties</translation>
+ </message>
<message>
<source>INF_TOOLBAR_MODULES</source>
<translation>Modules</translation>
#include <QtxSplash.h>
#include <Style_Salome.h>
-#include <Style_Model.h>
#include <SUIT_Tools.h>
#include <SUIT_Session.h>
#include <SUIT_Application.h>
// ...create resource manager
SUIT_ResourceMgr resMgr( "SalomeApp", QString( "%1Config" ) );
resMgr.setCurrentFormat( "xml" );
- resMgr.loadLanguage( false, "LightApp", "en" );
+ resMgr.setWorkingMode( QtxResourceMgr::IgnoreUserValues );
+ resMgr.loadLanguage( "LightApp", "en" );
//
splash = QtxSplash::splash( QPixmap() );
splash->readSettings( &resMgr );
SUIT_Application* aGUIApp = aGUISession->startApplication( "SalomeApp", 0, 0 );
if ( aGUIApp )
{
- // Set SALOME style to the application
- SUIT_ResourceMgr resMgr( "SalomeApp", QString( "%1Config" ) );
- resMgr.setCurrentFormat( "xml" );
- resMgr.loadLanguage( false, "LightApp", "en" );
- if ( bool isSSUse = resMgr.booleanValue( "Style", "use_salome_style", true ) )
- {
- Style_Salome* aStyle = new Style_Salome();
- aStyle->getModel()->initFromResource( aGUIApp->resourceMgr() );
- _qappl.setStyle( aStyle );
- }
+ Style_Salome::initialize( aGUIApp->resourceMgr() );
+ if ( aGUIApp->resourceMgr()->booleanValue( "Style", "use_salome_style", true ) )
+ Style_Salome::apply();
if ( !isFound( "noexcepthandler", argc, argv ) )
_qappl.setHandler( aGUISession->handler() ); // after loading SalomeApp application
<document>
- <section name="Steel-blue">
+ <section name="Steel-Blue">
<parameter name="button-color" value="silver" />
<parameter name="base-color" value="white" />
<parameter name="window-color" value="lightsteelblue" />
<parameter name="widget-effect" value="1" />
<parameter name="slider-size" value="5" />
</section>
- <section name="Dark-green">
+ <section name="Dark-Green">
<parameter name="button-color" value="#003300" />
<parameter name="window-color" value="black" />
<parameter name="text-color" value="white" />