diff options
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_git_config.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_ssh_keygen.xml | 33 |
2 files changed, 29 insertions, 6 deletions
diff --git a/app/src/main/res/layout/activity_git_config.xml b/app/src/main/res/layout/activity_git_config.xml index 94c09e27..0ea45c55 100644 --- a/app/src/main/res/layout/activity_git_config.xml +++ b/app/src/main/res/layout/activity_git_config.xml @@ -23,7 +23,7 @@ android:id="@+id/git_user_name" android:layout_width="match_parent" android:layout_height="wrap_content" - android:inputType="textNoSuggestions|textVisiblePassword" /> + android:inputType="textPersonName" /> </com.google.android.material.textfield.TextInputLayout> diff --git a/app/src/main/res/layout/fragment_ssh_keygen.xml b/app/src/main/res/layout/fragment_ssh_keygen.xml index 16c3f512..90cf4df0 100644 --- a/app/src/main/res/layout/fragment_ssh_keygen.xml +++ b/app/src/main/res/layout/fragment_ssh_keygen.xml @@ -17,11 +17,34 @@ android:gravity="center_vertical" android:text="@string/ssh_keygen_length" /> - <Spinner - android:id="@+id/length" - android:layout_width="fill_parent" + <com.google.android.material.button.MaterialButtonToggleGroup + style="@style/TextAppearance.MaterialComponents.Headline1" + android:id="@+id/key_length_group" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:spinnerMode="dropdown" /> + app:selectionRequired="true" + app:singleSelection="true"> + <com.google.android.material.button.MaterialButton + style="?attr/materialButtonOutlinedStyle" + android:id="@+id/key_length_2048" + 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" /> + <com.google.android.material.button.MaterialButton + style="?attr/materialButtonOutlinedStyle" + android:id="@+id/key_length_4096" + 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" /> + </com.google.android.material.button.MaterialButtonToggleGroup> <com.google.android.material.textfield.TextInputLayout android:layout_width="match_parent" @@ -38,7 +61,7 @@ android:inputType="textPassword" /> </com.google.android.material.textfield.TextInputLayout> - <CheckBox + <com.google.android.material.checkbox.MaterialCheckBox android:id="@+id/show_passphrase" android:layout_width="wrap_content" android:layout_height="wrap_content" |