mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
adding some coloring related improvements
This commit is contained in:
parent
9124cc20f5
commit
0d5ac9906c
3 changed files with 6 additions and 2 deletions
|
@ -621,6 +621,7 @@ class SettingsActivity : SimpleActivity() {
|
||||||
put(TEXT_COLOR, config.textColor)
|
put(TEXT_COLOR, config.textColor)
|
||||||
put(BACKGROUND_COLOR, config.backgroundColor)
|
put(BACKGROUND_COLOR, config.backgroundColor)
|
||||||
put(PRIMARY_COLOR, config.primaryColor)
|
put(PRIMARY_COLOR, config.primaryColor)
|
||||||
|
put(ACCENT_COLOR, config.accentColor)
|
||||||
put(APP_ICON_COLOR, config.appIconColor)
|
put(APP_ICON_COLOR, config.appIconColor)
|
||||||
put(USE_ENGLISH, config.useEnglish)
|
put(USE_ENGLISH, config.useEnglish)
|
||||||
put(WAS_USE_ENGLISH_TOGGLED, config.wasUseEnglishToggled)
|
put(WAS_USE_ENGLISH_TOGGLED, config.wasUseEnglishToggled)
|
||||||
|
@ -756,6 +757,7 @@ class SettingsActivity : SimpleActivity() {
|
||||||
TEXT_COLOR -> config.textColor = value.toInt()
|
TEXT_COLOR -> config.textColor = value.toInt()
|
||||||
BACKGROUND_COLOR -> config.backgroundColor = value.toInt()
|
BACKGROUND_COLOR -> config.backgroundColor = value.toInt()
|
||||||
PRIMARY_COLOR -> config.primaryColor = value.toInt()
|
PRIMARY_COLOR -> config.primaryColor = value.toInt()
|
||||||
|
ACCENT_COLOR -> config.accentColor = value.toInt()
|
||||||
APP_ICON_COLOR -> {
|
APP_ICON_COLOR -> {
|
||||||
if (getAppIconColors().contains(value.toInt())) {
|
if (getAppIconColors().contains(value.toInt())) {
|
||||||
config.appIconColor = value.toInt()
|
config.appIconColor = value.toInt()
|
||||||
|
|
|
@ -677,7 +677,8 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
|
||||||
|
|
||||||
dir_check?.beVisibleIf(isSelected)
|
dir_check?.beVisibleIf(isSelected)
|
||||||
if (isSelected) {
|
if (isSelected) {
|
||||||
dir_check.background?.applyColorFilter(primaryColor)
|
dir_check.background?.applyColorFilter(adjustedPrimaryColor)
|
||||||
|
dir_check.applyColorFilter(contrastColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isListViewType) {
|
if (isListViewType) {
|
||||||
|
|
|
@ -539,7 +539,8 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: ArrayList<ThumbnailI
|
||||||
|
|
||||||
medium_check?.beVisibleIf(isSelected)
|
medium_check?.beVisibleIf(isSelected)
|
||||||
if (isSelected) {
|
if (isSelected) {
|
||||||
medium_check?.background?.applyColorFilter(primaryColor)
|
medium_check?.background?.applyColorFilter(adjustedPrimaryColor)
|
||||||
|
medium_check.applyColorFilter(contrastColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isListViewType) {
|
if (isListViewType) {
|
||||||
|
|
Loading…
Reference in a new issue