JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 26.10.2009, 16:12
PotatoesMaster
Guest
 
Posts: n/a
Question Customize Synthetica Look and Feel with a single xml file

Hello,
I saw in Synthetica FAQ (www .javasoft.de/jsf/public/products/synthetica/faq#q3) there is a simple way to customize themes :

Quote:
3. How can I customize an existing Synthetica Look and Feel?
[...]
Another way is to define an external xml file called "Synthetica.xml" or <LAF-Name>.xml for instance "SyntheticaBlueIceLookAndFeel.xml". Where "Synthetica.xml" contains common settings used for all Synthetica LAF's and the <LAF-Name>.xml contains only settings for the specified LAF. In the case of defining values in both files the <LAF-Name>.xml has priority to "Synthetica.xml".

Don't forget to add the file(s) to your CLASSPATH.
I don't know where I should put the xml file...

I put this in various directories without results.
I tried to create an environment variable "CLASSPATH" (with path of directory containing the xml file) but nothing happened.

Has someone an idea ?

I just want to change the selected text background color of Synthetica Black Eye Theme:

Last edited by PotatoesMaster; 26.10.2009 at 18:37.
Reply With Quote
  #2  
Old 31.10.2009, 02:27
PotatoesMaster
Guest
 
Posts: n/a
Default

I am feeling so lonely...
Reply With Quote
  #3  
Old 31.10.2009, 02:40
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

im sorry, but i cant help you there. none of us developers tried to customize the look and feel. maybe one will try someday and then write a little howto.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 31.10.2009, 10:36
remi
Guest
 
Posts: n/a
Cool

Quote:
Originally Posted by PotatoesMaster View Post
I am feeling so lonely...
Here are some remedies against feeling lonely.
hXXp://www.tressugar.com/647033
Reply With Quote
  #5  
Old 31.10.2009, 10:59
lightwave3d lightwave3d is offline
JD Addict
 
Join Date: May 2009
Location: jdownloader.org
Posts: 174
Default

Reply With Quote
  #6  
Old 31.10.2009, 11:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

h__p://www.javalobby.org/java/forums/t73549.html
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 31.10.2009, 16:26
PotatoesMaster
Guest
 
Posts: n/a
Default

@lightwave3d
I've edited the xml file in the jar archive.
It works fine but JDownloader want to update the jar to undo my work. :-(

@Jiaz
It seems I've some problems creating a new theme :

Last edited by PotatoesMaster; 31.10.2009 at 16:36.
Reply With Quote
  #8  
Old 31.10.2009, 16:35
lightwave3d lightwave3d is offline
JD Addict
 
Join Date: May 2009
Location: jdownloader.org
Posts: 174
Default

Quote:
Originally Posted by PotatoesMaster View Post
@lightwave3d
I've edited the xml file in the jar archive.
It works fine but JDownloader want to update the jar to undo my work. :-(

@Jiaz
It seems I've some problems creating a new theme :
yeah, that's also what I encountered when I tried to edit the image/s

it seems to have some kind of tamper proof. lol!
Reply With Quote
  #9  
Old 31.10.2009, 16:36
PotatoesMaster
Guest
 
Posts: n/a
Default

What classpath does JDownloader use ?
Is there a way to add the directory "libs\laf\" (containing Synthetica jar files) to the classpath ?
This way, we just need to put a file called "SyntheticaBlackEyeLookAndFeel.xml" (or something else) in this directory to customize the theme.
Reply With Quote
  #10  
Old 31.10.2009, 16:41
lightwave3d lightwave3d is offline
JD Addict
 
Join Date: May 2009
Location: jdownloader.org
Posts: 174
Default

Quote:
Originally Posted by PotatoesMaster View Post
What classpath does JDownloader use ?
Is there a way to add the directory "libs\laf\" (containing Synthetica jar files) to the classpath ?
This way, we just need to put a file called "SyntheticaBlackEyeLookAndFeel.xml" (or something else) in this directory to customize the theme.
I have no idea... better ask Jiaz or the development team...
Reply With Quote
  #11  
Old 31.10.2009, 16:48
PotatoesMaster
Guest
 
Posts: n/a
Default

Okay ! Thanks anyway.
Reply With Quote
  #12  
Old 02.11.2009, 02:37
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Quote:
Originally Posted by Jiaz View Post
h__p://www.javalobby.org/java/forums/t73549.html
thats all i found on syntehtica customization. i think the best is to create a new jar file (eg synthjd.jar) and then put your customizations in it (like described in the link i gave you)
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 02.11.2009, 03:07
PotatoesMaster
Guest
 
Posts: n/a
Default

I followed the instructions as described at javalobby.org.
The theme I obtain doesn't work (I can't locate my mistake).
Could you instead say me what does JDownloader's classpath contain ?
There is no problem if you can't: I won't spend your time any more.

Last edited by PotatoesMaster; 02.11.2009 at 03:30.
Reply With Quote
  #14  
Old 02.11.2009, 03:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

i just found out we have to add support for them. at the moment only the already available files are loaded. you can try to delete one and replace it with your own and do not let jd update it again. once you have a working customized laf , we can/will add support for it. would be great to know how that works
__________________
JD-Dev & Server-Admin
Reply With Quote
  #15  
Old 02.11.2009, 03:52
PotatoesMaster
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
...and do not let jd update it again.
And how to stop update only for that file ?
Reply With Quote
  #16  
Old 02.11.2009, 04:03
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

try to put a file with name
filename.noupdate in same folder
or simply dont let update it. as i said, we can add support for it once you have a working customized laf
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 22.09.2011, 04:23
audio20's Avatar
audio20 audio20 is offline
Fibre Channel User
 
Join Date: Jun 2009
Posts: 125
Unhappy Stoping the Modified Theme "update" (regression)

Quote:
Originally Posted by Jiaz View Post
try to put a file with name
filename.noupdate in same folder
or simply dont let update it. as i said, we can add support for it once you have a working customized laf
I've just updated the most recent post about the "Synthetica Black Eye" with some good information here:
http://board.jdownloader.org/showpos...34&postcount=2

I would love if you guys added an option to NOT update automatically (overwriting the modification) at least some of the Synthetica themes (or maybe only Black Eye), if possible, until the next MAJOR version or the solution for some of the worst problems associated with this particular Style.

To be more clear:
there's a configuration that stops JD from replacing custom icons in my "<JDownloader Folder>\jd\img\hosterlogos\" folder, and I would like for the same to happen with the .jar theme files on "<JDownloader Folder>\libs\laf\", if possible.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 22:06.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.