소스 검색

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".
Torstennator 3 년 전
부모
커밋
7c09d7c52f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Libraries/LibWeb/SVG/SVGContext.h

+ 1 - 1
Userland/Libraries/LibWeb/SVG/SVGContext.h

@@ -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 };
     };