Refactor CheckListCell to display ellipsis rather than allow horizontal scrolling

This commit is contained in:
Armin Schrenk
2021-07-15 12:48:39 +02:00
parent 8d9c33f7df
commit 3f76a04b38
6 changed files with 162 additions and 50 deletions
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import org.cryptomator.ui.health.CheckStateIconView?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Label?>
<HBox xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="org.cryptomator.ui.health.CheckListCellController"
prefHeight="30.0" prefWidth="150.0"
alignment="CENTER_LEFT" spacing="6">
<padding>
<Insets topRightBottomLeft="6"/>
</padding>
<StackPane minWidth="20" minHeight="20" alignment="CENTER">
<CheckBox fx:id="forRunSelectedCheckBox" visible="${controller.checkRunnable}" />
<CheckStateIconView check="${controller.check}" glyphSize="20" visible="${!controller.checkRunnable}"/>
</StackPane>
<Label text="${controller.checkName}"/>
</HBox>