vault_list_cell.fxml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  3. <?import javafx.geometry.Insets?>
  4. <?import javafx.scene.control.Label?>
  5. <?import javafx.scene.control.Tooltip?>
  6. <?import javafx.scene.layout.HBox?>
  7. <?import javafx.scene.layout.VBox?>
  8. <HBox xmlns:fx="http://javafx.com/fxml"
  9. xmlns="http://javafx.com/javafx"
  10. fx:controller="org.cryptomator.ui.mainwindow.VaultListCellController"
  11. prefHeight="60"
  12. prefWidth="200"
  13. spacing="12"
  14. alignment="CENTER_LEFT">
  15. <!-- Remark Check the containing list view for a fixed cell size before editing height properties -->
  16. <padding>
  17. <Insets topRightBottomLeft="12"/>
  18. </padding>
  19. <children>
  20. <VBox alignment="CENTER" minWidth="20">
  21. <FontAwesome5IconView fx:id="vaultStateView" glyph="${controller.glyph}" HBox.hgrow="NEVER" glyphSize="16"/>
  22. </VBox>
  23. <VBox spacing="4" HBox.hgrow="ALWAYS">
  24. <Label styleClass="header-label" text="${controller.vault.displayName}"/>
  25. <Label styleClass="detail-label" text="${controller.vault.displayablePath}" textOverrun="CENTER_ELLIPSIS">
  26. <tooltip>
  27. <Tooltip text="${controller.vault.displayablePath}"/>
  28. </tooltip>
  29. </Label>
  30. </VBox>
  31. </children>
  32. </HBox>