From 5a0b031d3ff90511dff3501a00956266125482b1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 4 Mar 2017 21:29:52 +0100 Subject: [PATCH] set the fastscrollbars color to primary color --- .../kotlin/com/simplemobiletools/gallery/views/FastScroller.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/views/FastScroller.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/views/FastScroller.kt index 6df099b1f..e949d28d8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/views/FastScroller.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/views/FastScroller.kt @@ -1,6 +1,7 @@ package com.simplemobiletools.gallery.views import android.content.Context +import android.graphics.PorterDuff import android.support.v4.widget.SwipeRefreshLayout import android.support.v7.widget.GridLayoutManager import android.support.v7.widget.RecyclerView @@ -10,6 +11,7 @@ import android.view.MotionEvent import android.view.View import android.widget.LinearLayout import com.simplemobiletools.gallery.R +import com.simplemobiletools.gallery.extensions.config import kotlinx.android.synthetic.main.fastscroller.view.* // based on https://blog.stylingandroid.com/recyclerview-fastscroll-part-1 @@ -30,6 +32,7 @@ class FastScroller : LinearLayout { fun setViews(recyclerView: RecyclerView, swipeRefreshLayout: SwipeRefreshLayout) { this.recyclerView = recyclerView this.swipeRefreshLayout = swipeRefreshLayout + handle.background.setColorFilter(context.config.primaryColor, PorterDuff.Mode.SRC_IN) recyclerView.setOnScrollListener(object : RecyclerView.OnScrollListener() { override fun onScrolled(rv: RecyclerView, dx: Int, dy: Int) {