Skip to main content
Ground Control | Tier 1
April 13, 2025
Solved

package development: custom color

  • April 13, 2025
  • 1 reply
  • 101 views

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 = "[[BetterComments.label]]",
    node_label = "{{firstString}}",
    description = "[[BetterComments.description]]",
    icon = "comment.svg",
    return_type = DataType.NONE,
    multiple_returns = {},
    text_color = "#3b8f33"
)

Best answer by Bot Dev

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

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

    comment = true
)

1 reply

Bot DevAnswer
Navigator | Tier 3
April 15, 2025

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

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

    comment = true
)

https://github.com/A360-Tools | https://botstore.automationanywhere.com/vendor/botdev