UI: Make colorspace tooltips more useful for non English languages

Use longer descriptions for colorspace tooltips that better explain the
meanings of the acronyms.

Pull Request: https://projects.blender.org/blender/blender/pulls/119810
This commit is contained in:
Bartosz Kosiorek
2025-01-29 18:46:38 +01:00
committed by Harley Acheson
parent b51c560f6e
commit 5bcde9cbff

View File

@@ -554,9 +554,21 @@ const EnumPropertyItem rna_enum_node_geometry_curve_handle_side_items[] = {
{0, nullptr, 0, nullptr, nullptr}};
const EnumPropertyItem rna_enum_node_combsep_color_items[] = {
{NODE_COMBSEP_COLOR_RGB, "RGB", ICON_NONE, "RGB", "Use RGB color processing"},
{NODE_COMBSEP_COLOR_HSV, "HSV", ICON_NONE, "HSV", "Use HSV color processing"},
{NODE_COMBSEP_COLOR_HSL, "HSL", ICON_NONE, "HSL", "Use HSL color processing"},
{NODE_COMBSEP_COLOR_RGB,
"RGB",
ICON_NONE,
"RGB",
"Use RGB (Red, Green, Blue) color processing"},
{NODE_COMBSEP_COLOR_HSV,
"HSV",
ICON_NONE,
"HSV",
"Use HSV (Hue, Saturation, Value) color processing"},
{NODE_COMBSEP_COLOR_HSL,
"HSL",
ICON_NONE,
"HSL",
"Use HSL (Hue, Saturation, Lightness) color processing"},
{0, nullptr, 0, nullptr, nullptr},
};
@@ -6709,9 +6721,21 @@ static void def_sh_output_aov(BlenderRNA * /*brna*/, StructRNA *srna)
static void def_sh_combsep_color(BlenderRNA * /*brna*/, StructRNA *srna)
{
static const EnumPropertyItem type_items[] = {
{NODE_COMBSEP_COLOR_RGB, "RGB", ICON_NONE, "RGB", "Use RGB color processing"},
{NODE_COMBSEP_COLOR_HSV, "HSV", ICON_NONE, "HSV", "Use HSV color processing"},
{NODE_COMBSEP_COLOR_HSL, "HSL", ICON_NONE, "HSL", "Use HSL color processing"},
{NODE_COMBSEP_COLOR_RGB,
"RGB",
ICON_NONE,
"RGB",
"Use RGB (Red, Green, Blue) color processing"},
{NODE_COMBSEP_COLOR_HSV,
"HSV",
ICON_NONE,
"HSV",
"Use HSV (Hue, Saturation, Value) color processing"},
{NODE_COMBSEP_COLOR_HSL,
"HSL",
ICON_NONE,
"HSL",
"Use HSL (Hue, Saturation, Lightness) color processing"},
{0, nullptr, 0, nullptr, nullptr},
};
@@ -7756,12 +7780,15 @@ static void def_cmp_chroma_matte(BlenderRNA * /*brna*/, StructRNA *srna)
static void def_cmp_channel_matte(BlenderRNA * /*brna*/, StructRNA *srna)
{
PropertyRNA *prop;
static const EnumPropertyItem color_space_items[] = {
{CMP_NODE_CHANNEL_MATTE_CS_RGB, "RGB", 0, "RGB", "RGB color space"},
{CMP_NODE_CHANNEL_MATTE_CS_HSV, "HSV", 0, "HSV", "HSV color space"},
{CMP_NODE_CHANNEL_MATTE_CS_YUV, "YUV", 0, "YUV", "YUV color space"},
{CMP_NODE_CHANNEL_MATTE_CS_YCC, "YCC", 0, "YCbCr", "YCbCr color space"},
{CMP_NODE_CHANNEL_MATTE_CS_RGB, "RGB", 0, "RGB", "RGB (Red, Green, Blue) color space"},
{CMP_NODE_CHANNEL_MATTE_CS_HSV, "HSV", 0, "HSV", "HSV (Hue, Saturation, Value) color space"},
{CMP_NODE_CHANNEL_MATTE_CS_YUV, "YUV", 0, "YUV", "YUV (Y - luma, U V - chroma) color space"},
{CMP_NODE_CHANNEL_MATTE_CS_YCC,
"YCC",
0,
"YCbCr",
"YCbCr (Y - luma, Cb - blue-difference chroma, Cr - red-difference chroma) color space"},
{0, nullptr, 0, nullptr, nullptr},
};
@@ -8590,11 +8617,32 @@ static void def_cmp_ycc(BlenderRNA * /*brna*/, StructRNA *srna)
static void def_cmp_combsep_color(BlenderRNA * /*brna*/, StructRNA *srna)
{
static const EnumPropertyItem mode_items[] = {
{CMP_NODE_COMBSEP_COLOR_RGB, "RGB", ICON_NONE, "RGB", "Use RGB color processing"},
{CMP_NODE_COMBSEP_COLOR_HSV, "HSV", ICON_NONE, "HSV", "Use HSV color processing"},
{CMP_NODE_COMBSEP_COLOR_HSL, "HSL", ICON_NONE, "HSL", "Use HSL color processing"},
{CMP_NODE_COMBSEP_COLOR_YCC, "YCC", ICON_NONE, "YCbCr", "Use YCbCr color processing"},
{CMP_NODE_COMBSEP_COLOR_YUV, "YUV", ICON_NONE, "YUV", "Use YUV color processing"},
{CMP_NODE_COMBSEP_COLOR_RGB,
"RGB",
ICON_NONE,
"RGB",
"Use RGB (Red, Green, Blue) color processing"},
{CMP_NODE_COMBSEP_COLOR_HSV,
"HSV",
ICON_NONE,
"HSV",
"Use HSV (Hue, Saturation, Value) color processing"},
{CMP_NODE_COMBSEP_COLOR_HSL,
"HSL",
ICON_NONE,
"HSL",
"Use HSL (Hue, Saturation, Lightness) color processing"},
{CMP_NODE_COMBSEP_COLOR_YCC,
"YCC",
ICON_NONE,
"YCbCr",
"Use YCbCr (Y - luma, Cb - blue-difference chroma, Cr - red-difference chroma) color "
"processing"},
{CMP_NODE_COMBSEP_COLOR_YUV,
"YUV",
ICON_NONE,
"YUV",
"Use YUV (Y - luma, U V - chroma) color processing"},
{0, nullptr, 0, nullptr, nullptr},
};