main_window_title.fxml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
  2. <?import javafx.geometry.Insets?>
  3. <?import javafx.scene.control.Button?>
  4. <?import javafx.scene.control.Hyperlink?>
  5. <?import javafx.scene.control.Label?>
  6. <?import javafx.scene.control.Tooltip?>
  7. <?import javafx.scene.layout.HBox?>
  8. <?import javafx.scene.layout.Region?>
  9. <?import javafx.scene.layout.StackPane?>
  10. <?import javafx.scene.image.Image?>
  11. <?import javafx.scene.image.ImageView?>
  12. <HBox xmlns:fx="http://javafx.com/fxml"
  13. xmlns="http://javafx.com/javafx"
  14. fx:id="titleBar"
  15. fx:controller="org.cryptomator.ui.mainwindow.MainWindowTitleController"
  16. styleClass="title"
  17. alignment="CENTER"
  18. minHeight="50"
  19. maxHeight="50"
  20. spacing="6">
  21. <padding>
  22. <Insets bottom="6" left="12" right="12" top="6"/>
  23. </padding>
  24. <children>
  25. <ImageView HBox.hgrow="ALWAYS" fitHeight="14" preserveRatio="true" cache="true">
  26. <Image url="@../img/title-logo.png"/>
  27. </ImageView>
  28. <Region HBox.hgrow="ALWAYS"/>
  29. <Hyperlink onAction="#showGeneralPreferences" focusTraversable="false" visible="${controller.debugModeEnabled}" styleClass="badge-debug" text="DEBUG MODE" textFill="white">
  30. <tooltip>
  31. <Tooltip text="%main.debugModeEnabled.tooltip"/>
  32. </tooltip>
  33. </Hyperlink>
  34. <Region HBox.hgrow="ALWAYS"/>
  35. <Button contentDisplay="GRAPHIC_ONLY" mnemonicParsing="false" onAction="#showContributePreferences" focusTraversable="false" visible="${!controller.licenseHolder.validLicense}">
  36. <graphic>
  37. <StackPane>
  38. <FontAwesome5IconView glyph="EXCLAMATION_CIRCLE" glyphSize="16"/>
  39. <Region styleClass="update-indicator" StackPane.alignment="TOP_RIGHT" prefWidth="12" prefHeight="12" maxWidth="-Infinity" maxHeight="-Infinity"/>
  40. </StackPane>
  41. </graphic>
  42. <tooltip>
  43. <Tooltip text="%main.supporterCertificateMissing.tooltip"/>
  44. </tooltip>
  45. </Button>
  46. <Button contentDisplay="GRAPHIC_ONLY" mnemonicParsing="false" onAction="#showPreferences" focusTraversable="false">
  47. <graphic>
  48. <StackPane>
  49. <FontAwesome5IconView glyph="COGS" glyphSize="16"/>
  50. <Region styleClass="update-indicator" visible="${controller.updateAvailable}" StackPane.alignment="TOP_RIGHT" prefWidth="12" prefHeight="12" maxWidth="-Infinity" maxHeight="-Infinity"/>
  51. </StackPane>
  52. </graphic>
  53. <tooltip>
  54. <Tooltip text="%main.preferencesBtn.tooltip"/>
  55. </tooltip>
  56. </Button>
  57. <Button contentDisplay="GRAPHIC_ONLY" mnemonicParsing="false" onAction="#minimize" focusTraversable="false" visible="${controller.showMinimizeButton}" managed="${controller.showMinimizeButton}">
  58. <graphic>
  59. <FontAwesome5IconView glyph="WINDOW_MINIMIZE" glyphSize="12"/>
  60. </graphic>
  61. <tooltip>
  62. <Tooltip text="%main.minimizeBtn.tooltip"/>
  63. </tooltip>
  64. </Button>
  65. <Button contentDisplay="GRAPHIC_ONLY" mnemonicParsing="false" onAction="#close" focusTraversable="false">
  66. <graphic>
  67. <FontAwesome5IconView glyph="TIMES" glyphSize="16"/>
  68. </graphic>
  69. <tooltip>
  70. <Tooltip text="%main.closeBtn.tooltip"/>
  71. </tooltip>
  72. </Button>
  73. </children>
  74. </HBox>