Primitive type class color

This commit is contained in:
bigguy345 committed 2025-12-26 23:15:14 +02:00
1 parent 662d843147
commit d9d89a2f23
1 file changed
+1
@@ -601,6 +601,7 @@ public class TokenHoverInfo {
* Get the appropriate color for a Class<?> based on its type.
*/
private int getColorForClass(Class<?> clazz) {
if(clazz.isPrimitive()) return TokenType.KEYWORD.getHexColor();
if (clazz.isInterface()) return TokenType.INTERFACE_DECL.getHexColor();
if (clazz.isEnum()) return TokenType.ENUM_DECL.getHexColor();
return TokenType.IMPORTED_CLASS.getHexColor();