Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update font sizing to use sp (not pt) #132

Merged
merged 1 commit into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions fakewallet/src/main/res/layout/item_account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
android:layout_margin="8dp"
app:layout_constraintTop_toTopOf="@id/button_edit_name"
app:layout_constraintStart_toStartOf="parent"
android:textSize="10pt"
android:textSize="22sp"
android:text="@string/label_account_name" />

<androidx.appcompat.widget.AppCompatTextView
Expand All @@ -36,7 +36,7 @@
app:layout_constraintTop_toTopOf="@id/button_edit_name"
app:layout_constraintStart_toEndOf="@id/label_account_name"
app:layout_constraintEnd_toStartOf="@id/button_edit_name"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/button_edit_name"
Expand All @@ -62,7 +62,7 @@
app:layout_constraintTop_toBottomOf="@id/barrier1"
app:layout_constraintStart_toStartOf="parent"
android:text="@string/label_public_key"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/textview_public_key"
Expand All @@ -74,7 +74,7 @@
app:layout_constraintEnd_toEndOf="parent"
android:ellipsize="middle"
android:maxLines="1"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/label_derivation_path"
Expand All @@ -84,7 +84,7 @@
app:layout_constraintTop_toBottomOf="@id/textview_public_key"
app:layout_constraintStart_toStartOf="parent"
android:text="@string/label_derivation_path"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/textview_derivation_path"
Expand All @@ -94,7 +94,7 @@
app:layout_constraintTop_toBottomOf="@id/textview_public_key"
app:layout_constraintStart_toEndOf="@id/label_derivation_path"
app:layout_constraintEnd_toEndOf="parent"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/label_sign"
Expand All @@ -105,7 +105,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/button_sign_transaction"
app:layout_constraintBottom_toBottomOf="@id/button_sign_transaction"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/button_sign_transaction"
Expand All @@ -116,7 +116,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/label_sign"
android:text="@string/action_sign_transaction"
android:textSize="8pt" />
android:textSize="18sp" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/button_sign_message"
Expand All @@ -128,6 +128,6 @@
app:layout_constraintStart_toEndOf="@id/button_sign_transaction"
app:layout_constraintEnd_toEndOf="parent"
android:text="@string/action_sign_message"
android:textSize="8pt" />
android:textSize="18sp" />

</androidx.constraintlayout.widget.ConstraintLayout>
6 changes: 3 additions & 3 deletions fakewallet/src/main/res/layout/item_implementation_limit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
android:layout_margin="8dp"
app:layout_constraintTop_toTopOf="parent"
android:text="@string/label_implementation_limit"
android:textSize="12pt" />
android:textSize="26sp" />

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/textview_implementation_limit"
Expand All @@ -24,14 +24,14 @@
android:layout_margin="8dp"
android:paddingStart="8dp"
app:layout_constraintTop_toBottomOf="@id/label_implementation_limit"
android:textSize="12pt" />
android:textSize="26sp" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/button_exceed_implementation_limit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/textview_implementation_limit"
android:text="@string/action_exceed_implementation_limit"
android:textSize="8pt" />
android:textSize="18sp" />

</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/button_add"
android:textStyle="italic"
android:textSize="12pt" />
android:textSize="26sp" />

<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/button_add"
Expand Down
12 changes: 6 additions & 6 deletions fakewallet/src/main/res/layout/item_seed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/button_deauthorize_seed"
android:textSize="12pt"
android:textSize="26sp"
android:textStyle="bold" />

<androidx.appcompat.widget.AppCompatImageButton
Expand All @@ -43,7 +43,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/barrier1"
android:text="@string/label_seed_purpose"
android:textSize="10pt"/>
android:textSize="22sp"/>

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/textview_purpose"
Expand All @@ -53,7 +53,7 @@
app:layout_constraintTop_toBottomOf="@id/barrier1"
app:layout_constraintStart_toEndOf="@id/label_purpose"
app:layout_constraintEnd_toEndOf="parent"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier2"
Expand All @@ -68,23 +68,23 @@
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:layout_constraintTop_toBottomOf="@id/barrier2"
android:textSize="8pt" />
android:textSize="18sp" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/button_sign_max_transactions_with_max_signatures"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:layout_constraintTop_toBottomOf="@id/button_request_public_keys"
android:textSize="8pt" />
android:textSize="18sp" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/button_sign_max_messages_with_max_signatures"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:layout_constraintTop_toBottomOf="@id/button_sign_max_transactions_with_max_signatures"
android:textSize="8pt" />
android:textSize="18sp" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview_accounts"
Expand Down
14 changes: 7 additions & 7 deletions impl/src/main/res/layout/activity_seed_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
app:layout_constraintTop_toTopOf="parent"
android:hint="@string/hint_seed_name"
android:inputType="text"
android:textSize="10pt"
android:textSize="22sp"
android:maxLength="40"
android:autofillHints="" />

Expand All @@ -54,7 +54,7 @@
app:layout_constraintBottom_toBottomOf="@id/edittext_pin"
app:layout_constraintStart_toStartOf="parent"
android:text="@string/label_pin"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/edittext_pin"
Expand All @@ -67,7 +67,7 @@
app:layout_constraintStart_toEndOf="@id/label_pin"
android:hint="@string/hint_pin"
android:inputType="textVisiblePassword"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier_error"
Expand All @@ -85,7 +85,7 @@
android:visibility="gone"
android:text="@string/error_invalid_pin"
android:textColor="?attr/colorError"
android:textSize="10pt" />
android:textSize="22sp" />

<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/switch_enable_biometrics"
Expand All @@ -96,7 +96,7 @@
app:layout_constraintTop_toBottomOf="@id/label_error_invalid_pin"
app:layout_constraintStart_toStartOf="parent"
android:text="@string/label_enable_biometrics_for_seed"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/label_seed_phrase"
Expand All @@ -107,7 +107,7 @@
android:layout_marginTop="12dp"
app:layout_constraintTop_toBottomOf="@id/switch_enable_biometrics"
android:textStyle="bold"
android:textSize="12pt" />
android:textSize="26sp" />

<com.google.android.material.chip.ChipGroup
android:id="@+id/chipgroup_phrase_length"
Expand Down Expand Up @@ -161,7 +161,7 @@
android:visibility="gone"
android:text="@string/label_authorized_apps"
android:textStyle="bold"
android:textSize="12pt" />
android:textSize="26sp" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview_authorized_apps"
Expand Down
4 changes: 2 additions & 2 deletions impl/src/main/res/layout/item_authorized_app.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/imagebutton_deauthorize_app"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/label_purpose"
Expand All @@ -28,7 +28,7 @@
app:layout_constraintTop_toBottomOf="@id/label_app_name"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/imagebutton_deauthorize_app"
android:textSize="8pt" />
android:textSize="18sp" />

<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/imagebutton_deauthorize_app"
Expand Down
6 changes: 3 additions & 3 deletions impl/src/main/res/layout/item_seed_phrase_word.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
app:layout_constraintTop_toTopOf="@id/edittextautocomplete_seed_phrase_word"
app:layout_constraintBottom_toBottomOf="@id/edittextautocomplete_seed_phrase_word"
app:layout_constraintStart_toStartOf="parent"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.appcompat.widget.AppCompatAutoCompleteTextView
android:id="@+id/edittextautocomplete_seed_phrase_word"
Expand All @@ -28,7 +28,7 @@
app:layout_constraintStart_toEndOf="@id/label_seed_phrase_word_index"
app:layout_constraintEnd_toEndOf="parent"
android:inputType="text"
android:textSize="10pt" />
android:textSize="22sp" />

<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier_error"
Expand All @@ -46,6 +46,6 @@
android:visibility="gone"
android:text="@string/error_invalid_seed_word"
android:textColor="?attr/colorError"
android:textSize="10pt" />
android:textSize="22sp" />

</androidx.constraintlayout.widget.ConstraintLayout>
2 changes: 1 addition & 1 deletion impl/src/main/res/layout/item_seed_summary.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
app:layout_constraintEnd_toStartOf="@id/imagebutton_seed_delete"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:textSize="12pt"/>
android:textSize="26sp"/>

<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/imagebutton_seed_delete"
Expand Down