Browse Source

TabbedPane no longer tries to end dragging when not appropriate.

pull/15/head
weisj 5 years ago
parent
commit
fffa2f18ae
  1. 4
      src/main/java/com/weis/darklaf/ui/tabbedpane/DarkHandler.java
  2. 1
      src/main/java/com/weis/darklaf/ui/tabbedpane/DarkScrollableTabSupport.java
  3. 1
      src/main/java/com/weis/darklaf/ui/tabbedpane/DarkScrollableTabViewport.java
  4. 1
      src/main/java/com/weis/darklaf/ui/tabbedpane/DarkTabbedPaneScrollLayout.java
  5. 4
      src/main/java/com/weis/darklaf/util/ColorUtil.java

4
src/main/java/com/weis/darklaf/ui/tabbedpane/DarkHandler.java

@ -243,7 +243,9 @@ public class DarkHandler extends TabbedPaneHandler {
@Override
public void mouseReleased(final MouseEvent e) {
super.mouseReleased(e);
stopDrag(e);
if (ui.dragging && ui.scrollableTabLayoutEnabled()) {
stopDrag(e);
}
}
@Override

1
src/main/java/com/weis/darklaf/ui/tabbedpane/DarkScrollableTabSupport.java

@ -25,7 +25,6 @@ package com.weis.darklaf.ui.tabbedpane;
import com.weis.darklaf.components.ScrollPopupMenu;
import com.weis.darklaf.decorators.PopupMenuAdapter;
import com.weis.darklaf.ui.tabbedpane.bridge.ScrollableTabSupport;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;

1
src/main/java/com/weis/darklaf/ui/tabbedpane/DarkScrollableTabViewport.java

@ -23,7 +23,6 @@
*/
package com.weis.darklaf.ui.tabbedpane;
import com.weis.darklaf.ui.tabbedpane.bridge.ScrollableTabViewport;
import org.jetbrains.annotations.NotNull;
import java.awt.*;

1
src/main/java/com/weis/darklaf/ui/tabbedpane/DarkTabbedPaneScrollLayout.java

@ -23,7 +23,6 @@
*/
package com.weis.darklaf.ui.tabbedpane;
import com.weis.darklaf.ui.tabbedpane.bridge.TabbedPaneScrollLayout;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;

4
src/main/java/com/weis/darklaf/util/ColorUtil.java

@ -88,4 +88,8 @@ public final class ColorUtil {
}
}
@NotNull
public static Color removeAlpha(final Color color) {
return toAlpha(color, 255);
}
}

Loading…
Cancel
Save