adding some coloring related improvements

This commit is contained in:
tibbi 2021-02-18 19:46:24 +01:00
parent 9124cc20f5
commit 0d5ac9906c
3 changed files with 6 additions and 2 deletions

View file

@ -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()

View file

@ -677,7 +677,8 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
dir_check?.beVisibleIf(isSelected)
if (isSelected) {
dir_check.background?.applyColorFilter(primaryColor)
dir_check.background?.applyColorFilter(adjustedPrimaryColor)
dir_check.applyColorFilter(contrastColor)
}
if (isListViewType) {

View file

@ -539,7 +539,8 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: ArrayList<ThumbnailI
medium_check?.beVisibleIf(isSelected)
if (isSelected) {
medium_check?.background?.applyColorFilter(primaryColor)
medium_check?.background?.applyColorFilter(adjustedPrimaryColor)
medium_check.applyColorFilter(contrastColor)
}
if (isListViewType) {