aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/fragment_ssh_keygen.xml
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-05-10 14:25:59 +0530
committerGitHub <noreply@github.com>2020-05-10 14:25:59 +0530
commit94dc92f8d70870b57a7f8c4fe8adef152c1211ce (patch)
tree4139557d2cc1311daf807124cde16a17058143fb /app/src/main/res/layout/fragment_ssh_keygen.xml
parent9a77f6bbea95034f6dd6cdb2e0351a90dc3906f4 (diff)
downloadHardenedPass-94dc92f8d70870b57a7f8c4fe8adef152c1211ce.tar.gz
HardenedPass-94dc92f8d70870b57a7f8c4fe8adef152c1211ce.zip
Miscellaneous UI tweaking (#771)
* Remove dangling UI element and relayout authentication modes * Drop unnecessary actionBarPopupTheme declaration * Improve ssh keygen UI * Commonize button styling * Tweak save button in server config * Tweak generate button in ssh keygen * Commonize OutlinedButton style Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res/layout/fragment_ssh_keygen.xml')
-rw-r--r--app/src/main/res/layout/fragment_ssh_keygen.xml35
1 files changed, 9 insertions, 26 deletions
diff --git a/app/src/main/res/layout/fragment_ssh_keygen.xml b/app/src/main/res/layout/fragment_ssh_keygen.xml
index 90cf4df0..803debc4 100644
--- a/app/src/main/res/layout/fragment_ssh_keygen.xml
+++ b/app/src/main/res/layout/fragment_ssh_keygen.xml
@@ -25,32 +25,25 @@
app:selectionRequired="true"
app:singleSelection="true">
<com.google.android.material.button.MaterialButton
- style="?attr/materialButtonOutlinedStyle"
android:id="@+id/key_length_2048"
+ style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/key_length_2048"
- android:textColor="?android:attr/textColorPrimary"
- app:rippleColor="@color/ripple_color"
- app:strokeColor="?attr/colorSecondary"
- app:backgroundTint="@color/toggle_button_selector" />
+ android:text="@string/key_length_2048" />
<com.google.android.material.button.MaterialButton
- style="?attr/materialButtonOutlinedStyle"
android:id="@+id/key_length_4096"
+ style="?attr/materialButtonOutlinedStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/key_length_4096"
- android:textColor="?android:attr/textColorPrimary"
- app:rippleColor="@color/ripple_color"
- app:strokeColor="?attr/colorSecondary"
- app:backgroundTint="@color/toggle_button_selector" />
+ android:text="@string/key_length_4096" />
</com.google.android.material.button.MaterialButtonToggleGroup>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
- android:hint="@string/ssh_keygen_passphrase">
+ android:hint="@string/ssh_keygen_passphrase"
+ app:endIconMode="password_toggle">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/passphrase"
@@ -61,14 +54,6 @@
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
- <com.google.android.material.checkbox.MaterialCheckBox
- android:id="@+id/show_passphrase"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:checked="false"
- android:text="@string/ssh_keygen_show_passphrase" />
-
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -84,12 +69,10 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/generate"
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_gravity="end"
android:layout_marginTop="8dp"
- android:text="@string/ssh_keygen_generate"
- android:textColor="@android:color/white"
- app:backgroundTint="?attr/colorSecondary" />
-
+ android:text="@string/ssh_keygen_generate" />
</LinearLayout>
</ScrollView>