Skip to content

Commit

Permalink
fix(theme): add sysClr branch for Start event (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoloEdits authored Jun 4, 2024
1 parent f7966a1 commit 20cc655
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/structs/drawing/color2_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ impl Color2Type {
}
},
Event::Start(ref e) => {
if e.name().into_inner() == b"a:srgbClr" {
match e.name().into_inner() {
b"a:srgbClr" => {
let mut obj = RgbColorModelHex::default();
obj.set_attributes(reader, e, false);
self.rgb_color_model_hex = Some(obj);
}
b"a:sysClr" => {
let mut obj = SystemColor::default();
obj.set_attributes(reader, e);
self.system_color = Some(obj);
}
_ => (),
}
},
Event::End(ref e) => {
match e.name().into_inner() {
Expand Down

0 comments on commit 20cc655

Please sign in to comment.