Page 1 of 1

Theme of gadgets

Posted: Mon Jul 24, 2017 11:38 am
by pf shadoko
Did anyone succeed in changing the theme of gadgets?
I tried to modify the file css files 'dijit / themes' and 'dojo / themes'
but without success ...

Re: Theme of gadgets

Posted: Mon Jul 24, 2017 11:59 am
by Peter
The themes for Gadget are located in: [YourSpiderBasicPath]\Libraries\javascript\dojo\themes\

The themes for Windows are located in: [YourSpiderBasicPath]\Libraries\javascript\themes\

I think, the best way is to copy an existing theme and name it to your needs.

After that you can set the themes in the compiler-options:

Image

Greetings ... Peter

Re: Theme of gadgets

Posted: Mon Jul 24, 2017 1:08 pm
by pf shadoko
This is what I did, but it does not work
for example:
I made a copy of
C: \ SpiderBasic \ Libraries \ javascript \ dojo \ themes \ claro
I rename the copy
C: \ SpiderBasic \ Libraries \ javascript \ dojo \ themes \ claro2
(I also rename the css file with the name of its folder
C: \ SpiderBasic \ Libraries \ javascript \ dojo \ themes \ claro2 \ claro2.css)

But when I select the theme 'claro2' in the compiler options (theme for the gadget)
My theme is altered
(No error in the browser debugger)

I think there must be a reference to the new theme elsewhere

It works with you?

Re: Theme of gadgets

Posted: Mon Jul 24, 2017 2:03 pm
by Peter
pf shadoko wrote:It works with you?
yes.

1. i made a copy of the claro-folder and named it claro2
2. in the claro2-folder i renamed claro.css to claro2.css
3. in SpiderBasic i choose the claro2-theme for Gadgets
4. in claro2.css i changed (for example) the color from 'inherit' to 'red':

Image

Greetings ... Peter

Re: Theme of gadgets

Posted: Mon Jul 24, 2017 3:30 pm
by pf shadoko
Yes, it's like for me
Nothing in common with the claro theme

Fred, if you go through here ...
help !

Re: Theme of gadgets

Posted: Mon Jul 24, 2017 5:40 pm
by Peter
ah, now i see, what you mean :D

additionally you must replace all 'claro' with 'claro2' inside the css.

Image

Greetings ... Peter

Re: Theme of gadgets

Posted: Tue Jul 25, 2017 7:23 am
by pf shadoko
OK,
I had not taken the time to look at the file
Once again thank you