diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt index 36b1089be..b968b0f9b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickDirectoryDialog.kt @@ -33,6 +33,8 @@ class PickDirectoryDialog( spanCount = if (isGridViewType) activity.config.dirColumnCnt else 1 } + view.directories_fastscroller.updateColors(activity.getAdjustedPrimaryColor()) + val builder = AlertDialog.Builder(activity) .setPositiveButton(R.string.ok, null) .setNegativeButton(R.string.cancel, null) @@ -124,27 +126,9 @@ class PickDirectoryDialog( } val scrollHorizontally = activity.config.scrollHorizontally && isGridViewType - val sorting = activity.config.directorySorting - val dateFormat = activity.config.dateFormat - val timeFormat = activity.getTimeFormat() view.apply { directories_grid.adapter = adapter - - /*directories_vertical_fastscroller.isHorizontal = false - directories_vertical_fastscroller.beGoneIf(scrollHorizontally) - - directories_horizontal_fastscroller.isHorizontal = true - directories_horizontal_fastscroller.beVisibleIf(scrollHorizontally) - - if (scrollHorizontally) { - directories_horizontal_fastscroller.setViews(directories_grid) { - directories_horizontal_fastscroller.updateBubbleText(dirs[it].getBubbleText(sorting, activity, dateFormat, timeFormat)) - } - } else { - directories_vertical_fastscroller.setViews(directories_grid) { - directories_vertical_fastscroller.updateBubbleText(dirs[it].getBubbleText(sorting, activity, dateFormat, timeFormat)) - } - }*/ + directories_fastscroller.setScrollVertically(!scrollHorizontally) } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickMediumDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickMediumDialog.kt index 9d16dd0fc..b32912b10 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickMediumDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickMediumDialog.kt @@ -3,7 +3,7 @@ package com.simplemobiletools.gallery.pro.dialogs import androidx.appcompat.app.AlertDialog import androidx.recyclerview.widget.RecyclerView import com.simplemobiletools.commons.activities.BaseSimpleActivity -import com.simplemobiletools.commons.extensions.getTimeFormat +import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor import com.simplemobiletools.commons.extensions.setupDialogStuff import com.simplemobiletools.commons.helpers.VIEW_TYPE_GRID import com.simplemobiletools.commons.views.MyGridLayoutManager @@ -30,6 +30,8 @@ class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val c spanCount = if (isGridViewType) activity.config.mediaColumnCnt else 1 } + view.media_fastscroller.updateColors(activity.getAdjustedPrimaryColor()) + dialog = AlertDialog.Builder(activity) .setPositiveButton(R.string.ok, null) .setNegativeButton(R.string.cancel, null) @@ -72,29 +74,9 @@ class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val c } val scrollHorizontally = activity.config.scrollHorizontally && isGridViewType - val sorting = activity.config.getFolderSorting(if (path.isEmpty()) SHOW_ALL else path) - val dateFormat = activity.config.dateFormat - val timeFormat = activity.getTimeFormat() view.apply { media_grid.adapter = adapter - - /*media_vertical_fastscroller.isHorizontal = false - media_vertical_fastscroller.beGoneIf(scrollHorizontally) - - media_horizontal_fastscroller.isHorizontal = true - media_horizontal_fastscroller.beVisibleIf(scrollHorizontally) - - if (scrollHorizontally) { - media_horizontal_fastscroller.setViews(media_grid) { - val medium = (media[it] as? Medium) - media_horizontal_fastscroller.updateBubbleText(medium?.getBubbleText(sorting, activity, dateFormat, timeFormat) ?: "") - } - } else { - media_vertical_fastscroller.setViews(media_grid) { - val medium = (media[it] as? Medium) - media_vertical_fastscroller.updateBubbleText(medium?.getBubbleText(sorting, activity, dateFormat, timeFormat) ?: "") - } - }*/ + media_fastscroller.setScrollVertically(!scrollHorizontally) } } } diff --git a/app/src/main/res/layout/dialog_change_grouping.xml b/app/src/main/res/layout/dialog_change_grouping.xml index c64aad625..7fce02f3f 100644 --- a/app/src/main/res/layout/dialog_change_grouping.xml +++ b/app/src/main/res/layout/dialog_change_grouping.xml @@ -1,6 +1,5 @@ - @@ -26,7 +25,7 @@ android:layout_height="wrap_content" android:paddingTop="@dimen/medium_margin" android:paddingBottom="@dimen/medium_margin" - android:text="@string/do_not_group_files"/> + android:text="@string/do_not_group_files" /> + android:text="@string/by_last_modified_daily" /> + android:text="@string/by_last_modified_monthly" /> + android:text="@string/by_date_taken_daily" /> + android:text="@string/by_date_taken_monthly" /> + android:text="@string/by_file_type" /> + android:text="@string/by_extension" /> + android:text="@string/by_folder" /> - + + android:text="@string/ascending" /> + android:text="@string/descending" /> + layout="@layout/divider" /> + android:text="@string/use_for_this_folder" /> + android:textSize="@dimen/smaller_text_size" /> diff --git a/app/src/main/res/layout/dialog_change_view_type.xml b/app/src/main/res/layout/dialog_change_view_type.xml index b6e1f342c..df69116a8 100644 --- a/app/src/main/res/layout/dialog_change_view_type.xml +++ b/app/src/main/res/layout/dialog_change_view_type.xml @@ -1,6 +1,5 @@ - @@ -26,7 +25,7 @@ android:layout_height="wrap_content" android:paddingTop="@dimen/medium_margin" android:paddingBottom="@dimen/medium_margin" - android:text="@string/grid"/> + android:text="@string/grid" /> + android:text="@string/list" /> + layout="@layout/divider" /> + android:text="@string/group_direct_subfolders" /> + android:text="@string/use_for_this_folder" /> diff --git a/app/src/main/res/layout/dialog_confirm_delete_folder.xml b/app/src/main/res/layout/dialog_confirm_delete_folder.xml index 220c36f09..495254160 100644 --- a/app/src/main/res/layout/dialog_confirm_delete_folder.xml +++ b/app/src/main/res/layout/dialog_confirm_delete_folder.xml @@ -1,6 +1,5 @@ - @@ -12,7 +11,7 @@ android:paddingLeft="@dimen/big_margin" android:paddingTop="@dimen/big_margin" android:paddingRight="@dimen/big_margin" - android:textSize="@dimen/bigger_text_size"/> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> diff --git a/app/src/main/res/layout/dialog_custom_aspect_ratio.xml b/app/src/main/res/layout/dialog_custom_aspect_ratio.xml index 7650ee275..c60a61a17 100644 --- a/app/src/main/res/layout/dialog_custom_aspect_ratio.xml +++ b/app/src/main/res/layout/dialog_custom_aspect_ratio.xml @@ -1,6 +1,5 @@ - + android:text="@string/width" /> + android:textSize="@dimen/normal_text_size" /> + android:textStyle="bold" /> + android:text="@string/height" /> + android:textSize="@dimen/normal_text_size" /> diff --git a/app/src/main/res/layout/dialog_delete_with_remember.xml b/app/src/main/res/layout/dialog_delete_with_remember.xml index 2f9fc47d5..ffb6890a2 100644 --- a/app/src/main/res/layout/dialog_delete_with_remember.xml +++ b/app/src/main/res/layout/dialog_delete_with_remember.xml @@ -1,6 +1,5 @@ - + android:textSize="@dimen/bigger_text_size" /> + android:text="@string/do_not_ask_again" /> diff --git a/app/src/main/res/layout/dialog_exclude_folder.xml b/app/src/main/res/layout/dialog_exclude_folder.xml index 8cc0d5886..bb97e3f49 100644 --- a/app/src/main/res/layout/dialog_exclude_folder.xml +++ b/app/src/main/res/layout/dialog_exclude_folder.xml @@ -1,6 +1,5 @@ - @@ -17,7 +16,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/exclude_folder_description" - android:textSize="@dimen/bigger_text_size"/> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/normal_text_size" /> diff --git a/app/src/main/res/layout/dialog_other_aspect_ratio.xml b/app/src/main/res/layout/dialog_other_aspect_ratio.xml index 661245a51..2a0643443 100644 --- a/app/src/main/res/layout/dialog_other_aspect_ratio.xml +++ b/app/src/main/res/layout/dialog_other_aspect_ratio.xml @@ -1,6 +1,5 @@ - + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> @@ -110,7 +109,7 @@ android:paddingTop="@dimen/normal_margin" android:paddingBottom="@dimen/normal_margin" android:text="1:2" - android:textSize="@dimen/bigger_text_size"/> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> + android:textSize="@dimen/bigger_text_size" /> diff --git a/app/src/main/res/layout/dialog_resize_image.xml b/app/src/main/res/layout/dialog_resize_image.xml index 97283e806..767ad91c9 100644 --- a/app/src/main/res/layout/dialog_resize_image.xml +++ b/app/src/main/res/layout/dialog_resize_image.xml @@ -1,6 +1,5 @@ - + android:paddingStart="@dimen/tiny_margin" + android:text="@string/width" /> + android:textSize="@dimen/normal_text_size" /> + android:paddingStart="@dimen/tiny_margin" + android:text="@string/height" /> + android:textSize="@dimen/normal_text_size" /> + android:text="@string/keep_aspect_ratio" /> diff --git a/app/src/main/res/layout/dialog_resize_image_with_path.xml b/app/src/main/res/layout/dialog_resize_image_with_path.xml index c1defcff2..3a78b2ec3 100644 --- a/app/src/main/res/layout/dialog_resize_image_with_path.xml +++ b/app/src/main/res/layout/dialog_resize_image_with_path.xml @@ -1,5 +1,6 @@ @@ -32,6 +34,7 @@ android:layout_height="wrap_content" android:layout_marginStart="50dp" android:layout_toEndOf="@+id/image_width_label" + android:paddingStart="@dimen/tiny_margin" android:text="@string/height" android:textSize="@dimen/normal_text_size" /> @@ -52,6 +55,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/image_height" + android:layout_marginStart="@dimen/tiny_margin" android:layout_marginTop="@dimen/activity_margin" android:text="@string/path" android:textSize="@dimen/normal_text_size" /> @@ -61,11 +65,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/image_path_label" - android:layout_marginStart="@dimen/activity_margin" + android:layout_marginStart="@dimen/tiny_margin" android:layout_marginBottom="@dimen/activity_margin" android:paddingTop="@dimen/small_margin" android:paddingEnd="@dimen/small_margin" - android:textSize="@dimen/normal_text_size" /> + android:textSize="@dimen/normal_text_size" + tools:text="@string/internal" /> diff --git a/app/src/main/res/layout/dialog_save_as.xml b/app/src/main/res/layout/dialog_save_as.xml index c490a44a1..49cf31e6c 100644 --- a/app/src/main/res/layout/dialog_save_as.xml +++ b/app/src/main/res/layout/dialog_save_as.xml @@ -1,6 +1,6 @@ - + android:textSize="@dimen/smaller_text_size" /> + android:paddingEnd="@dimen/small_margin" + tools:text="@string/internal" /> + android:textSize="@dimen/normal_text_size" /> + android:layout_marginStart="@dimen/tiny_margin" + android:text="@string/extension" /> + android:textSize="@dimen/normal_text_size" /> diff --git a/app/src/main/res/layout/dialog_slideshow.xml b/app/src/main/res/layout/dialog_slideshow.xml index 86120da2c..42505f478 100644 --- a/app/src/main/res/layout/dialog_slideshow.xml +++ b/app/src/main/res/layout/dialog_slideshow.xml @@ -1,6 +1,5 @@ - + android:orientation="vertical"> + android:text="@string/interval" /> + android:textSize="@dimen/normal_text_size" /> + android:text="@string/animation" /> + tools:text="@string/slide" /> + android:background="?attr/selectableItemBackground"> - + android:text="@string/include_videos" /> + android:background="?attr/selectableItemBackground"> - + android:text="@string/include_gifs" /> + android:background="?attr/selectableItemBackground"> - + android:text="@string/random_order" /> + android:background="?attr/selectableItemBackground"> - + android:text="@string/move_backwards" /> + android:background="?attr/selectableItemBackground"> - + android:text="@string/loop_slideshow" />