mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 10:11:27 +00:00
fixes #1077
This commit is contained in:
@@ -6,6 +6,7 @@ import javafx.fxml.FXML;
|
||||
import javafx.scene.input.DragEvent;
|
||||
import javafx.scene.input.TransferMode;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.cryptomator.common.vaults.VaultListManager;
|
||||
import org.cryptomator.ui.common.FxController;
|
||||
import org.cryptomator.ui.wrongfilealert.WrongFileAlertComponent;
|
||||
@@ -46,6 +47,9 @@ public class MainWindowController implements FxController {
|
||||
root.setOnDragOver(this::handleDragEvent);
|
||||
root.setOnDragDropped(this::handleDragEvent);
|
||||
root.setOnDragExited(this::handleDragEvent);
|
||||
if (SystemUtils.IS_OS_WINDOWS) {
|
||||
root.getStyleClass().add("os-windows");
|
||||
}
|
||||
}
|
||||
|
||||
private void handleDragEvent(DragEvent event) {
|
||||
|
||||
@@ -148,6 +148,12 @@
|
||||
* *
|
||||
******************************************************************************/
|
||||
|
||||
/* windows needs an explicit border: */
|
||||
.main-window.os-windows {
|
||||
-fx-border-color: TITLE_BG;
|
||||
-fx-border-width: 1px;
|
||||
}
|
||||
|
||||
.main-window .title {
|
||||
-fx-background-color: CONTROL_BORDER_NORMAL, TITLE_BG;
|
||||
-fx-background-insets: 0, 0 0 1px 0;
|
||||
|
||||
@@ -148,6 +148,12 @@
|
||||
* *
|
||||
******************************************************************************/
|
||||
|
||||
/* windows needs an explicit border: */
|
||||
.main-window.os-windows {
|
||||
-fx-border-color: TITLE_BG;
|
||||
-fx-border-width: 1px;
|
||||
}
|
||||
|
||||
.main-window .title {
|
||||
-fx-background-color: TITLE_BG;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user