[PATCH] Use FL_FOREGROUND_COLOR for widget selection color
<[email protected]> Fri, 20 Feb 2026 13:14:33 +0000
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
--MP_/hy=f5b=gJG+ojRUXagmvJiL Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Currently Dillo uses a fixed color (black) for the widget selection color, which includes checkmarks and radio buttons. When using a dark color scheme, these selections can be invisible or hard to see. Instead, use the foreground color from dillorc to ensure visibility. Patch is attached. Also, I put up a little blog post with some other Dillo patches, hopefully someone here will find it interesting! I welcome any feedback. https://alex.envs.net/blog/dillo Regards, Alex --MP_/hy=f5b=gJG+ojRUXagmvJiL Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-Use-FL_FOREGROUND_COLOR-for-widget-selection-color.patch >From 323accb8f08376d4300e47c80e76fb3c80b55cf7 Mon Sep 17 00:00:00 2001 From: Alex <[email protected]> Date: Fri, 20 Feb 2026 12:33:25 +0000 Subject: [PATCH] Use FL_FOREGROUND_COLOR for widget selection color Currently Dillo uses a fixed color (black) for the widget selection color, which includes checkmarks and radio buttons. When using a dark color scheme, these selections can be invisible or hard to see. Instead, use the foreground color from dillorc to ensure visibility. --- dw/fltkui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dw/fltkui.cc b/dw/fltkui.cc index d1719509..66bca1da 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -1173,7 +1173,7 @@ void FltkToggleButtonResource<I>::setWidgetStyle (Fl_Widget *widget, { FltkResource::setWidgetStyle(widget, style); - widget->selection_color(FL_BLACK); + widget->selection_color(FL_FOREGROUND_COLOR); } -- 2.51.0 --MP_/hy=f5b=gJG+ojRUXagmvJiL Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Dillo-dev mailing list -- dillo-dev-lx9mn2B4QYRWk0Htik3J/[email protected] To unsubscribe send an email to dillo-dev-leave-lx9mn2B4QYRWk0Htik3J/[email protected] --MP_/hy=f5b=gJG+ojRUXagmvJiL--