mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-09 16:24:53 +00:00
drag over highlight
This commit is contained in:
@@ -32,6 +32,7 @@ import java.util.ResourceBundle;
|
||||
|
||||
public class AppController implements Initializable {
|
||||
private static final String TRANSACTION_TAB_TYPE = "transaction";
|
||||
public static final String DRAG_OVER_CLASS = "drag-over";
|
||||
|
||||
@FXML
|
||||
private CheckMenuItem showTxHex;
|
||||
@@ -70,6 +71,14 @@ public class AppController implements Initializable {
|
||||
event.consume();
|
||||
});
|
||||
|
||||
rootStack.setOnDragEntered(event -> {
|
||||
rootStack.getStyleClass().add(DRAG_OVER_CLASS);
|
||||
});
|
||||
|
||||
rootStack.setOnDragExited(event -> {
|
||||
rootStack.getStyleClass().removeAll(DRAG_OVER_CLASS);
|
||||
});
|
||||
|
||||
tabs.getSelectionModel().selectedItemProperty().addListener((observable, old_val, selectedTab) -> {
|
||||
if(selectedTab != null) {
|
||||
String tabType = (String)selectedTab.getUserData();
|
||||
|
||||
Reference in New Issue
Block a user