[#31410] Code review testing: The color correction node in particular is
quite problematic in button layout * Added first column with labels * increased max size of node * moved the start/end midtones to the bottom of the node
This commit is contained in:
@@ -1984,17 +1984,7 @@ static void node_composit_buts_colorcorrection(uiLayout *layout, bContext *UNUSE
|
||||
uiItemR(row, ptr, "blue", 0, NULL, ICON_NONE);
|
||||
|
||||
row = uiLayoutRow(layout, 0);
|
||||
uiItemR(row, ptr, "midtones_start", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "midtones_end", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
|
||||
row = uiLayoutRow(layout, 0);
|
||||
uiItemR(row, ptr, "master_saturation", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "master_contrast", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "master_gamma", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "master_gain", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "master_lift", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
|
||||
row = uiLayoutRow(layout, 0);
|
||||
uiItemL(row, "", 0);
|
||||
uiItemL(row, "Saturation", 0);
|
||||
uiItemL(row, "Contrast", 0);
|
||||
uiItemL(row, "Gamma", 0);
|
||||
@@ -2002,6 +1992,15 @@ static void node_composit_buts_colorcorrection(uiLayout *layout, bContext *UNUSE
|
||||
uiItemL(row, "Lift", 0);
|
||||
|
||||
row = uiLayoutRow(layout, 0);
|
||||
uiItemL(row, "Master", 0);
|
||||
uiItemR(row, ptr, "master_saturation", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "master_contrast", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "master_gamma", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "master_gain", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "master_lift", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
|
||||
row = uiLayoutRow(layout, 0);
|
||||
uiItemL(row, "Highlights", 0);
|
||||
uiItemR(row, ptr, "highlights_saturation", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "highlights_contrast", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "highlights_gamma", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
@@ -2009,6 +2008,7 @@ static void node_composit_buts_colorcorrection(uiLayout *layout, bContext *UNUSE
|
||||
uiItemR(row, ptr, "highlights_lift", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
|
||||
row = uiLayoutRow(layout, 0);
|
||||
uiItemL(row, "Midtones", 0);
|
||||
uiItemR(row, ptr, "midtones_saturation", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "midtones_contrast", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "midtones_gamma", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
@@ -2016,11 +2016,16 @@ static void node_composit_buts_colorcorrection(uiLayout *layout, bContext *UNUSE
|
||||
uiItemR(row, ptr, "midtones_lift", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
|
||||
row = uiLayoutRow(layout, 0);
|
||||
uiItemL(row, "Shadows", 0);
|
||||
uiItemR(row, ptr, "shadows_saturation", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "shadows_contrast", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "shadows_gamma", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "shadows_gain", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "shadows_lift", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
|
||||
row = uiLayoutRow(layout, 0);
|
||||
uiItemR(row, ptr, "midtones_start", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
uiItemR(row, ptr, "midtones_end", UI_ITEM_R_SLIDER, NULL, ICON_NONE);
|
||||
}
|
||||
static void node_composit_buts_colorcorrection_but(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) {
|
||||
uiLayout *row;
|
||||
|
||||
@@ -81,7 +81,7 @@ void register_node_type_cmp_colorcorrection(bNodeTreeType *ttype)
|
||||
|
||||
node_type_base(ttype, &ntype, CMP_NODE_COLORCORRECTION, "Color Correction", NODE_CLASS_OP_COLOR, NODE_OPTIONS);
|
||||
node_type_socket_templates(&ntype, cmp_node_colorcorrection_in, cmp_node_colorcorrection_out);
|
||||
node_type_size(&ntype, 400, 200, 400);
|
||||
node_type_size(&ntype, 400, 200, 500);
|
||||
node_type_init(&ntype, node_composit_init_colorcorrection);
|
||||
node_type_storage(&ntype, "NodeColorCorrection", node_free_standard_storage, node_copy_standard_storage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user