Forum

Change theme : new ...
 
Notifications
Retirer tout

Change theme : new colors to change the look of Project'Or RIA

21 Posts
3 Utilisateurs
0 Reactions
35.7 K Vu
(@babynus)
Posts: 14952
Membre Admin
Début du sujet
 
[#26]

Each user can change the visual theme for the tool.
Themes are just different color-sets for the backgrounds, captions, and others highlighting areas.

How to ?
Just go to Menu "Parameters" => "Users parameters", and select the new theme in the "theme" select list.
New theme is automatically applied when selected.
Just save parameters to retrieve this theme on each new connection.

What for ?
Just for fun, to change, or because everyone has its own preferences in terms of colors.
But there is also a useful way : image that you can connect to a Database with two different users, with different profiles, or that you can connect to two different Databases , for instance Production & Test. Just change the color on the different users/Databases so that you will automatically know witch user and/or Database you are connected to.

What else ?
Printing of forms and lists simply uses "White" theme in order to present a printable document that will not empty the cartriges of you printer in few pages.

Have fun ! 😉


 
Posté : 05/10/2010 2:41 pm
(@obelix)
Posts: 28
Eminent Member
 

Hi,

I need to create a new theme for Pr
Can you tell me the file that I have to change?

Thank you for your help.

bye


 
Posté : 07/06/2013 12:34 pm
(@babynus)
Posts: 14952
Membre Admin
Début du sujet
 

For new thema, only colors can be included in thema.
You just have to update end part of /css/projector.css.
For instance replace one thema colors with your own.


 
Posté : 09/06/2013 6:35 pm
(@obelix)
Posts: 28
Eminent Member
 

Hi babynus,

thank you for your answer.
I have write at the end of projector.css these:

/* =============================================================================== */
/* SPECIFIC MYNEW THEME */
/* =============================================================================== */

.ProjectOrRiaLight html, .ProjectOrRiaLight body, .ProjectOrRiaLight #leftDiv, .ProjectOrRiaLight #logoDiv,
.ProjectOrRiaLight #buttonDiv,
.ProjectOrRiaLight .dijitSplitterH, .ProjectOrRiaLight .dijitGutterH, .ProjectOrRiaLight .dijitSplitterV, .ProjectOrRiaLight .dijitGutterV,
.ProjectOrRiaLight .dijitMenuItemHover,
.ProjectOrRiaLight .dijitMenuPassive .dijitMenuItemHover,
.ProjectOrRiaLight .dijitMenuItemSelected,
.ProjectOrRiaLight .loginBackground {
background-color: #d4d5da;
}

.ProjectOrRiaLight #mapDiv, .ProjectOrRiaLight #messageDiv, .ProjectOrRiaLight #listDiv, .ProjectOrRiaLight .display, .ProjectOrRiaLight .background,
.ProjectOrRiaLight #printPreview, .ProjectOrRiaLight .dijitTitlePaneContentInner,
.ProjectOrRiaLight #detailDiv, .ProjectOrRiaLight #formDiv,
.ProjectOrRiaLight #mainDiv, .ProjectOrRiaLight #contentDiv, .ProjectOrRiaLight #centerDiv {
background-color: #ececec;
}

.ProjectOrRiaLight #toolBarDiv, .ProjectOrRiaLight #statusBarDiv, .ProjectOrRiaLight .statusBar,
.ProjectOrRiaLight .dojoxGridRowSelected, .ProjectOrRiaLight .listTitle,
.ProjectOrRiaLight .section, .ProjectOrRiaLight .dijitTitlePane .dijitTitlePaneTitle, .ProjectOrRiaLight .title {
background-color: #d4d5da; color: #545281;
}

.ProjectOrRiaLight .tabLabel, .ProjectOrRiaLight .label, .ProjectOrRiaLight .dojoxGridRowOver .dojoxGridCell {
background-color: #ececec; color: #545281;
}

.ProjectOrRiaLight .display, .ProjectOrRiaLight #printPreview {
border: 1px solid #ececec;
}

.ProjectOrRiaLight .titleProject {
color: #545281;
}
.ProjectOrRiaLight #mainDiv {
/*scrollbar-face-color: #ececec;
scrollbar-shadow-color: #ececec;
scrollbar-highlight-color: #ececec;
scrollbar-3dlight-color: #FFFFFF;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #ececec;
scrollbar-arrow-color: #d4d5da;*/
}

but when I go to Global Parameters -> Display Parameters -> Theme, I don't see the new theme.

Thank you


 
Posté : 10/06/2013 1:05 pm
LEVA
 LEVA
(@leva)
Posts: 54
Trusted Member
 

Did you clear your web browser cache ?


 
Posté : 10/06/2013 1:41 pm
(@obelix)
Posts: 28
Eminent Member
 

yes, now, but I can't see it on a dropdown menù


 
Posté : 10/06/2013 2:55 pm
LEVA
 LEVA
(@leva)
Posts: 54
Trusted Member
 

I htink you have to update theme list in mode/Parameter.php


 
Posté : 10/06/2013 3:38 pm
(@babynus)
Posts: 14952
Membre Admin
Début du sujet
 

As you overwrote ProjectOrRiaLight, you just have to use "Project'Or RIA Light" theme.


 
Posté : 13/06/2013 2:27 am
(@obelix)
Posts: 28
Eminent Member
 

thank you guys 🙂

I have insert this line in models/Paramether.php before the random line

'MyThemaName'=>i18n('themeMyThemaName'),

then I have change all the ProjectOrRiaLight with MyThemaName (in /* SPECIFIC MYNEW THEME */)

Now when I look on dropdown menù I have [themeMyThemaName]

Where is the error?

Thank you


 
Posté : 13/06/2013 1:46 pm
(@babynus)
Posts: 14952
Membre Admin
Début du sujet
 

What is your issue ?
[themeMyThemaName] not translated ? => You should insert new line in lang files (use lang.xls available on download page...)


 
Posté : 13/06/2013 1:51 pm
(@obelix)
Posts: 28
Eminent Member
 

I use Project'or ria in english.
I don't know how my new theme is the only one with [] and the name start with "theme"

how I have to use the lang.xls file? I suppose that I have to add my theme name, but then?

thanks


 
Posté : 13/06/2013 2:16 pm
(@obelix)
Posts: 28
Eminent Member
 

ok,
I have generate the folders (de en es fr pt ru zh) and the file lang.js
Now I try to put them in tool -> i18n -> nls

I have update the file/folders but nothing change.


 
Posté : 13/06/2013 2:21 pm
(@babynus)
Posts: 14952
Membre Admin
Début du sujet
 

I don't know how my new theme is the only one with [] and the name start with "theme"

The i18n() function you are using tranlates labels from the code you pass in parameters. If code does not exist, instead of translated value, you retrieve the code with bracets 😉

how I have to use the lang.xls file?

Use the button in the xls file B) 😉

I have generate the folders (de en es fr pt ru zh) and the file lang.js

You got it B)

Now I try to put them in tool -> i18n -> nls

That's it !


 
Posté : 13/06/2013 2:31 pm
(@obelix)
Posts: 28
Eminent Member
 

:cheer: thank you for your patience.

I have update the fuile and the folders, but nothing change.
If I hoppen the lang.js I don't find the theme that I have add.
I try to change the lang.js directly.


 
Posté : 13/06/2013 2:56 pm
(@obelix)
Posts: 28
Eminent Member
 

:woohoo: ok now is all right.
maybe the xls don't run properly with my excel.


 
Posté : 13/06/2013 3:01 pm
Page 1 / 2
Share:
Retour en haut