diff --git a/app/src/main/java/com/nextcloud/ui/fileactions/FileActionsBottomSheet.kt b/app/src/main/java/com/nextcloud/ui/fileactions/FileActionsBottomSheet.kt index 825d149e2bf1..d33536bc1011 100644 --- a/app/src/main/java/com/nextcloud/ui/fileactions/FileActionsBottomSheet.kt +++ b/app/src/main/java/com/nextcloud/ui/fileactions/FileActionsBottomSheet.kt @@ -35,13 +35,13 @@ import android.widget.Toast import androidx.annotation.IdRes import androidx.core.os.bundleOf import androidx.core.view.isEmpty +import androidx.core.content.res.ResourcesCompat import androidx.core.view.isVisible import androidx.fragment.app.FragmentManager import androidx.fragment.app.setFragmentResult import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.ViewModelProvider import com.google.android.material.bottomsheet.BottomSheetDialogFragment -import com.nextcloud.android.common.ui.theme.utils.ColorRole import com.nextcloud.client.account.CurrentAccountProvider import com.nextcloud.client.di.Injectable import com.nextcloud.client.di.ViewModelFactory @@ -153,7 +153,11 @@ class FileActionsBottomSheet : BottomSheetDialogFragment(), Injectable { private fun setMultipleFilesThumbnail() { context?.let { - val drawable = viewThemeUtils.platform.tintDrawable(it, R.drawable.file_multiple, ColorRole.PRIMARY) + //NMC Customization + val drawable = viewThemeUtils.platform.colorDrawable( + ResourcesCompat.getDrawable(it.resources, R.drawable.file_multiple, null)!!, + it.resources.getColor(R.color.primary, null) + ) binding.thumbnailLayout.thumbnail.setImageDrawable(drawable) } } @@ -189,7 +193,6 @@ class FileActionsBottomSheet : BottomSheetDialogFragment(), Injectable { if (state is FileActionsViewModel.UiState.Loading) { binding.bottomSheetLoading.isVisible = true binding.bottomSheetContent.isVisible = false - viewThemeUtils.platform.colorCircularProgressBar(binding.bottomSheetLoading, ColorRole.PRIMARY) } else { binding.bottomSheetLoading.isVisible = false binding.bottomSheetContent.isVisible = true diff --git a/app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragmentBottomSheetDialog.kt b/app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragmentBottomSheetDialog.kt index 1199018795ca..15309f41809f 100644 --- a/app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragmentBottomSheetDialog.kt +++ b/app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragmentBottomSheetDialog.kt @@ -59,16 +59,6 @@ class GalleryFragmentBottomSheetDialog( } fun setupLayout() { - listOf( - binding.tickMarkShowImages, - binding.tickMarkShowVideo, - binding.hideImagesImageview, - binding.hideVideoImageView, - binding.selectMediaFolderImageView - ).forEach { - viewThemeUtils.platform.colorImageView(it) - } - when (currentMediaState) { MediaState.MEDIA_STATE_PHOTOS_ONLY -> { binding.tickMarkShowImages.visibility = View.VISIBLE diff --git a/app/src/main/res/layout/file_list_actions_bottom_sheet_creator.xml b/app/src/main/res/layout/file_list_actions_bottom_sheet_creator.xml index 50aafa58aefa..0050ddfb0d19 100644 --- a/app/src/main/res/layout/file_list_actions_bottom_sheet_creator.xml +++ b/app/src/main/res/layout/file_list_actions_bottom_sheet_creator.xml @@ -22,12 +22,15 @@ @@ -36,8 +39,7 @@ android:id="@+id/creator_thumbnail" android:layout_width="24dp" android:layout_height="24dp" - android:layout_marginTop="@dimen/standard_margin" - android:layout_marginBottom="@dimen/standard_margin" + app:tint="@color/bottom_sheet_icon_color" android:contentDescription="@null" android:src="@drawable/file_ppt" /> @@ -46,8 +48,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginStart="@dimen/bottom_sheet_text_start_margin" + android:layout_marginStart="@dimen/standard_margin" android:text="@string/create_new_presentation" - android:textColor="@color/text_color" + android:textColor="@color/bottom_sheet_txt_color" android:textSize="@dimen/bottom_sheet_text_size" /> diff --git a/app/src/main/res/layout/quick_sharing_permissions_bottom_sheet_fragment.xml b/app/src/main/res/layout/quick_sharing_permissions_bottom_sheet_fragment.xml index 617d0fb79b5e..0ea5d8b22724 100644 --- a/app/src/main/res/layout/quick_sharing_permissions_bottom_sheet_fragment.xml +++ b/app/src/main/res/layout/quick_sharing_permissions_bottom_sheet_fragment.xml @@ -22,6 +22,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="@color/bottom_sheet_bg_color" android:paddingTop="@dimen/standard_padding" android:paddingBottom="@dimen/standard_padding" android:orientation="vertical"> diff --git a/app/src/main/res/values/dims.xml b/app/src/main/res/values/dims.xml index 4dab9b38601f..d258a893bfe7 100644 --- a/app/src/main/res/values/dims.xml +++ b/app/src/main/res/values/dims.xml @@ -21,7 +21,7 @@ 12sp 20dp 16dp - 56dp + 48dp 80dp 112dp 40dp