diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-11-01 17:22:31 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-11-01 17:22:40 +0100 |
| commit | aaaf0a0537e03cec7a47330550a31bb4e96dacde (patch) | |
| tree | 820ea79b85ed1e3b9fdcfe9ef0b2fc16a15c5cc6 /fluid/Fl_Window_Type.cxx | |
| parent | 5f836377a0f4e5c7b90b06ba4b4fefc3ccf04a39 (diff) | |
FLUID: Adds options to draw ghosted outlines.
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -796,6 +796,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. */ |
