summaryrefslogtreecommitdiff
path: root/fluid/Fl_Window_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-11-01 17:22:31 +0100
committerMatthias Melcher <github@matthiasm.com>2023-11-01 17:22:40 +0100
commitaaaf0a0537e03cec7a47330550a31bb4e96dacde (patch)
tree820ea79b85ed1e3b9fdcfe9ef0b2fc16a15c5cc6 /fluid/Fl_Window_Type.cxx
parent5f836377a0f4e5c7b90b06ba4b4fefc3ccf04a39 (diff)
FLUID: Adds options to draw ghosted outlines.
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
-rw-r--r--fluid/Fl_Window_Type.cxx14
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.
*/