mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
fixing some thumbnail coloring issues
This commit is contained in:
parent
9c84ba05ee
commit
3e134c4e37
2 changed files with 9 additions and 3 deletions
|
@ -740,10 +740,14 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
|
|||
|
||||
dir_name.text = nameCount
|
||||
|
||||
if (isListViewType) {
|
||||
dir_name.setTextColor(textColor)
|
||||
dir_path.setTextColor(textColor)
|
||||
if (isListViewType || folderStyle == FOLDER_STYLE_ROUNDED_CORNERS) {
|
||||
photo_cnt.setTextColor(textColor)
|
||||
dir_name.setTextColor(textColor)
|
||||
dir_location.applyColorFilter(textColor)
|
||||
}
|
||||
|
||||
if (isListViewType) {
|
||||
dir_path.setTextColor(textColor)
|
||||
dir_pin.applyColorFilter(textColor)
|
||||
dir_location.applyColorFilter(textColor)
|
||||
}
|
||||
|
|
|
@ -106,6 +106,8 @@ class ChangeThumbnailStyleDialog(val activity: BaseSimpleActivity, val callback:
|
|||
if (useRoundedCornersLayout) {
|
||||
val cornerRadius = resources.getDimension(R.dimen.rounded_corner_radius_big).toInt()
|
||||
builder = builder.transform(CenterCrop(), RoundedCorners(cornerRadius))
|
||||
dir_name.setTextColor(activity.config.textColor)
|
||||
photo_cnt.setTextColor(activity.config.textColor)
|
||||
}
|
||||
|
||||
builder.into(dir_thumbnail)
|
||||
|
|
Loading…
Reference in a new issue