From 0d5ac9906c406d9c56037edf17b279ff24209797 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 18 Feb 2021 19:46:24 +0100 Subject: [PATCH] adding some coloring related improvements --- .../gallery/pro/activities/SettingsActivity.kt | 2 ++ .../simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt | 3 ++- .../com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt index 7c43dfb1d..1a7641b3b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt @@ -621,6 +621,7 @@ class SettingsActivity : SimpleActivity() { put(TEXT_COLOR, config.textColor) put(BACKGROUND_COLOR, config.backgroundColor) put(PRIMARY_COLOR, config.primaryColor) + put(ACCENT_COLOR, config.accentColor) put(APP_ICON_COLOR, config.appIconColor) put(USE_ENGLISH, config.useEnglish) put(WAS_USE_ENGLISH_TOGGLED, config.wasUseEnglishToggled) @@ -756,6 +757,7 @@ class SettingsActivity : SimpleActivity() { TEXT_COLOR -> config.textColor = value.toInt() BACKGROUND_COLOR -> config.backgroundColor = value.toInt() PRIMARY_COLOR -> config.primaryColor = value.toInt() + ACCENT_COLOR -> config.accentColor = value.toInt() APP_ICON_COLOR -> { if (getAppIconColors().contains(value.toInt())) { config.appIconColor = value.toInt() diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt index 177bb91e8..d4a54bd3d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt @@ -677,7 +677,8 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList