Theme of gadgets

Just starting out? Need help? Post your questions and find answers here.
pf shadoko
Posts: 74
Joined: Thu May 26, 2016 11:09 am

Theme of gadgets

Post 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 ...
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Theme of gadgets

Post 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
pf shadoko
Posts: 74
Joined: Thu May 26, 2016 11:09 am

Re: Theme of gadgets

Post 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?
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Theme of gadgets

Post 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
pf shadoko
Posts: 74
Joined: Thu May 26, 2016 11:09 am

Re: Theme of gadgets

Post by pf shadoko »

Yes, it's like for me
Nothing in common with the claro theme

Fred, if you go through here ...
help !
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Theme of gadgets

Post by Peter »

ah, now i see, what you mean :D

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

Image

Greetings ... Peter
pf shadoko
Posts: 74
Joined: Thu May 26, 2016 11:09 am

Re: Theme of gadgets

Post by pf shadoko »

OK,
I had not taken the time to look at the file
Once again thank you
Post Reply