mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 07:05:49 +03:00
Polish m3 for account chooser and rename background
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
90f060e944
commit
d1621d74d1
3 changed files with 13 additions and 4 deletions
|
@ -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?) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue