Annotation Interface Alpha


@Retention(RUNTIME) @Target(METHOD) @Documented public @interface Alpha
Annotation that enables alpha channel support for color configuration items.

When applied to a ConfigItem method that returns a Color, the configuration UI will display an alpha (transparency) slider in addition to the standard color picker.

Example usage:


 @ConfigItem(
     keyName = "overlayColor",
     name = "Overlay Color",
     description = "Color of the overlay with transparency"
 )
 @Alpha
 default Color overlayColor() {
     return new Color(255, 0, 0, 128); // Semi-transparent red
 }
 

Without this annotation, color pickers will only allow RGB selection without transparency control.

See Also: