Package org.aesh.terminal.tty.utils
Class ThemeNameClassifier
java.lang.Object
org.aesh.terminal.tty.utils.ThemeNameClassifier
Classifies theme/color-scheme names as DARK or LIGHT based on known keywords.
This consolidates the theme name matching logic that was previously duplicated across Windows Terminal, ConEmu, Alacritty, VSCode, and JetBrains detectors.
- Author:
- Ståle W. Pedersen
-
Method Summary
Modifier and TypeMethodDescriptionstatic TerminalThemeClassify a theme or color scheme name as DARK, LIGHT, or UNKNOWN.
-
Method Details
-
classify
Classify a theme or color scheme name as DARK, LIGHT, or UNKNOWN.The classification is case-insensitive and checks for known keywords. More specific keywords (like "solarized light") are checked before generic ones (like "light") to avoid false matches.
- Parameters:
themeName- the theme or color scheme name- Returns:
- the classified theme, or UNKNOWN if not recognized
-