Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4497 times and has 4 replies Next Thread
thomasmendozajr
Newbie



United States
Joined: Dec 29, 2019
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
Is there away to change 2D background color?

I was wondering if there was a way to change the background color in the 2d window Od rather use a darker color
[Jan 21, 2023, 5:54:02 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Is there away to change 2D background color?

Only by program, by calling setBackground method on the plan component.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 21, 2023, 10:35:56 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Daniels118
Advanced Member
Member's Avatar

Italy
Joined: Nov 17, 2021
Post Count: 398
Status: Offline
Reply to this Post  Reply with Quote 
Re: Is there away to change 2D background color?

You may import a background image of the color you like. When importing specify a size larger than your home so that it covers the whole plan even if you zoom out.
You have to import the background on each level.
Be aware that a too dark background will reduce the contrast with lines.
[Jan 21, 2023, 10:40:21 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
thomasmendozajr
Newbie



United States
Joined: Dec 29, 2019
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
Re: Is there away to change 2D background color?

Sounds good but how do I call setbackground on plan component? I haven’t messed with a lot of coding in sweethome3d but that would be great so I can set plans for all my foundations plans and layout plans,
[Jan 21, 2023, 2:14:50 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Is there away to change 2D background color?

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.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 21, 2023, 5:59:09 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved