Vinylwalk3r / JDownloader-2-Dark-Theme

A dark theme for the download manager JDownloader 2
GNU General Public License v3.0
450 stars 69 forks source link

Theme disappearing after JD2 restart #22

Open etec-masterofsynapse opened 4 years ago

etec-masterofsynapse commented 4 years ago

I installed the theme using the backup method, the custom theme method and by copying the file to my JD2 folder. When I start the program the first time all gets applied fine with no problems. But when I close the program and open it again everything is gone again and its back to the delivered BLACK_EYE theme. Even the white arrows get replaced with "DUMMY" images. Also the custom toolbar at the bottom is gone.

I tried to apply the theme several times now but it never stays.

etec-masterofsynapse commented 4 years ago

I have got an update to my situation. If I copy over every file from the /config folder of the zip file except the "JDDefaultLookAndFeel.json" and "JDDefaultLookAndFeel.popupborderinsets.json" from the /config/cfg/laf folder, the theme stays. But once I include them everything gets reset. Why do we need these two files?

ghost commented 4 years ago

i created a folder inside of the jdownloader2 folder called something like dark theme

inside of that folder i created a folder called darktheme containing the subfolders cfg, libs & themes

go back to the "first" folder aka dark theme and create a bat file that points to that directory. for me, the dark theme resets back to default but only when there's an update. so whenever there's an update I update, quit the prog, run the .bat and voila, back to dark theme.

I've named the .bat "Install Theme.bat" and contains these lines:

robocopy "G:\JDownloader2 Dark Theme\" "C:\root\software\win\JDownloader2" *.* /E

etec-masterofsynapse commented 4 years ago

i created a folder inside of the jdownloader2 folder called something like dark theme

inside of that folder i created a folder called darktheme containing the subfolders cfg, libs & themes

go back to the "first" folder aka dark theme and create a bat file that points to that directory. for me, the dark theme resets back to default but only when there's an update. so whenever there's an update I update, quit the prog, run the .bat and voila, back to dark theme.

I've named the .bat "Install Theme.bat" and contains these lines:

robocopy "G:\JDownloader2 Dark Theme\" "C:\root\software\win\JDownloader2" *.* /E

Thanks for the info, however my update contains the way how the theme stays even after update. I just want input from the developer why we need the files I mentioned even it is working fine just without them.

andrewjmetzger commented 3 years ago

Hi @etec-masterofsynapse ,

With the use of the built-in Event Scripter, there is now a way to automatically restart JD2 and re-apply the dark theme after each update that does not rely on Batch files or custom shortcuts. See issue #32 for details and installation instructions.

Hope it helps! 🙂 Sorry to necro this issue. @andrewjmetzger