Class Button

java.lang.Object
me.hackware.api.gui.Button

public final class Button extends Object
A nextui-style button (JoshMerlino/nextui Button.tsx, dense size): rounded-md, sentence-case label, centred both axes.
  • raised — solid accent fill, hover darkens (600 → 700), light label, soft shadow.
  • outlined — accent text, accent/50 1px outline, transparent body, hover accent/10 tint.
Stateless — the hosting screen owns bounds/hit-testing and triggers the Ripple on press.
  • Field Details

    • HEIGHT

      public static final int HEIGHT
      Dense button height (nextui h-7 proportioned to the MC font).
      See Also:
    • HEIGHT_LARGE

      public static final int HEIGHT_LARGE
      Large button height (nextui h-11 px-6 text-base).
      See Also:
    • PAD_H

      public static final int PAD_H
      Horizontal label padding for the dense variant. Tighter than the large variant's: the MC font is narrow and these buttons are short, so the wider inset left them reading as stretched pills rather than content-hugging controls.
      See Also:
    • PAD_H_LARGE

      public static final int PAD_H_LARGE
      Horizontal label padding for HEIGHT_LARGE buttons (nextui px-3).
      See Also:
    • ICON_GAP

      public static final int ICON_GAP
      Gap between a leading icon and the label.
      See Also:
    • NEUTRAL

      public static final int NEUTRAL
      nextui dark-mode neutral (neutral-300) — outlined-neutral text/border/ripple.
      See Also:
  • Method Details