Skip to content

Commit

Permalink
feature #605 Enable to use font color to browser's progress bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastkidjp committed Aug 19, 2020
1 parent fad2a16 commit b5af8c1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package jp.toastkid.yobidashi.browser

import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.net.Uri
import android.os.Bundle
import android.text.TextUtils
Expand Down Expand Up @@ -408,6 +410,11 @@ class BrowserFragment : Fragment(),
it.pageInformation.setColorFilter(fontColor)
it.userAgent.setColorFilter(fontColor)
it.htmlSource.setColorFilter(fontColor)
it.progress.progressDrawable.colorFilter =
PorterDuffColorFilter(
preferenceApplier.fontColor,
PorterDuff.Mode.SRC_IN
)
}

browserModule.resizePool(preferenceApplier.poolSize)
Expand Down

0 comments on commit b5af8c1

Please sign in to comment.