FLTK logo

[fltk.coredev] macOS menus have white corners on dark background under gtk+ scheme

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

macOS menus have white corners on dark background under gtk+ scheme Gonzalo Garramuno Apr 23, 2022  
 
I opened issue #435 on GitHub with an example program, which I reproduce here as it is small.  Compile with fltk-config.

#include <FL/Fl.H>
#include <FL/Enumerations.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Menu_Button.H>

void empty_cb( Fl_Widget* w, void* )
{
}

int main(int argc, char** argv)
{
    Fl::scheme( "gtk+" );  // base is fine, plastic is also wrong
    Fl::set_color( FL_BACKGROUND_COLOR, 64, 64, 64 );

    Fl_Double_Window *window = new Fl_Double_Window(400,400,"Use RMB for menu");
    Fl_Menu_Button* m = new Fl_Menu_Button(0,0,400,400);
    m->type( Fl_Menu_Button::POPUP3 );

    m->add( "See/White corners in menus", 0, (Fl_Callback*)empty_cb, NULL );

    window->end();
    window->show();

    return Fl::run();
}


—
Gonzalo Garramuno
ggarra13@gmail.com




-- 
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/85AA8332-168B-452A-AEF0-2C9E3B715723%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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