2020import net .modtale .launcher .settings .LauncherConfig ;
2121import net .modtale .launcher .settings .LauncherSettings ;
2222import net .modtale .launcher .ui .common .LauncherView ;
23+ import net .modtale .launcher .ui .library .LibraryToggleBox ;
2324
2425public final class LauncherSettingsForm {
2526
@@ -34,10 +35,10 @@ public final class LauncherSettingsForm {
3435 private final ComboBox <HytaleVersion > hytaleVersionCombo = new ComboBox <>();
3536 private final ComboBox <String > launcherChannelCombo = new ComboBox <>();
3637 private final ComboBox <LocaleOption > localeCombo = new ComboBox <>();
37- private final CheckBox includeDependenciesCheck = new CheckBox ();
38- private final CheckBox includeOptionalCheck = new CheckBox ();
39- private final CheckBox autoUpdatesCheck = new CheckBox ();
40- private final CheckBox launcherAutoUpdatesCheck = new CheckBox ();
38+ private final CheckBox includeDependenciesCheck = new LibraryToggleBox ();
39+ private final CheckBox includeOptionalCheck = new LibraryToggleBox ();
40+ private final CheckBox autoUpdatesCheck = new LibraryToggleBox ();
41+ private final CheckBox launcherAutoUpdatesCheck = new LibraryToggleBox ();
4142
4243 public LauncherSettingsForm () {
4344 LauncherI18n i18n = LauncherI18n .get ();
@@ -63,10 +64,10 @@ public String fromString(String value) {
6364 playHytaleGamePathField , playHytaleUserDataPathField , playHytaleJavaPathField );
6465 launcherChannelCombo .setItems (FXCollections .observableArrayList ("stable" , "develop" ));
6566 styleCombo (localeCombo , hytaleBranchCombo , hytaleVersionCombo , launcherChannelCombo );
66- includeDependenciesCheck .getStyleClass ().add ( "native-check" );
67- includeOptionalCheck .getStyleClass ().add ( "native-check" );
68- autoUpdatesCheck .getStyleClass ().add ( "native-check" );
69- launcherAutoUpdatesCheck .getStyleClass ().add ( "native-check" );
67+ includeDependenciesCheck .accessibleTextProperty ().bind ( includeDependenciesCheck . textProperty () );
68+ includeOptionalCheck .accessibleTextProperty ().bind ( includeOptionalCheck . textProperty () );
69+ autoUpdatesCheck .accessibleTextProperty ().bind ( autoUpdatesCheck . textProperty () );
70+ launcherAutoUpdatesCheck .accessibleTextProperty ().bind ( launcherAutoUpdatesCheck . textProperty () );
7071 }
7172
7273 public TextField modsPathField () {
0 commit comments