|
Sweet Home 3D Forum » List all forums » » Forum: Wishlist » » » Thread: Dark Mode |
||
| Print at Dec 16, 2025, 10:07:17 AM |
|
|
| Posted by Keet at Jan 13, 2024, 9:40:02 PM |
|
Dark Mode In the blog for 6.6 (27 July 2021) future support of a dark mode is mentioned. Is there any progress in that direction? Switching between Sweet Home 3D and Blender painfully shows how much better a dark mode is for your eyes, especially with the current early dark evenings . The interface and 2Dview have a lot of glaring white screen space which would be a lot less straining on the eyes with a dark mode. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Kunda at Jan 21, 2024, 2:17:12 PM |
|
Re: Dark Mode Indeed! I was wondering about this as well. |
| Posted by MantisNebula at Feb 5, 2024, 9:41:38 AM |
|
Re: Dark Mode I agree. Using this on a 60" TV is rough on my photosensitive eyes. Also it would be helpful to have a simple way to adjust the font size. |
| Posted by Keet at Feb 5, 2024, 7:05:44 PM |
|
Re: Dark Mode In the preferences you can set a default font. There are fonts that are larger by default so setting such a font should give you a larger font in the userinterface. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Kunda at Feb 6, 2024, 9:51:33 PM |
|
Re: Dark Mode Per further research per Emmanuel: > If you're able to run Sweet Home 3D from code source, simply change implementation of getBackgroundColor and getForegroundColor in PlanComponent class. Otherwise, this might be difficult. ref: https://www.sweethome3d.com/support/forum/vie...95DCE10A9F6EDF64173AC2B00 Relevant ticket: https://sourceforge.net/p/sweethome3d/feature-requests/824/ |
| Posted by Keet at Feb 6, 2024, 10:45:29 PM |
|
Re: Dark Mode If you're able to run Sweet Home 3D from code source, simply change implementation of getBackgroundColor and getForegroundColor in PlanComponent class. Otherwise, this might be difficult. That's not even close to a Dark Mode. Implementing a Dark Mode is basically implementing a theme system and that's not an easy or quick job. I haven't seen a response to my initial information request but I suspect that the first step needed is switching from ancient Swing to JavaFX. I have no idea how easy or difficult this is, the sources I found online differ very much in their options. Looking at the future, switching to JavaFX might not be a step that can be ignored.---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Daniels118 at Feb 7, 2024, 9:33:44 AM |
|
Re: Dark Mode Theming is extremely easy to implement in java swing applications, it just requires adding the theme jar to the library path and a parameter to the command line to tell which theme it should use. It seems that this method doesn't work with the exe launcher (the program freezes), but works fine if SH3D is started through the jar file. A nice dark theme library can be found in flatlaf. Once you add the jar to the install_dir/lib folder, you can start SH3D from the jar file adding the following option to the command line: -Dswing.defaultlaf=com.formdev.flatlaf.FlatDarkLafResult: ![]() Here you can find the available themes in flatlaf: https://www.formdev.com/flatlaf/themes/ On the same website you can download a nice theme editor to create your own theme (with real time preview). |
| Posted by Keet at Feb 7, 2024, 10:56:05 AM |
|
Re: Dark Mode I should have known somebody already did the hard work, in this case FlatLaf I read about that project when researching about dark mode but didn't realize it was so easy to use it with Swing. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by shadowcaster at Jun 5, 2024, 9:17:26 AM |
|
Re: Dark Mode Hi, I've tried using the FlatDarkLaf but am not having any success. I've never ran any java swing program like this before, so I might be missing something simple. I added flatlaf-3.4.1.jar into the sweethome3d\lib folder. I ran "java -jar SweetHome3D-7.4 jar -Dswing.defaultlaf=com.formdev.flatlaf.FlatDarkLaf. From cmd it starts to run sweethome but hangs after the logo displays. From powershell it runs, pauses, then launches the program but without applying flatdarklaf. Any suggestions? |
| Posted by Daniels118 at Jun 5, 2024, 7:20:24 PM |
|
Re: Dark Mode Use the following commands: set SH3DINST=C:\Program Files\Sweet Home 3D |
|
|
|
Current timezone is GMT Dec 16, 2025, 10:07:17 AM |