diff options
| author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-05-10 14:25:59 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-10 14:25:59 +0530 |
| commit | 94dc92f8d70870b57a7f8c4fe8adef152c1211ce (patch) | |
| tree | 4139557d2cc1311daf807124cde16a17058143fb /app/src/main/res/layout/activity_git_clone.xml | |
| parent | 9a77f6bbea95034f6dd6cdb2e0351a90dc3906f4 (diff) | |
| download | HardenedPass-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/activity_git_clone.xml')
| -rw-r--r-- | app/src/main/res/layout/activity_git_clone.xml | 38 |
1 files changed, 11 insertions, 27 deletions
diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml index e5d41059..d4113cd6 100644 --- a/app/src/main/res/layout/activity_git_clone.xml +++ b/app/src/main/res/layout/activity_git_clone.xml @@ -33,15 +33,6 @@ app:layout_constraintTop_toBottomOf="@id/server_label" app:layout_constraintStart_toStartOf="parent" /> - <Spinner - android:id="@+id/clone_protocol" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_margin="8dp" - android:visibility="gone" - app:layout_constraintTop_toBottomOf="@id/server_label" - app:layout_constraintStart_toEndOf="@id/label_server_protocol" /> - <com.google.android.material.button.MaterialButtonToggleGroup style="@style/TextAppearance.MaterialComponents.Headline1" android:id="@+id/clone_protocol_group" @@ -54,26 +45,18 @@ app:singleSelection="true"> <com.google.android.material.button.MaterialButton - style="?attr/materialButtonOutlinedStyle" android:id="@+id/clone_protocol_ssh" + style="?attr/materialButtonOutlinedStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/clone_protocol_ssh" - android:textColor="?android:attr/textColorPrimary" - app:rippleColor="@color/ripple_color" - app:strokeColor="?attr/colorSecondary" - app:backgroundTint="@color/toggle_button_selector" /> + android:text="@string/clone_protocol_ssh" /> <com.google.android.material.button.MaterialButton - style="?attr/materialButtonOutlinedStyle" android:id="@+id/clone_protocol_https" + style="?attr/materialButtonOutlinedStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/clone_protocol_https" - android:textColor="?android:attr/textColorPrimary" - app:rippleColor="@color/ripple_color" - app:strokeColor="?attr/colorSecondary" - app:backgroundTint="@color/toggle_button_selector" /> + android:text="@string/clone_protocol_https" /> </com.google.android.material.button.MaterialButtonToggleGroup> <com.google.android.material.textfield.TextInputLayout @@ -160,7 +143,7 @@ android:id="@+id/connection_mode_group" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:orientation="vertical" + android:orientation="horizontal" app:layout_constraintTop_toBottomOf="@id/label_connection_mode" app:layout_constraintStart_toStartOf="parent"> @@ -168,38 +151,39 @@ android:id="@+id/connection_mode_ssh_key" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:padding="4dp" android:text="@string/connection_mode_ssh_key" /> <RadioButton android:id="@+id/connection_mode_password" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:padding="4dp" android:text="@string/connection_mode_basic_authentication" /> <RadioButton android:id="@+id/connection_mode_open_keychain" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:padding="4dp" android:text="@string/connection_mode_openkeychain" /> <RadioButton android:id="@+id/connection_mode_none" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:padding="4dp" android:text="@string/connection_mode_none" /> </RadioGroup> <com.google.android.material.button.MaterialButton - style="@style/Widget.MaterialComponents.Button" android:id="@+id/save_button" android:text="@string/crypto_save" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textColor="?android:attr/windowBackground" android:layout_marginTop="8dp" - app:backgroundTint="?attr/colorSecondary" app:layout_constraintTop_toBottomOf="@id/connection_mode_group" - app:layout_constraintStart_toStartOf="parent" /> + app:layout_constraintEnd_toEndOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout> </ScrollView> |
