Showing labels of EnterTanDialog now in bold so that user can easily recognize them

This commit is contained in:
dankito 2020-05-25 00:07:57 +02:00
parent 67eb42591f
commit fe47108fa0
2 changed files with 31 additions and 15 deletions

View File

@ -22,11 +22,12 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="@string/dialog_enter_tan_select_tan_procedure"
android:layout_marginRight="@dimen/dialog_enter_tan_tan_procedure_label_right_margin" android:layout_marginRight="@dimen/dialog_enter_tan_tan_procedure_label_right_margin"
android:layout_marginEnd="@dimen/dialog_enter_tan_tan_procedure_label_right_margin" android:layout_marginEnd="@dimen/dialog_enter_tan_tan_procedure_label_right_margin"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textStyle="bold"
android:textSize="@dimen/dialog_enter_tan_tan_procedure_text_size" android:textSize="@dimen/dialog_enter_tan_tan_procedure_text_size"
android:text="@string/dialog_enter_tan_select_tan_procedure"
/> />
<Spinner <Spinner
@ -51,11 +52,12 @@
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="@string/dialog_enter_tan_select_tan_medium"
android:layout_marginRight="@dimen/dialog_enter_tan_tan_medium_label_right_margin" android:layout_marginRight="@dimen/dialog_enter_tan_tan_medium_label_right_margin"
android:layout_marginEnd="@dimen/dialog_enter_tan_tan_medium_label_right_margin" android:layout_marginEnd="@dimen/dialog_enter_tan_tan_medium_label_right_margin"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textStyle="bold"
android:textSize="@dimen/dialog_enter_tan_tan_medium_text_size" android:textSize="@dimen/dialog_enter_tan_tan_medium_text_size"
android:text="@string/dialog_enter_tan_select_tan_medium"
/> />
<Spinner <Spinner
@ -119,6 +121,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textStyle="bold"
android:text="@string/dialog_enter_tan_enter_tan" android:text="@string/dialog_enter_tan_enter_tan"
/> />

View File

@ -4,6 +4,8 @@ import javafx.beans.property.SimpleObjectProperty
import javafx.beans.property.SimpleStringProperty import javafx.beans.property.SimpleStringProperty
import javafx.geometry.Insets import javafx.geometry.Insets
import javafx.geometry.Pos import javafx.geometry.Pos
import javafx.scene.text.Font
import javafx.scene.text.FontWeight
import net.dankito.banking.ui.javafx.dialogs.tan.controls.ChipTanFlickerCodeView import net.dankito.banking.ui.javafx.dialogs.tan.controls.ChipTanFlickerCodeView
import net.dankito.banking.ui.javafx.dialogs.JavaFxDialogService import net.dankito.banking.ui.javafx.dialogs.JavaFxDialogService
import net.dankito.banking.ui.javafx.dialogs.tan.controls.TanImageView import net.dankito.banking.ui.javafx.dialogs.tan.controls.TanImageView
@ -70,6 +72,10 @@ open class EnterTanDialog(
form { form {
fieldset { fieldset {
field(messages["enter.tan.dialog.select.tan.procedure"]) { field(messages["enter.tan.dialog.select.tan.procedure"]) {
label.apply {
font = Font.font(font.family, FontWeight.BLACK, font.size)
}
combobox(selectedTanProcedure, tanProceduresWithoutUnsupported) { combobox(selectedTanProcedure, tanProceduresWithoutUnsupported) {
cellFormat { cellFormat {
text = it.displayName text = it.displayName
@ -79,6 +85,10 @@ open class EnterTanDialog(
if (account.tanMediaSorted.isNotEmpty()) { if (account.tanMediaSorted.isNotEmpty()) {
field(messages["enter.tan.dialog.select.tan.medium"]) { field(messages["enter.tan.dialog.select.tan.medium"]) {
label.apply {
font = Font.font(font.family, FontWeight.BLACK, font.size)
}
combobox(selectedTanMedium, account.tanMediaSorted) { combobox(selectedTanMedium, account.tanMediaSorted) {
cellFormat { cellFormat {
text = it.displayName text = it.displayName
@ -128,6 +138,7 @@ open class EnterTanDialog(
} }
label(messages["enter.tan.dialog.hint.from.bank"]) { label(messages["enter.tan.dialog.hint.from.bank"]) {
font = Font.font(font.family, FontWeight.BLACK, font.size)
vboxConstraints { vboxConstraints {
marginTopBottom(6.0) marginTopBottom(6.0)
@ -150,7 +161,9 @@ open class EnterTanDialog(
hbox { hbox {
alignment = Pos.CENTER_LEFT alignment = Pos.CENTER_LEFT
label(messages["enter.tan.dialog.enter.tan.label"]) label(messages["enter.tan.dialog.enter.tan.label"]) {
font = Font.font(font.family, FontWeight.BLACK, font.size)
}
textfield(enteredTan) { textfield(enteredTan) {
prefHeight = 30.0 prefHeight = 30.0