Class OverlayTheme

java.lang.Object
privbot.ui.overlay.OverlayTheme

public final class OverlayTheme extends Object
The one palette for in-game overlays.

Nineteen plugin overlays used to declare the same private constants (COLOR_TITLE = new Color(255, 215, 0), a (18, 20, 26, 200) card, green/amber/red for good/warn/bad). They live here now, derived from ModernTheme where the sidebar already has a token, and slightly lighter where text has to stay legible over the game scene rather than over a flat card.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Color
    Danger or failure (red).
    static final Color
    Translucent card behind a HUD panel.
    static final Color
    1 px card outline.
    static final Color
    Healthy, safe, done (green).
    static final Color
    Draws the eye without meaning good or bad (cyan), e.g.
    static final Color
    Lighter than ModernTheme.ACCENT_INFO: 6.4:1 over the card instead of 4:1.
    static final Color
    Row labels (left column).
    static final Color
    Values that are merely informational, or "idle".
    static final int
    Default HUD panel width; the plugin values ranged 200..260 for the same content.
    static final Color
    Drop shadow under scene text.
    static final int
    Alpha for filled tiles: the value every tile overlay converged on.
    static final Color
    HUD panel title: the brand gold every plugin overlay already used.
    static final Color
    Row values (right column) when they carry no meaning of their own.
    static final Color
    Needs attention soon (amber).
  • Method Summary

    Modifier and Type
    Method
    Description
    static Color
    alpha(Color c, int alpha)
    The same hue with a different alpha.
    static Color
    cardBackground(int opacityPercent)
    CARD_BG at opacityPercent (0..100, clamped) instead of its fixed alpha: the per-panel background of a HUD whose opacity is a setting.
    static Color
    A tile fill for c: same hue at TILE_ALPHA.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TITLE

      public static final Color TITLE
      HUD panel title: the brand gold every plugin overlay already used.
    • CARD_BG

      public static final Color CARD_BG
      Translucent card behind a HUD panel.
    • CARD_BORDER

      public static final Color CARD_BORDER
      1 px card outline.
    • LABEL

      public static final Color LABEL
      Row labels (left column).
    • VALUE

      public static final Color VALUE
      Row values (right column) when they carry no meaning of their own.
    • MUTED

      public static final Color MUTED
      Values that are merely informational, or "idle".
    • GOOD

      public static final Color GOOD
      Healthy, safe, done (green).
    • WARN

      public static final Color WARN
      Needs attention soon (amber).
    • BAD

      public static final Color BAD
      Danger or failure (red).
    • INFO

      public static final Color INFO
      Lighter than ModernTheme.ACCENT_INFO: 6.4:1 over the card instead of 4:1.
    • HIGHLIGHT

      public static final Color HIGHLIGHT
      Draws the eye without meaning good or bad (cyan), e.g. a tile a condition tests.
    • TEXT_SHADOW

      public static final Color TEXT_SHADOW
      Drop shadow under scene text.
    • TILE_ALPHA

      public static final int TILE_ALPHA
      Alpha for filled tiles: the value every tile overlay converged on.
      See Also:
    • PANEL_WIDTH

      public static final int PANEL_WIDTH
      Default HUD panel width; the plugin values ranged 200..260 for the same content.
      See Also:
  • Method Details

    • alpha

      public static Color alpha(Color c, int alpha)
      The same hue with a different alpha.
    • cardBackground

      public static Color cardBackground(int opacityPercent)
      CARD_BG at opacityPercent (0..100, clamped) instead of its fixed alpha: the per-panel background of a HUD whose opacity is a setting.
    • tileFill

      public static Color tileFill(Color c)
      A tile fill for c: same hue at TILE_ALPHA.