Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
devkanro committed Oct 17, 2023
1 parent eb16f4b commit 99f169b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ interface FocusableComponentState : InteractiveComponentState {
pressed: T,
hovered: T,
active: T,
isSwingCompatMode: Boolean = IntelliJTheme.isSwingCompatMode,
): T =
when {
!isEnabled -> disabled
isPressed && !isSwingCompatMode -> pressed
isHovered && !isSwingCompatMode -> hovered
isPressed && !IntelliJTheme.isSwingCompatMode -> pressed
isHovered && !IntelliJTheme.isSwingCompatMode -> hovered
isFocused -> focused
isActive -> active
else -> normal
Expand Down

0 comments on commit 99f169b

Please sign in to comment.