mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 06:38:12 +08:00
Rename 'Grayscale' node to 'Black & White'
This commit is contained in:
+3
-3
@@ -686,9 +686,9 @@ fn static_nodes() -> Vec<DocumentNodeType> {
|
||||
..Default::default()
|
||||
},
|
||||
DocumentNodeType {
|
||||
name: "Grayscale",
|
||||
name: "Black & White",
|
||||
category: "Image Adjustments",
|
||||
identifier: NodeImplementation::proto("graphene_core::raster::GrayscaleNode<_, _, _, _, _, _, _>"),
|
||||
identifier: NodeImplementation::proto("graphene_core::raster::BlackAndWhiteNode<_, _, _, _, _, _, _>"),
|
||||
inputs: vec![
|
||||
DocumentInputType {
|
||||
name: "Image",
|
||||
@@ -732,7 +732,7 @@ fn static_nodes() -> Vec<DocumentNodeType> {
|
||||
},
|
||||
],
|
||||
outputs: vec![DocumentOutputType::new("Image", FrontendGraphDataType::Raster)],
|
||||
properties: node_properties::grayscale_properties,
|
||||
properties: node_properties::black_and_white_properties,
|
||||
..Default::default()
|
||||
},
|
||||
DocumentNodeType {
|
||||
|
||||
+1
-1
@@ -687,7 +687,7 @@ pub fn levels_properties(document_node: &DocumentNode, node_id: NodeId, _context
|
||||
]
|
||||
}
|
||||
|
||||
pub fn grayscale_properties(document_node: &DocumentNode, node_id: NodeId, _context: &mut NodePropertiesContext) -> Vec<LayoutGroup> {
|
||||
pub fn black_and_white_properties(document_node: &DocumentNode, node_id: NodeId, _context: &mut NodePropertiesContext) -> Vec<LayoutGroup> {
|
||||
const MIN: f64 = -200.;
|
||||
const MAX: f64 = 300.;
|
||||
// TODO: Add tint color (blended above using the "Color" blend mode)
|
||||
|
||||
Reference in New Issue
Block a user