mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 08:18:13 +08:00
Blend modes (#252)
* Add backend for selecting layer blend mode * Change dropdown input to support callback on change * Add debug messages * Fix canvas update for blend-modes * Finish up and polish blend modes implementations * Add changes from code review Co-authored-by: Keavon Chambers <keavon@keavon.com> Co-authored-by: Dennis Kobert <dennis@kobert.dev>
This commit is contained in:
co-authored by
Keavon Chambers
Dennis Kobert
parent
63e3b5c604
commit
8f9168bfe5
@@ -1,5 +1,8 @@
|
||||
use crate::document::LayerData;
|
||||
use document_core::{layers::LayerDataTypes, LayerId};
|
||||
use document_core::{
|
||||
layers::{BlendMode, LayerDataTypes},
|
||||
LayerId,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt;
|
||||
|
||||
@@ -7,6 +10,7 @@ use std::fmt;
|
||||
pub struct LayerPanelEntry {
|
||||
pub name: String,
|
||||
pub visible: bool,
|
||||
pub blend_mode: BlendMode,
|
||||
pub layer_type: LayerType,
|
||||
pub layer_data: LayerData,
|
||||
pub path: Vec<LayerId>,
|
||||
|
||||
Reference in New Issue
Block a user