On Wed, Aug 21, 2024 at 06:16:01PM +0200, a...@dismail.de wrote:
Hi,
Here is a ligher and slightly more modern looking dark theme for
downloads.dpi.
Very nice!
I'm wondering if we could add a mechanism to define themes without
having to rebuild Dillo.
It would be nice to define some CSS-like styles that define the Dillo
interface colors and button styles too, and be able to switch among them
at runtime. As we already have the CSS parser, we could just use CSS
rules that apply to classes.
Example:
Fl_Widget *o = new Fl_Box(ix,iy,iw,ih, "Got");
o->box(FL_THIN_UP_BOX);
o->color(FL_BLACK);
o->labelcolor(FL_WHITE);
.downloads {
color: "white"; /* Use white text by default */
}
.downloads.got-header {
border-style: thin-up-box; /* custom */
background: "black";
/* Inherits white text */
}
I wanted to have at least a light and dark theme, so I can easily switch
from one to another quickly, probably with a single button like the dark
reader extension for Firefox:
https://darkreader.org/
See this issue too:
https://github.com/dillo-browser/dillo/issues/247
Here are some FLTK themes in Rust which also change the FLTK color map:
https://github.com/fltk-rs/fltk-theme/tree/main
Best,
Rodrigo.
_______________________________________________
Dillo-dev mailing list -- dillo-dev@mailman3.com
To unsubscribe send an email to dillo-dev-le...@mailman3.com