mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-20 06:54:16 +00:00
Added drop zone for revealing encrypted files or folders (#2592)
* Added drop zone for revealing encrypted files or folders * Split god drop zone into distinct drop zones in vault list and vault detail unlocked * Prevent cursor from changing if content doesn't match during drag over [ci skip] * Removed unused methods / css classes [ci skip] * Updated method name * Refactor Vault::getCiphertextPath to only accept strings starting with "/" * bump cryptofs * ensure that path cleartext path always starts with "/" * added file chooser for revealing encrypted items * Trying to fix path parsing again * Updated drag & drop design for buttons * use RevealPathService to reveal files in file manager * fix compilation error * Copy paths to clipboard if no revealService is present * reintegrate wongFileAlert * Only accept TrasnferMode.LINK * updated drag-n-drop button styling * added tooltip * updated string * cleanup Co-authored-by: Armin Schrenk <armin.schrenk@skymatic.de>
This commit is contained in:
co-authored by
Armin Schrenk
parent
b8326907bf
commit
d6388d6205
@@ -203,16 +203,6 @@
|
||||
-fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.8), 2, 0, 0, 0);
|
||||
}
|
||||
|
||||
.main-window .drag-n-drop-indicator {
|
||||
-fx-border-color: SECONDARY;
|
||||
-fx-border-width: 3px;
|
||||
}
|
||||
|
||||
.main-window .drag-n-drop-indicator .drag-n-drop-header {
|
||||
-fx-background-color: SECONDARY;
|
||||
-fx-padding: 3px;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* *
|
||||
* TabPane *
|
||||
@@ -883,3 +873,40 @@
|
||||
-fx-fill: linear-gradient(to bottom, PRIMARY, transparent);
|
||||
-fx-stroke: transparent;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* *
|
||||
* Drag and Drop *
|
||||
* *
|
||||
******************************************************************************/
|
||||
|
||||
.drag-n-drop-border {
|
||||
-fx-border-color: SECONDARY;
|
||||
-fx-border-width: 3px;
|
||||
}
|
||||
|
||||
.button.drag-n-drop {
|
||||
-fx-background-color: CONTROL_BG_NORMAL;
|
||||
-fx-background-insets: 0;
|
||||
-fx-padding: 1.4em 1em 1.4em 1em;
|
||||
-fx-text-fill: TEXT_FILL_MUTED;
|
||||
-fx-font-size: 0.8em;
|
||||
-fx-border-color: CONTROL_BORDER_NORMAL;
|
||||
-fx-border-radius: 4px;
|
||||
-fx-border-style: dashed inside;
|
||||
-fx-border-width: 1px;
|
||||
}
|
||||
|
||||
.button.drag-n-drop:focused {
|
||||
-fx-border-color: CONTROL_BORDER_FOCUSED;
|
||||
}
|
||||
|
||||
.button.drag-n-drop:armed {
|
||||
-fx-background-color: CONTROL_BG_ARMED;
|
||||
}
|
||||
|
||||
.button.drag-n-drop.active {
|
||||
-fx-border-color: SECONDARY;
|
||||
-fx-border-style: solid inside;
|
||||
-fx-border-width: 1px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user