diff options
Diffstat (limited to 'src/Fl_Tree_Prefs.cxx')
| -rw-r--r-- | src/Fl_Tree_Prefs.cxx | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/src/Fl_Tree_Prefs.cxx b/src/Fl_Tree_Prefs.cxx index 4adee203d..04afda404 100644 --- a/src/Fl_Tree_Prefs.cxx +++ b/src/Fl_Tree_Prefs.cxx @@ -34,6 +34,22 @@ // These can be replaced via prefs.openicon()/closeicon() // static const char *L_open_xpm[] = { +#ifdef __APPLE__ + "11 11 2 1", + ". c None", + "@ c #000000", + "...@.......", + "...@@......", + "...@@@.....", + "...@@@@....", + "...@@@@@...", + "...@@@@@@..", + "...@@@@@...", + "...@@@@....", + "...@@@.....", + "...@@......", + "...@......." +#else "11 11 3 1", ". c #fefefe", "# c #444444", @@ -48,10 +64,28 @@ static const char *L_open_xpm[] = { "#....@....#", "#.........#", "#.........#", - "###########"}; + "###########" +#endif +}; static Fl_Pixmap L_openpixmap(L_open_xpm); static const char *L_close_xpm[] = { +#ifdef __APPLE__ + "11 11 2 1", + ". c None", + "@ c #000000", + "...........", + "...........", + "...........", + "...........", + "...........", + "@@@@@@@@@@@", + ".@@@@@@@@@.", + "..@@@@@@@..", + "...@@@@@...", + "....@@@....", + ".....@....." +#else "11 11 3 1", ". c #fefefe", "# c #444444", @@ -66,7 +100,9 @@ static const char *L_close_xpm[] = { "#.........#", "#.........#", "#.........#", - "###########"}; + "###########" +#endif +}; static Fl_Pixmap L_closepixmap(L_close_xpm); /// Sets the default icon to be used as the 'open' icon @@ -105,7 +141,11 @@ Fl_Tree_Prefs::Fl_Tree_Prefs() { _selectcolor = FL_DARK_BLUE; _inactivecolor = FL_GRAY; _connectorcolor = Fl_Color(43); +#ifdef __APPLE__ + _connectorstyle = FL_TREE_CONNECTOR_NONE; +#else _connectorstyle = FL_TREE_CONNECTOR_DOTTED; +#endif _openimage = &L_openpixmap; _closeimage = &L_closepixmap; _userimage = 0; |
