Re: Dark mode screenshot and tutorial
"Kevin Koster" <dillo-PpymaetoNy61Z/[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Organization | OmberTech |
| Message-ID | <171996115245.28.11101122970609635535@61eb44cc970f> |
Rodrigo Arias <rodarima-Re5JQEeQqe8AvxtiuMwx3w-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org> wrote:
> On Tue, Jul 02, 2024 at 08:24:59PM +0200, Rodrigo Arias wrote:
>>The background color of the image is being assigned from the color of
>>the <html> background. Try this patch to override it from the current
>>element:
>>
>>diff --git a/src/html.cc b/src/html.cc
>>index a55fd2a8..649e7556 100644
>>--- a/src/html.cc
>>+++ b/src/html.cc
>>@@ -2156,6 +2156,9 @@ DilloImage *a_Html_image_new(DilloHtml *html, const char *tag, int tagsize)
>> if (HT2TB(html)->getBgColor())
>> image->bg_color = HT2TB(html)->getBgColor()->getColor();
>>
>>+ if (html->styleEngine->backgroundColor())
>>+ image->bg_color = html->styleEngine->backgroundColor()->getColor();
>>+
>> DilloHtmlImage *hi = dNew(DilloHtmlImage, 1);
>> hi->url = url;
>> html->images->increase();
>
> And this extra rule in style.css:
>
> html {background-color: gray !important}
Thanks, yes together those changes work to set the PNG background
colour.
_______________________________________________
Dillo-dev mailing list -- dillo-dev-lx9mn2B4QYRWk0Htik3J/[email protected]
To unsubscribe send an email to dillo-dev-leave-lx9mn2B4QYRWk0Htik3J/[email protected]