Package privbot.ui
Every plugin's sidebar is a PrivBotPanel built with
PrivBotPanel.builder(String) and attached with
PluginUi.attach(net.runelite.client.ui.ClientToolbar, java.lang.String, java.util.function.Supplier<privbot.ui.PrivBotPanel>, java.lang.Class<?>, java.lang.String) in startUp(); call PluginUi.detach()
in shutDown(). Running state and stats are polled by the panel's timer on the EDT, so the
suppliers you pass must return published values, never read the client. Status always pairs a
glyph with its colour (PanelStatus).
Colours, fonts and spacing come from ModernTheme; do not declare a private
palette or extend PluginPanel directly. Settings windows live in privbot.ui.fx and
in-game overlays in privbot.ui.overlay. All Swing calls here belong on the EDT. Guide:
the SDK docs, Concepts (UI kit surfaces) and the overlays and UI cookbook.
-
ClassDescriptionA collapsible section with a clickable header that toggles content visibility.Shared PvP visual design system (consolidated from the formerly-duplicated
autopvp.gui.GearThemeandaipvp.gui.GearTheme, which were byte-identical).PrivBot UI design system (EasyFlow).Chip-style toggle for small filters/sort options.Rule Studio–style filter chip: JButton with active state and rounded rect paint.Logo/mark label (used in headers, similar to Rule Studio's icon + title).Badge label with a mutable accent color (useful for live status badges).Modern styled button with hover effects.Modern scroll bar UI.Modern text field with placeholder support.Modern Toggle Switch (replaces JCheckBox).Toggle button that paints background + text in one pass (no super.paintComponent) to avoid glitch.The states a plugin sidebar shows, each with a glyph so state is never carried by colour alone.Shared helpers for plugin nav and panel icons.The plugin-side wiring every sidebar needed: build the panel on the EDT, add the navigation button, and take both down again onshutDown().Reusable main frame for PrivBot plugin GUIs.Section metadata.Reusable sidebar panel for PrivBot plugins.Fluent description of a sidebar;PrivBotPanel.Builder.build()assembles it.Interface for panels that participate in profile save/load.Search field used by Rule Studio and AutoPvP for consistent look and behavior.Lightweight vector skill/category icons for Swing UIs (Rule Studio, etc.).Swing form layout + button styling helpers shared across plugins (sidebar panels, Swing dialogs).Modern toggle switch for ON/OFF (same visual language as RuleEngine; lives in shared-lib for reuse).