From 9601f149351257569dbf9b7925d8192d15883b6b Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Sun, 8 Feb 2026 11:43:40 +0100 Subject: [PATCH 1/2] style: theme OK button for storage chooser Signed-off-by: Andy Scherzinger --- .../ui/ChooseStorageLocationDialogFragment.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/src/main/java/com/nextcloud/ui/ChooseStorageLocationDialogFragment.kt b/app/src/main/java/com/nextcloud/ui/ChooseStorageLocationDialogFragment.kt index 5b95203c6900..6a67415c0168 100644 --- a/app/src/main/java/com/nextcloud/ui/ChooseStorageLocationDialogFragment.kt +++ b/app/src/main/java/com/nextcloud/ui/ChooseStorageLocationDialogFragment.kt @@ -14,7 +14,9 @@ import android.preference.PreferenceManager import android.view.LayoutInflater import android.view.View import android.view.ViewGroup +import androidx.appcompat.app.AlertDialog import androidx.fragment.app.DialogFragment +import com.google.android.material.button.MaterialButton import com.google.android.material.dialog.MaterialAlertDialogBuilder import com.nextcloud.client.di.Injectable import com.nextcloud.client.preferences.AppPreferencesImpl @@ -47,6 +49,16 @@ class ChooseStorageLocationDialogFragment : private val selectedPrivacyType get() = if (binding.allowMediaIndexSwitch.isChecked) PrivacyType.PUBLIC else PrivacyType.PRIVATE + override fun onStart() { + super.onStart() + val alertDialog = dialog as AlertDialog + + val positiveButton = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE) as? MaterialButton + positiveButton?.let { + viewThemeUtils.material.colorMaterialButtonPrimaryTonal(positiveButton) + } + } + override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { binding = DialogDataStorageLocationBinding.inflate(layoutInflater) From 504dbf1334fb16201654fa47026e79744beeed1b Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Sun, 8 Feb 2026 11:45:08 +0100 Subject: [PATCH 2/2] docs: Add screenshot block Signed-off-by: Andy Scherzinger --- .github/pull_request_template.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3e4388b6488d..7e0d414786ac 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -8,4 +8,10 @@ Unit tests: https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#uni Instrumented tests: https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#instrumented-tests UI tests: https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#ui-tests --> +### 🖼️ Screenshots + +🏚️ Before | 🏡 After +---|--- +B | A + - [ ] Tests written, or not not needed