Polish m3 for account chooser and rename background

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-09-12 12:48:18 +02:00 committed by Álvaro Brey
parent 90f060e944
commit d1621d74d1
No known key found for this signature in database
GPG key ID: 2585783189A62105
3 changed files with 13 additions and 4 deletions

View file

@ -50,6 +50,7 @@ import com.owncloud.android.utils.DisplayUtils
import com.owncloud.android.utils.DisplayUtils.AvatarGenerationListener
import com.owncloud.android.utils.theme.ThemeColorUtils
import com.owncloud.android.utils.theme.ThemeDrawableUtils
import com.owncloud.android.utils.theme.newm3.ViewThemeUtils
import javax.inject.Inject
private const val ARG_CURRENT_USER_PARAM = "currentUser"
@ -72,6 +73,9 @@ class ChooseAccountDialogFragment :
@Inject
lateinit var clientFactory: ClientFactory
@Inject
lateinit var viewThemeUtils: ViewThemeUtils
@Inject
lateinit var themeColorUtils: ThemeColorUtils
@ -90,9 +94,12 @@ class ChooseAccountDialogFragment :
_binding = DialogChooseAccountBinding.inflate(layoutInflater)
dialogView = binding.root
return MaterialAlertDialogBuilder(requireContext())
val builder = MaterialAlertDialogBuilder(requireContext())
.setView(binding.root)
.create()
viewThemeUtils.dialog.colorMaterialAlertDialogBackground(binding.statusView.context, builder)
return builder.create()
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {

View file

@ -180,10 +180,11 @@ public class RenameFileDialogFragment
.setPositiveButton(R.string.file_rename, this)
.setNeutralButton(R.string.common_cancel, this)
.setTitle(R.string.rename_dialog_title);
Dialog d = builder.create();
viewThemeUtils.dialog.colorMaterialAlertDialogBackground(binding.userInputContainer.getContext(), builder);
Dialog d = builder.create();
Window window = d.getWindow();
if (window != null) {
window.setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_VISIBLE);

View file

@ -27,7 +27,8 @@
android:layout_margin="@dimen/standard_quarter_margin"
android:orientation="horizontal"
app:cardBackgroundColor="@color/transparent"
app:cardElevation="0dp">
app:cardElevation="0dp"
app:strokeWidth="@dimen/zero">
<RelativeLayout
android:layout_width="match_parent"