This commit is contained in:
Sebastian Stenzel
2020-03-25 10:10:03 +01:00
parent cb9a33eeb3
commit fc818b37fd
3 changed files with 16 additions and 0 deletions

View File

@@ -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) {

View File

@@ -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;

View File

@@ -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;
}