Swing hit-tests a tree row only as far as its label, so a click past the end of the name did nothing. Rows are now found by their vertical band alone, which covers selection, the context menus, double-click join and middle-click info; the expand handle to the left of a label still works the row without selecting it. The hovered row is outlined across that same full width, so what a click would act on is visible before making it. Spacers, which nothing can be done with, are skipped, and the outline gives way to the drag-and-drop indicator while a drag is in progress. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
40 lines
1.7 KiB
Java
40 lines
1.7 KiB
Java
package com.ts3client.ui;
|
|
|
|
import java.awt.Color;
|
|
import java.awt.Font;
|
|
|
|
/** Central palette + fonts approximating the light TeamSpeak 3 look. */
|
|
public final class Theme {
|
|
|
|
public static final Color WINDOW_BG = new Color(0xF0F0F0);
|
|
public static final Color TREE_BG = new Color(0xFFFFFF);
|
|
public static final Color TREE_SELECTION = new Color(0xCFE3FB);
|
|
/** Outline drawn around the row the pointer is over. */
|
|
public static final Color TREE_HOVER = new Color(0x9CC4EE);
|
|
public static final Color TREE_TEXT = new Color(0x1E1E1E);
|
|
public static final Color CHANNEL_TEXT = new Color(0x21486B);
|
|
public static final Color SERVER_TEXT = new Color(0x123456);
|
|
|
|
public static final Color TALKING = new Color(0x33B35A);
|
|
public static final Color IDLE_CLIENT = new Color(0x6E7B87);
|
|
public static final Color AWAY = new Color(0xC98A1B);
|
|
public static final Color MUTED = new Color(0xC0392B);
|
|
|
|
public static final Color TOOLBAR_BG = new Color(0xE6E9ED);
|
|
public static final Color STATUS_BG = new Color(0xE6E9ED);
|
|
public static final Color ACCENT = new Color(0x2C7BE5);
|
|
|
|
public static final Color CHAT_BG = new Color(0xFAFAFA);
|
|
public static final Color CHAT_SYSTEM = new Color(0x8A8A8A);
|
|
public static final Color CHAT_NAME = new Color(0x2C7BE5);
|
|
public static final Color CHAT_TEXT = new Color(0x202020);
|
|
/** Links that leave the client, distinct from the colour used for identities. */
|
|
public static final Color LINK = new Color(0x1A5FB4);
|
|
|
|
public static final Font UI_FONT = new Font("SansSerif", Font.PLAIN, 12);
|
|
public static final Font UI_BOLD = new Font("SansSerif", Font.BOLD, 12);
|
|
|
|
private Theme() {
|
|
}
|
|
}
|