mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-18 12:50:35 +01:00
use the primary color at PDF scrollbar
This commit is contained in:
parent
712aa64bb1
commit
326a434ed4
@ -65,10 +65,10 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:d6434b3912'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:d6434b3912'
|
||||||
|
implementation 'com.github.tibbi:AndroidPdfViewer:2c16b98f21'
|
||||||
implementation 'com.github.Stericson:RootTools:df729dcb13'
|
implementation 'com.github.Stericson:RootTools:df729dcb13'
|
||||||
implementation 'com.github.Stericson:RootShell:1.6'
|
implementation 'com.github.Stericson:RootShell:1.6'
|
||||||
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
implementation 'com.alexvasilkov:gesture-views:2.5.2'
|
||||||
implementation 'androidx.documentfile:documentfile:1.0.1'
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
||||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||||
implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
|
|
||||||
}
|
}
|
||||||
|
@ -6,10 +6,8 @@ import android.print.PrintAttributes
|
|||||||
import android.print.PrintManager
|
import android.print.PrintManager
|
||||||
import android.view.Menu
|
import android.view.Menu
|
||||||
import android.view.MenuItem
|
import android.view.MenuItem
|
||||||
import com.simplemobiletools.commons.extensions.checkAppSideloading
|
import com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
|
||||||
import com.simplemobiletools.commons.extensions.getFilenameFromPath
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.extensions.getFilenameFromUri
|
|
||||||
import com.simplemobiletools.commons.extensions.getProperBackgroundColor
|
|
||||||
import com.simplemobiletools.commons.helpers.REAL_FILE_PATH
|
import com.simplemobiletools.commons.helpers.REAL_FILE_PATH
|
||||||
import com.simplemobiletools.filemanager.pro.R
|
import com.simplemobiletools.filemanager.pro.R
|
||||||
import com.simplemobiletools.filemanager.pro.helpers.PdfDocumentAdapter
|
import com.simplemobiletools.filemanager.pro.helpers.PdfDocumentAdapter
|
||||||
@ -63,8 +61,10 @@ class PDFViewerActivity : SimpleActivity() {
|
|||||||
title = filename
|
title = filename
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val primaryColor = getProperPrimaryColor()
|
||||||
pdf_viewer.setBackgroundColor(getProperBackgroundColor())
|
pdf_viewer.setBackgroundColor(getProperBackgroundColor())
|
||||||
pdf_viewer.fromUri(uri)
|
pdf_viewer.fromUri(uri)
|
||||||
|
.scrollHandle(DefaultScrollHandle(this, primaryColor.getContrastColor(), primaryColor))
|
||||||
.spacing(15)
|
.spacing(15)
|
||||||
.load()
|
.load()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user