mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 06:50:56 +03:00
JIDE: JideTabbedPane: hover tab event if mouse is over close button
unfortunately it is not possible to replace JIDEs arrow and close buttons with own implementations
This commit is contained in:
@@ -213,7 +213,8 @@ public class FlatJideTabbedPaneUI
|
|||||||
{
|
{
|
||||||
// paint tab background
|
// paint tab background
|
||||||
boolean enabled = _tabPane.isEnabled();
|
boolean enabled = _tabPane.isEnabled();
|
||||||
g.setColor( enabled && _tabPane.isEnabledAt( tabIndex ) && _indexMouseOver == tabIndex
|
g.setColor( enabled && _tabPane.isEnabledAt( tabIndex ) &&
|
||||||
|
(_indexMouseOver == tabIndex || (_closeButtons != null && ((JideTabbedPane.NoFocusButton)_closeButtons[tabIndex]).isMouseOver()))
|
||||||
? hoverColor
|
? hoverColor
|
||||||
: (enabled && isSelected && _tabPane.hasFocus()
|
: (enabled && isSelected && _tabPane.hasFocus()
|
||||||
? focusColor
|
? focusColor
|
||||||
|
|||||||
Reference in New Issue
Block a user