[master] d6d1d8a - Solve issue #204, wrong default for labelfgcolor()

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] d6d1d8a - Solve issue #204, wrong default for labelfgcolor() "Greg Ercolano" 08:02 Mar 22 top right image
 
commit d6d1d8afe45a2f315f7fd91f2bcc2d9514d7244d
Author:     Greg Ercolano <erco@seriss.com>
AuthorDate: Mon Mar 22 07:58:47 2021 -0700
Commit:     Greg Ercolano <erco@seriss.com>
CommitDate: Mon Mar 22 07:58:47 2021 -0700

    Solve issue #204, wrong default for labelfgcolor()
    
    FL_BLACK changed to FL_FOREGROUND_COLOR as per docs.

 src/Fl_Tree_Prefs.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Fl_Tree_Prefs.cxx src/Fl_Tree_Prefs.cxx
index 4bfe484..d8f68a8 100644
--- src/Fl_Tree_Prefs.cxx
+++ src/Fl_Tree_Prefs.cxx
@@ -149,7 +149,7 @@ Fl_Tree_Prefs::Fl_Tree_Prefs() {
   _labelmarginleft        = 3;
   _widgetmarginleft       = 3;
   _linespacing            = 0;
-  _labelfgcolor           = FL_BLACK;
+  _labelfgcolor           = FL_FOREGROUND_COLOR;
   _labelbgcolor           = 0xffffffff;         // we use this as 'transparent'
   _connectorcolor         = Fl_Color(43);
   _connectorstyle         = (Fl_Tree_Connector)Fl::system_driver()->tree_connector_style();
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.