Skip to main content
Solved

package development: custom color

  • April 13, 2025
  • 1 reply
  • 53 views

Forum|alt.badge.img

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
)

View original
Did this topic help answer your question?

1 reply

Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 62 replies
  • Answer
  • 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
)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings