1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

LibWeb: Change SVGContext initial fill_color to transparent

This patch changes the initialization of the fill_color of an SVGContext
to transparent instead of black to not draw a black filling if the
elements fill_color is defined as "none".
This commit is contained in:
Torstennator 2022-08-23 18:52:40 +02:00 committed by Andreas Kling
parent adf0262b54
commit 7c09d7c52f

View file

@ -35,7 +35,7 @@ public:
private:
struct State {
Gfx::Color fill_color { Gfx::Color::Black };
Gfx::Color fill_color { Gfx::Color::Transparent };
Gfx::Color stroke_color { Gfx::Color::Transparent };
float stroke_width { 1.0 };
};