diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index d089a296f..a802e0da9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -92,10 +92,21 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View } override fun onCreateOptionsMenu(menu: Menu): Boolean { - menuInflater.inflate(R.menu.viewpager_menu, menu) + menuInflater.inflate(R.menu.menu_viewpager, menu) - menu.findItem(R.id.menu_set_as_wallpaper).isVisible = getCurrentMedium()?.isImage() == true - menu.findItem(R.id.menu_edit).isVisible = getCurrentMedium()?.isImage() == true + menu.apply { + if (getCurrentMedium()?.isImage() == true) { + findItem(R.id.menu_set_as_wallpaper).isVisible = getCurrentMedium()?.isImage() == true + findItem(R.id.menu_edit).isVisible = getCurrentMedium()?.isImage() == true + + findItem(R.id.menu_rotate).subMenu.apply { + clearHeader() + findItem(R.id.rotate_right).icon = resources.getColoredDrawable(R.drawable.ic_rotate_right, R.color.actionbar_menu_icon) + findItem(R.id.rotate_left).icon = resources.getColoredDrawable(R.drawable.ic_rotate_left, R.color.actionbar_menu_icon) + findItem(R.id.rotate_one_eighty).icon = resources.getColoredDrawable(R.drawable.ic_rotate_one_eighty, R.color.actionbar_menu_icon) + } + } + } return true } @@ -114,6 +125,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View R.id.menu_edit -> openEditor(getCurrentFile()) R.id.menu_properties -> showProperties() R.id.show_on_map -> showOnMap() + R.id.rotate_right -> {} + R.id.rotate_left -> {} + R.id.rotate_one_eighty -> {} else -> return super.onOptionsItemSelected(item) } return true diff --git a/app/src/main/res/menu/viewpager_menu.xml b/app/src/main/res/menu/menu_viewpager.xml similarity index 72% rename from app/src/main/res/menu/viewpager_menu.xml rename to app/src/main/res/menu/menu_viewpager.xml index 7ff9c98f6..d93e32e78 100644 --- a/app/src/main/res/menu/viewpager_menu.xml +++ b/app/src/main/res/menu/menu_viewpager.xml @@ -23,6 +23,23 @@ android:icon="@drawable/ic_share" android:title="@string/share" app:showAsAction="ifRoom"/> + + + + + + + Kein Bildeditor gefunden Unbekannter Dateiort Konnte Quelldatei nicht überschreiben + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically Simple Wallpaper diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 2cd7e566b..3fcb7c952 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -60,6 +60,12 @@ No image editor found Unknown file location Could not overwrite the source file + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically Simple Wallpaper diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 1fedf3b81..04607cb1d 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -60,6 +60,12 @@ Aucun éditeur d\'image trouvé Emplacement du fichier inconnu. Ne parvient pas à réécrire par dessus le fichier source + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically Simple fond d\'écran diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 61b036ce2..02a2589be 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -60,6 +60,12 @@ Editor immagine non trovato Posizione file sconosciuta Impossibile sovrascrivere il file sorgente + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically Sfondo Semplice diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 4cd9ed7b0..0692664d2 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -60,6 +60,12 @@ 画像エディターが見つかりません ファイルの場所が不明です 元のファイルを上書きできません + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically シンプル壁紙 diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index eab3d37be..0d8b92bb4 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -60,6 +60,12 @@ Editor não encontrado Localização desconhecida Não foi possível substituir o ficheiro original + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically Simple Wallpaper diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 9748b3d1e..fcd585019 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -60,6 +60,12 @@ Ни одного редактора изображений не найдено Неизвестное местоположение файла Не удалось перезаписать исходный файл + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically Простые обои diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index e6388ea17..8c4657c87 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -60,6 +60,12 @@ Nebol nájdený žiadny editor Neznáme umiestnenie súboru Nepodarilo sa prepísať zdrojový súbor + Otočiť vľavo + Otočiť vpravo + Otočiť o 180º + Preklopiť + Vodorovne + Zvisle Jednoduchá tapeta diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 528d1ecf2..acac8ea67 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -60,6 +60,12 @@ Hittade ingen bildredigerare Okänd filplats Det gick inte att skriva över källfilen + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically Bakgrundsbild diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 6e1c797f6..bf307fe22 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -60,6 +60,12 @@ 没有可用的图片编辑器 未知文件路径 不能覆盖源文件 + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically Simple Wallpaper diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 3f008d09d..829f0b7e1 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -60,6 +60,12 @@ 沒有可用的圖檔編輯器 未知檔案路徑 不能覆蓋源檔案 + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically 簡易桌布 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 800177913..38382fb9f 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,5 +1,7 @@ + #454545 + @color/default_text_color_dark_theme @color/default_background_color_dark_theme diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8230d0869..8018a2ee4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -60,6 +60,12 @@ No image editor found Unknown file location Could not overwrite the source file + Rotate left + Rotate right + Rotate by 180º + Flip + Horizontally + Vertically Simple Wallpaper