* Hide button when not hovering or vault is locked

* localize
This commit is contained in:
Armin Schrenk
2025-02-27 17:25:31 +01:00
parent b76a7d6895
commit 8386183f7a
3 changed files with 55 additions and 22 deletions
+4 -5
View File
@@ -14,7 +14,8 @@
prefHeight="60"
prefWidth="200"
spacing="12"
alignment="CENTER_LEFT">
alignment="CENTER_LEFT"
fx:id="root">
<padding>
<Insets topRightBottomLeft="12"/>
</padding>
@@ -26,15 +27,13 @@
<Label styleClass="header-label" text="${controller.message}"/>
<Label styleClass="detail-label" text="${controller.description}" textOverrun="CENTER_ELLIPSIS" />
</VBox>
<Button fx:id="eventActionsButton" contentDisplay="GRAPHIC_ONLY" onAction="#toggleEventActionsMenu">
<Button fx:id="eventActionsButton" contentDisplay="GRAPHIC_ONLY" onAction="#toggleEventActionsMenu" managed="${controller.actionsButtonVisible}" visible="${controller.actionsButtonVisible}">
<graphic>
<FontAwesome5IconView glyph="ELLIPSIS_V" glyphSize="16"/>
</graphic>
</Button>
<fx:define>
<ContextMenu fx:id="eventActions">
<!-- entries are added in the controller -->
</ContextMenu>
<ContextMenu fx:id="eventActionsMenu"/>
</fx:define>
</HBox>
+7 -1
View File
@@ -2,8 +2,14 @@
additionalStyleSheets=
#Test
event.vaultLocked.message=***********
event.vaultLocked.description=Unlock the vault to display details
event.conflictResolved.description=Resolved conflict
event.conflictResolved.showDecrypted=Show decrypted file
event.conflictFailed.showEncrypted=Show encrypted file
event.conflict.description=Cannot resolve conflict.
event.conflict.showDecrypted=Show decrypted, original file
event.conflict.showEncrypted=Show conflicting, encrypted file
event.decryptionFailed.description=Decryption failed.
event.decryptionFailed.showEncrypted=Show encrypted file
# Generics