Re: Question regarding styling input checkbox element
Rodrigo Arias <[email protected]> Wed, 21 May 2025 00:34:04 +0200
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Tue, May 20, 2025 at 01:33:43PM +0000, [email protected] wrote: >Hi, > >When using a dark css theme (I like to use a black background), putting >a checkmark in a checkbox is invisible (black). I tried messing around >with style.css with various configurations for input, but it seems >impossible to make the checkmark anything other than black. > >It's not a huge issue, but when editing bookmarks it becomes a little >annoying. > >Any suggestions, or is this just a limitation of the css implementation? For some reason is always hardcoded to be black. Here is making it always red: diff --git a/dw/fltkui.cc b/dw/fltkui.cc index db7c94e2..2d3882d2 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -1172,7 +1172,7 @@ void FltkToggleButtonResource<I>::setWidgetStyle (Fl_Widget *widget, { FltkResource::setWidgetStyle(widget, style); - widget->selection_color(FL_BLACK); + widget->selection_color(FL_RED); } See commit fa967f233fe6da82a98aaf3e2149d7aa5e1516cc for context, but not sure why is not just inheriting the CSS foreground color. Best, Rodrigo. _______________________________________________ Dillo-dev mailing list -- dillo-dev-lx9mn2B4QYRWk0Htik3J/[email protected] To unsubscribe send an email to dillo-dev-leave-lx9mn2B4QYRWk0Htik3J/[email protected]