Change shadow color of web-dialogs

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

Change shadow color of web-dialogs

Postby Jeroen de Vries » Tue Nov 23, 2010 4:53 pm

I know that wicket offers 2 colors of modal dialog backgrounds, BLUE and GRAY.

Servoy is using BLUE by default, is there a way to change it to GRAY?
Better yet, is there a way to substitute servoy-webclient/resources/modalwindow/res/frame-blue-1-alpha.png or servoy-webclient/resources/modalwindow/res/frame-gray-1-alpha.png with graphics of our own? I can't find it in the media library nor physically on disk.
Jeroen de Vries
Softwear BV
www.softwear.nl
Jeroen de Vries
 
Posts: 61
Joined: Sun Mar 02, 2008 12:18 pm

Re: Change shadow color of web-dialogs

Postby Harjo » Wed Nov 24, 2010 12:50 am

ow yes!!

+1
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Change shadow color of web-dialogs

Postby jcompagner » Mon Nov 29, 2010 12:31 pm

see: application_server\lib\wicket-extentions.jar\org\apache\wicket\extensions\ajax\markup\html\modal\res\
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Change shadow color of web-dialogs

Postby Harjo » Mon Nov 29, 2010 12:51 pm

Johan, so we need to manually change stuff inside that jar-file? what about Servoy updates? we have to do that again?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Change shadow color of web-dialogs

Postby jcompagner » Mon Nov 29, 2010 12:53 pm

yes

that is the location of the files that the browser uses.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Change shadow color of web-dialogs

Postby Jeroen de Vries » Mon Nov 29, 2010 12:59 pm

Hi Johan,

I tried to apply changes but I see no change in either IE or FF/Chrome. I made sure to clear my browser cache, still no change.
When I look at the HTML/CSS generated, it is still the same. Is this cached somewhere else?
Jeroen de Vries
Softwear BV
www.softwear.nl
Jeroen de Vries
 
Posts: 61
Joined: Sun Mar 02, 2008 12:18 pm

Re: Change shadow color of web-dialogs

Postby jcompagner » Mon Nov 29, 2010 1:00 pm

are you testing in the developer?

Then that is not the jar that is used. The wicket jars are in the servoy shared plugin.

What i pointed out was purely the app server
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Change shadow color of web-dialogs

Postby Jeroen de Vries » Mon Nov 29, 2010 1:21 pm

Yes I was testing in developer.
I tried it from the server now. That gives an Internal error now. I cannot start the client app.
The only change I did was in the modal.css. I refer it to the -gray* png now instead of the -blue*.

Is there a specific way to edit the jar files? I just used WinRAR for that, maybe that's the problem?
Jeroen de Vries
Softwear BV
www.softwear.nl
Jeroen de Vries
 
Posts: 61
Joined: Sun Mar 02, 2008 12:18 pm

Re: Change shadow color of web-dialogs

Postby Harjo » Mon Nov 29, 2010 2:12 pm

Giving us a property or code-setting, is'nt that much easier? :wink:
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Change shadow color of web-dialogs

Postby Jeroen de Vries » Mon Nov 29, 2010 2:16 pm

I don't think that's feasible considering the millions of thing you could change in this. But some documentation on the frameworks that Servoy is based on would be very helpfull.
After Johan's initial mail I also found the wicket-calendar jar. Can't wait to get my hands dirty on that one too. But first we need to know how to operate on these jars...
Jeroen de Vries
Softwear BV
www.softwear.nl
Jeroen de Vries
 
Posts: 61
Joined: Sun Mar 02, 2008 12:18 pm

Re: Change shadow color of web-dialogs

Postby Jeroen de Vries » Mon Nov 29, 2010 2:19 pm

After restoring the backup of that particular jar file, everything is back to normal so me messing around with it with WinRaR was not appreciated. Howto...
Jeroen de Vries
Softwear BV
www.softwear.nl
Jeroen de Vries
 
Posts: 61
Joined: Sun Mar 02, 2008 12:18 pm

Re: Change shadow color of web-dialogs

Postby ptalbot » Mon Nov 29, 2010 3:26 pm

These jars are signed. If you alter a file in a jar, the signing hash will be wrong so most probably Java will see the whole jar as corrupted...
If you do this (but I wouldn't recommend it unless you alter the source distribution and recreate the jar from there - and when I mean the source distribution, I mean the Servoy one, not the Wicket one, since Servoy has patched Wicket for its own usage), you will need to re-sign the jar.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Change shadow color of web-dialogs

Postby jcompagner » Mon Nov 29, 2010 4:28 pm

you should be able to just remove the signing.
Wicket jars dont really need to be signed, they are pure serverside.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Change shadow color of web-dialogs

Postby Jeroen de Vries » Mon Nov 29, 2010 4:58 pm

Great, that solved it.
I justed removed the RSA en SF files from the META-INF folder and presto!.

Thanks Johan.
Jeroen de Vries
Softwear BV
www.softwear.nl
Jeroen de Vries
 
Posts: 61
Joined: Sun Mar 02, 2008 12:18 pm

Re: Change shadow color of web-dialogs

Postby pbakker » Mon Dec 13, 2010 4:04 pm

I think the cleverer way to go is inspect the HTML/CSS of a Web Client in the browser and find the CSS selectors used to decorate the dialog. Then take those selectors and add them to the default webclient template CSS that Servoy uses, with your own values for the CSS properties and to make those take priority over the CSS that is incorporated in the Wicket jars, you just put "!important" behind each CSS property value.

That way you do not have to hack the jars.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands


Return to Web Development

Who is online

Users browsing this forum: No registered users and 5 guests