preferences_network.fxml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.geometry.Insets?>
  3. <?import javafx.scene.layout.VBox?>
  4. <?import javafx.scene.control.Label?>
  5. <?import javafx.scene.control.RadioButton?>
  6. <?import javafx.scene.layout.HBox?>
  7. <?import javafx.scene.control.TextField?>
  8. <?import javafx.scene.control.CheckBox?>
  9. <?import javafx.scene.control.ToggleGroup?>
  10. <?import org.cryptomator.ui.controls.NumericTextField?>
  11. <VBox xmlns:fx="http://javafx.com/fxml"
  12. xmlns="http://javafx.com/javafx"
  13. fx:controller="org.cryptomator.ui.preferences.NetworkPreferencesController"
  14. spacing="24">
  15. <fx:define>
  16. <ToggleGroup fx:id="proxyToggleGroup"/>
  17. </fx:define>
  18. <padding>
  19. <Insets topRightBottomLeft="24"/>
  20. </padding>
  21. <VBox>
  22. <Label text="Configure Proxy Access to the Internet"/>
  23. <RadioButton fx:id="noProxyBtn" text="No Proxy" toggleGroup="${proxyToggleGroup}" />
  24. <RadioButton fx:id="systemSettingsBtn" text="Use system proxy settings" toggleGroup="${proxyToggleGroup}" />
  25. <RadioButton fx:id="manualProxyBtn" text="Manual proxy configuration" toggleGroup="${proxyToggleGroup}" />
  26. <VBox fx:id="manualProxyBox">
  27. <padding>
  28. <Insets left="24"/>
  29. </padding>
  30. <HBox spacing="12" alignment="CENTER_LEFT">
  31. <Label text="HTTP Proxy" minWidth="90" />
  32. <TextField fx:id="httpProxy" HBox.hgrow="ALWAYS" />
  33. <Label text="Port"/>
  34. <NumericTextField fx:id="httpProxyPort" prefWidth="60" promptText="0" />
  35. </HBox>
  36. <CheckBox text="Also use this proxy for HTTPS"/>
  37. <HBox spacing="12" alignment="CENTER_LEFT">
  38. <Label text="HTTPS Proxy" minWidth="90"/>
  39. <TextField fx:id="httpsProxy" HBox.hgrow="ALWAYS" />
  40. <Label text="Port"/>
  41. <NumericTextField fx:id="httpsProxyPort" prefWidth="60" promptText="0"/>
  42. </HBox>
  43. </VBox>
  44. </VBox>
  45. </VBox>