Recent

Author Topic: How to change backround color of form editor ?  (Read 5789 times)

zbyna

  • Jr. Member
  • **
  • Posts: 63
How to change backround color of form editor ?
« on: July 17, 2016, 03:01:29 am »
Is it possible to change backround color of form editor ? I use dark window 7 theme and  the form editor remains white.
http://i.imgur.com/XZvkpuEl.jpg
Thanks

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: How to change backround color of form editor ?
« Reply #1 on: July 17, 2016, 02:57:53 pm »
In the "Form Editor" options page you can change some colors but not the background.
Yes, I think it should be configurable, too. Patches are welcome if somebody wants to implement it.

I am not sure how well some components would show if the background was dark though.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

zbyna

  • Jr. Member
  • **
  • Posts: 63
Re: How to change backround color of form editor ?
« Reply #2 on: July 17, 2016, 04:41:39 pm »
I managed to change backround using:
Code: [Select]
\lazarus\components\sparta\dockedformeditor\source\sparta_resizerframe.lfmsee:
http://i.imgur.com/tmDVXyql.jpg
I am afraid that creating proper patch is out of my current skill regarding knowing Lazarus source :(

Code: Pascal  [Select][+][-]
  1. --- C:/Users/decak/AppData/Local/Temp/sparta_resizerframe.lfm-revBASE.svn001.tmp.lfm    ne 1 10 17:22:15 2016
  2. +++ E:/Development/lazarus/components/sparta/dockedformeditor/source/sparta_resizerframe.lfm    ne 7 17 16:37:03 2016
  3. @@ -9 +9 @@ object ResizerFrame: TResizerFrame
  4. -  ParentColor = False
  5. +  ParentColor = True
  6. @@ -167,2 +167,2 @@ object ResizerFrame: TResizerFrame
  7. -    Color = clNone
  8. -    ParentColor = False
  9. +    Color = clDefault
  10. +    ParentColor = True
  11. @@ -199,2 +199,2 @@ object ResizerFrame: TResizerFrame
  12. -    Color = clNone
  13. -    ParentColor = False
  14. +    Color = clDefault
  15. +    ParentColor = True

hnb

  • Sr. Member
  • ****
  • Posts: 270
Re: How to change backround color of form editor ?
« Reply #3 on: July 20, 2016, 10:40:15 pm »
I am afraid that creating proper patch is out of my current skill regarding knowing Lazarus source :(

Thanks, seems good :)

Patch approved in r52733 (with small modification, your source is out dated). As addition for forum please use bug tracker for bugs/features request.
Checkout NewPascal initiative and donate beer - ready to use tuned FPC compiler + Lazarus for mORMot project

best regards,
Maciej Izak

 

TinyPortal © 2005-2018