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 2fac7d6f679b..07eef48c58ec 100644 --- a/app/src/main/java/com/nextcloud/ui/fileactions/FileActionsBottomSheet.kt +++ b/app/src/main/java/com/nextcloud/ui/fileactions/FileActionsBottomSheet.kt @@ -35,6 +35,7 @@ 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 @@ -43,7 +44,6 @@ import androidx.lifecycle.ViewModelProvider import com.google.android.material.bottomsheet.BottomSheetBehavior import com.google.android.material.bottomsheet.BottomSheetDialog 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 @@ -159,7 +159,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) } } @@ -195,7 +199,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/drawable/ic_encrypted_folder.xml b/app/src/main/res/drawable/ic_encrypted_folder.xml new file mode 100644 index 000000000000..351565589c6a --- /dev/null +++ b/app/src/main/res/drawable/ic_encrypted_folder.xml @@ -0,0 +1,12 @@ + + + + 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/file_list_actions_bottom_sheet_fragment.xml b/app/src/main/res/layout/file_list_actions_bottom_sheet_fragment.xml index 6e8877d14511..e8fc3d1152b3 100644 --- a/app/src/main/res/layout/file_list_actions_bottom_sheet_fragment.xml +++ b/app/src/main/res/layout/file_list_actions_bottom_sheet_fragment.xml @@ -213,6 +213,37 @@ + + + + + + + diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 25a17c5cada1..f8963d7d0a2c 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -183,6 +183,7 @@ Neu erstellen Neues Dokument erstellen Neuen Ordner erstellen + Verschlüsselten Ordner erstellen Neue Präsentation erstellen Neue Tabelle erstellen Ordnerinfo hinzufügen diff --git a/app/src/main/res/values/dims.xml b/app/src/main/res/values/dims.xml index e22f8b455d61..aa10a5bd0ddf 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 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8af02a33a2e5..45bf4379b3a0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -743,6 +743,7 @@ Scan document from camera Upload content from other apps Create new folder + Create new encrypted folder Virus detected. Upload cannot be completed! Tags Adding sharee failed