From aaaf0a0537e03cec7a47330550a31bb4e96dacde Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 1 Nov 2023 17:22:31 +0100 Subject: FLUID: Adds options to draw ghosted outlines. --- fluid/Fl_Window_Type.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'fluid/Fl_Window_Type.cxx') diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 2cf39e9da..21bb1f37a 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -795,6 +795,20 @@ void toggle_restricted(Fl_Widget *,void *) { } } +/** + \brief User changes settings to show low contrast groups with a ghosted outline. + */ +void toggle_ghosted_outline_cb(Fl_Check_Button *,void *) { + show_ghosted_outline = !show_ghosted_outline; + fluid_prefs.set("show_ghosted_outline", show_ghosted_outline); + for (Fl_Type *o=Fl_Type::first; o; o=o->next) { + if (o->is_a(ID_Window)) { + Fl_Widget_Type* w = (Fl_Widget_Type*)o; + ((Overlay_Window*)(w->o))->redraw(); + } + } +} + /** \brief User changes settings to show overlapping and out of bounds widgets. This is called from the check button in the Settings dialog. -- cgit v1.2.3