Class: Clacky::UI2::Themes::HackerTheme

Inherits:
BaseTheme
  • Object
show all
Defined in:
lib/clacky/ui2/themes/hacker_theme.rb

Overview

HackerTheme - Matrix/hacker-style with bracket symbols

Constant Summary collapse

SYMBOLS =
{
  user: "[>>]",
  assistant: "[<<]",
  tool_call: "[=>]",
  tool_result: "[<=]",
  tool_denied: "[!!]",
  tool_planned: "[??]",
  tool_error: "[XX]",
  thinking: "[..]",
  working: "[..]",
  success: "[OK]",
  error: "[ER]",
  warning: "[!!]",
  info: "[--]",
  task: "[##]",
  progress: "[>>]",
  file: "[F]",
  command: "[C]",
  cached: "[*]"
}.freeze
COLORS =
{
  # Format: [symbol_color, dark_bg_text, light_bg_text]
  user: [:bright_black, :white, :black],           # User prompt and input
  assistant: [:bright_green, :bright_black, :bright_black], # AI response - keep green hacker style
  tool_call: [:bright_cyan, :cyan, :cyan],                # Tool execution
  tool_result: [:bright_cyan, :bright_black, :bright_black], # Tool output
  tool_denied: [:bright_yellow, :yellow, :yellow],        # Denied actions
  tool_planned: [:bright_cyan, :cyan, :cyan],             # Planned actions
  tool_error: [:bright_red, :red, :red],                  # Errors
  thinking: [:bright_black, :bright_black, :bright_black], # Thinking status
  working: [:bright_yellow, :yellow, :yellow],            # Working status
  success: [:bright_green, :green, :green],               # Success messages
  error: [:bright_red, :red, :red],                       # Error messages
  warning: [:bright_yellow, :yellow, :yellow],            # Warnings
  info: [:bright_black, :bright_black, :bright_black],    # Info messages
  task: [:bright_yellow, :bright_black, :bright_black],   # Task items
  progress: [:bright_cyan, :cyan, :cyan],                 # Progress indicators
  file: [:cyan, :bright_black, :bright_black],            # File references
  command: [:cyan, :bright_black, :bright_black],         # Command references
  cached: [:cyan, :cyan, :cyan],                          # Cached indicators
  # Status bar colors
  statusbar_path: [:bright_black, :bright_black, :bright_black],        # Path
  statusbar_secondary: [:bright_black, :bright_black, :bright_black]    # Model/tasks/cost
}.freeze

Instance Method Summary collapse

Methods inherited from BaseTheme

#colors, #dark_background?, #format_symbol, #format_text, #initialize, #set_background_mode, #symbol, #symbol_color, #symbols, #text_color, #validate_theme_definition!

Constructor Details

This class inherits a constructor from Clacky::UI2::Themes::BaseTheme

Instance Method Details

#nameObject



56
57
58
# File 'lib/clacky/ui2/themes/hacker_theme.rb', line 56

def name
  "hacker"
end