mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-15 07:52:58 -05:00
fix overlapping error message and floating label
This commit is contained in:
parent
540ce08a4f
commit
62912c353c
4 changed files with 11 additions and 8 deletions
|
|
@ -258,7 +258,7 @@
|
|||
.jfx-combo-box.label-float:focused .prompt-container,
|
||||
.jfx-password-field.filled.label-float .prompt-container,
|
||||
.jfx-password-field.label-float:focused .prompt-container {
|
||||
-fx-translate-y: -6.5px;
|
||||
-fx-translate-y: -5.5px;
|
||||
}
|
||||
|
||||
.jfx-combo-box, .jfx-text-field, .jfx-text-area {
|
||||
|
|
@ -2560,6 +2560,8 @@ textfield */
|
|||
.input-with-border {
|
||||
-fx-border-width: 1;
|
||||
-fx-border-color: -bs-color-border-form-field;
|
||||
-fx-border-insets: 1 0 1 0;
|
||||
-fx-background-insets: 1 0 1 0;
|
||||
}
|
||||
|
||||
.table-view.non-interactive-table .column-header .label {
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ import org.apache.commons.lang3.StringUtils;
|
|||
@FxmlView
|
||||
public class PreferencesView extends ActivatableViewAndModel<GridPane, PreferencesViewModel> {
|
||||
private final User user;
|
||||
private TextField btcExplorerTextField;
|
||||
private TextField xmrExplorerTextField;
|
||||
private ComboBox<String> userLanguageComboBox;
|
||||
private ComboBox<Country> userCountryComboBox;
|
||||
private ComboBox<TradeCurrency> preferredTradeCurrencyComboBox;
|
||||
|
|
@ -220,9 +220,9 @@ public class PreferencesView extends ActivatableViewAndModel<GridPane, Preferenc
|
|||
userCountryComboBox.setButtonCell(GUIUtil.getComboBoxButtonCell(Res.get("shared.country"), userCountryComboBox,
|
||||
false));
|
||||
|
||||
Tuple2<TextField, Button> btcExp = addTextFieldWithEditButton(root, ++gridRow, Res.get("setting.preferences.explorer"));
|
||||
btcExplorerTextField = btcExp.first;
|
||||
editCustomBtcExplorer = btcExp.second;
|
||||
Tuple2<TextField, Button> xmrExp = addTextFieldWithEditButton(root, ++gridRow, Res.get("setting.preferences.explorer"));
|
||||
xmrExplorerTextField = xmrExp.first;
|
||||
editCustomBtcExplorer = xmrExp.second;
|
||||
|
||||
// deviation
|
||||
deviationInputTextField = addInputTextField(root, ++gridRow,
|
||||
|
|
@ -688,7 +688,7 @@ public class PreferencesView extends ActivatableViewAndModel<GridPane, Preferenc
|
|||
}
|
||||
});
|
||||
|
||||
btcExplorerTextField.setText(preferences.getBlockChainExplorer().name);
|
||||
xmrExplorerTextField.setText(preferences.getBlockChainExplorer().name);
|
||||
|
||||
deviationInputTextField.setText(FormattingUtils.formatToPercentWithSymbol(preferences.getMaxPriceDistanceInPercent()));
|
||||
deviationInputTextField.textProperty().addListener(deviationListener);
|
||||
|
|
@ -779,7 +779,7 @@ public class PreferencesView extends ActivatableViewAndModel<GridPane, Preferenc
|
|||
.actionButtonText(Res.get("shared.save"))
|
||||
.onAction(() -> {
|
||||
preferences.setBlockChainExplorer(urlWindow.getEditedBlockChainExplorer());
|
||||
btcExplorerTextField.setText(preferences.getBlockChainExplorer().name);
|
||||
xmrExplorerTextField.setText(preferences.getBlockChainExplorer().name);
|
||||
})
|
||||
.closeButtonText(Res.get("shared.cancel"))
|
||||
.onClose(urlWindow::hide)
|
||||
|
|
|
|||
|
|
@ -387,6 +387,7 @@ public class FormBuilder {
|
|||
hbox.setSpacing(8);
|
||||
|
||||
VBox vbox = getTopLabelVBox(0);
|
||||
vbox.setSpacing(2);
|
||||
vbox.getChildren().addAll(getTopLabel(title), hbox);
|
||||
|
||||
gridPane.getChildren().add(vbox);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public class Layout {
|
|||
public static final double FIRST_ROW_DISTANCE = 20d;
|
||||
public static final double COMPACT_FIRST_ROW_DISTANCE = 10d;
|
||||
public static final double TWICE_FIRST_ROW_DISTANCE = 20d * 2;
|
||||
public static final double FLOATING_LABEL_DISTANCE = 18d;
|
||||
public static final double FLOATING_LABEL_DISTANCE = 23d;
|
||||
public static final double GROUP_DISTANCE = 40d;
|
||||
public static final double COMPACT_GROUP_DISTANCE = 30d;
|
||||
public static final double GROUP_DISTANCE_WITHOUT_SEPARATOR = 20d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue