mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 03:36:11 +02:00
🐛 Fix blend mode against background
This commit is contained in:
parent
579a5729e6
commit
21da6ddd4a
5 changed files with 34 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use skia_safe as skia;
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::render::RenderState;
|
||||
|
@ -57,4 +59,9 @@ impl<'a> State<'a> {
|
|||
pub fn current_shape(&'a mut self) -> Option<&'a mut Shape> {
|
||||
self.current_shape.as_deref_mut()
|
||||
}
|
||||
|
||||
pub fn set_background_color(&mut self, color: skia::Color) {
|
||||
self.render_state.set_background_color(color);
|
||||
self.render_all(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue