Skip to main content

I'm developing a package using SDK 2.11.0 and noticed that the text_color() and background_color() parameters for @CommandPkg are now deprecated.

Is there still a supported way to set custom text and background colors for a package in the current SDK version?

Here's what I’ve tried so far, but it doesn’t seem to work:

@CommandPkg(
    name = "BetterComments",
    label = " lBetterComments.label]]",
    node_label = "{{firstString}}",
    description = " dBetterComments.description]]",
    icon = "comment.svg",
    return_type = DataType.NONE,
    multiple_returns = {},
    text_color = "#3b8f33"
)

@jamir-boop  They are not deprecated, you need to use them like this. This is not documented.

@CommandPkg(
    name = "BetterComments",
    label = "laBetterComments.label]]",
    node_label = "{{firstString}}",
    description = "deBetterComments.description]]",
    icon = "comment.svg",
    return_type = DataType.NONE,
    multiple_returns = {},
    text_color = "#3b8f33",

    comment = true
)


Reply