@Override public void paintControl(PaintEvent e) { if (textLabel instanceof Label && !isFixedStyle()) textLabel.setForeground(toggle.hover ? toggle .getHoverDecorationColor() : getTitleBarForeground()); } });
if (toggle != null) { label.setForeground(toggle .getHoverDecorationColor()); toggle.hover = true; toggle.redraw();
if (textLabel instanceof Label && !isFixedStyle()) if (toggle.hover) { textLabel.setForeground(toggle.getHoverDecorationColor()); } else { textLabel.setForeground(getTitleBarForeground()); case SWT.MouseEnter: if (toggle != null) { label.setForeground(toggle.getHoverDecorationColor()); toggle.hover = true; toggle.redraw();